Sep31Post Transactions Request
Request body for the SEP-31 POST /transactions endpoint.
Initiates a cross-border payment by describing the amount, asset, funding method, optional SEP-38 quote, optional SEP-12 customer ids, and optional refund memo. The Receiving Anchor responds with a Sep31PostTransactionsResponse containing the on-chain payment instructions.
Field naming follows the spec: every JSON key is snake_case, every Kotlin property is camelCase. The toJson helper omits null entries and preserves insertion order so test fixtures and on-the-wire bodies remain byte-stable.
Usage
val request = Sep31PostTransactionsRequest(
amount = 100.0,
assetCode = "USDC",
fundingMethod = "SWIFT",
assetIssuer = "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
destinationAsset = "iso4217:BRL",
quoteId = "11111111-1111-1111-1111-111111111111",
senderId = "22222222-2222-2222-2222-222222222222",
receiverId = "33333333-3333-3333-3333-333333333333",
)
val response = sep31Service.postTransactions(request, jwt)See also
Constructors
Properties
Issuer of the Stellar asset; omit when the Receiving Anchor itself issues the asset.
SEP-38 asset identification string for the off-chain delivery asset. Omit when not using SEP-38.
Funding method the Receiving Anchor will use to deliver the asset (for example SWIFT, SEPA). Must match a value advertised in /info. The anchor uses this to determine which KYC fields to collect.
SEP-12 customer id of the Receiving Client. Required when the Receiving Anchor requires SEP-12 KYC on receivers.
Memo the Receiving Anchor must attach when issuing refunds. If specified, refundMemoType must also be specified.
Type of refundMemo (id, text, or hash). If specified, refundMemo must also be specified.