Skip to main content
POST
Send a cross-asset swap between own wallets

Authorizations

Authorization
string
header
required

Access token issued by POST /v1/auth/token.

x-zeam-auth
string
header
required

Application secret (the apiKey issued at registration), required on every request.

Body

application/json

Same-asset transfer between two of the caller's own wallets. Beneficiary fields are not accepted; use POST /v1/payments/p2p/beneficiary instead. transactionId is the only identity field — it is the idempotency key and the reference recorded on the transaction.

transactionId
string<uuid>
required

Your transaction id. Replaying it returns the original result.

walletId
string<uuid>
required

Source wallet.

destinationWalletId
string<uuid>
required

Destination wallet in your own association.

sendingAssetCode
string
required

Asset to send — bare code (e.g. USDZ). The gateway resolves the issuer from the asset registry.

Example:

"USDZ"

amount
number
required

Amount to send, denominated in sendingAssetCode.

receivingAssetCode
string
required

Asset to receive — bare code. Must differ from sendingAssetCode.

Example:

"ZARC"

memo
string

Optional Stellar memo.

fromRef
string | null

Optional sender-side transaction reference passed through unchanged. Omit it or send null for no reference.

toRef
string | null

Optional recipient-side transaction reference passed through unchanged. Omit it or send null for no reference.

Response

Swap accepted for asynchronous processing.

A 202 means the submission was accepted for asynchronous execution, not that it settled. Track completion with the Transactions routes or webhooks.

transactionRecordId
string<uuid>
required

The transaction record id, used with GET /v1/transactions/{transactionId}.

status
string
required

Submission status; not a terminal transaction status.

Example:

"accepted"

intentId
string

Execution intent id, when present.

isIdempotent
boolean

True when this response replays a prior submission with the same transactionId.

message
string