CreateTransferRequest

data class CreateTransferRequest(val amount: Int, val accountId: String, val currency: String? = null, val sourcePaymentMethodId: String? = null, val destinationPaymentMethodId: String? = null, val description: String? = null, val metadata: Map<String, String>? = null)

Request payload for creating a new transfer.

Constructors

Link copied to clipboard
constructor(amount: Int, accountId: String, currency: String? = null, sourcePaymentMethodId: String? = null, destinationPaymentMethodId: String? = null, description: String? = null, metadata: Map<String, String>? = null)

Properties

Link copied to clipboard
@SerializedName(value = "account_id")
val accountId: String

Identifier of the destination account to receive the transfer. Required.

Link copied to clipboard
val amount: Int

Transfer amount in the smallest currency unit (e.g., cents). Required.

Link copied to clipboard
val currency: String? = null

Three-letter ISO 4217 currency code. Defaults to the account's currency if omitted.

Link copied to clipboard
val description: String? = null

Optional description that appears on the transfer record.

Link copied to clipboard
@SerializedName(value = "destination_payment_method_id")
val destinationPaymentMethodId: String? = null

Identifier of the payment method to push funds to. Uses the account default if omitted.

Link copied to clipboard
val metadata: Map<String, String>? = null

Optional arbitrary key-value pairs to attach to the transfer.

Link copied to clipboard
@SerializedName(value = "source_payment_method_id")
val sourcePaymentMethodId: String? = null

Identifier of the payment method to pull funds from. Uses the account default if omitted.