curl --request POST \
--url https://api.sandbox.tracefinance.com/api/operations/withdrawal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"accountId": "a1b2c3d4-5e6f-7890-abcd-ef1234567890",
"quoteId": "d4e5f6a7-b8c9-0123-defa-2345678901bc",
"beneficiary": {
"type": "REFERENCE",
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"paymentInstruction": {
"type": "REFERENCE",
"id": "c3d4e5f6-a7b8-9012-cdef-1234567890ab"
}
}
}
'Creates a new withdrawal to a saved beneficiary.
curl --request POST \
--url https://api.sandbox.tracefinance.com/api/operations/withdrawal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"accountId": "a1b2c3d4-5e6f-7890-abcd-ef1234567890",
"quoteId": "d4e5f6a7-b8c9-0123-defa-2345678901bc",
"beneficiary": {
"type": "REFERENCE",
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"paymentInstruction": {
"type": "REFERENCE",
"id": "c3d4e5f6-a7b8-9012-cdef-1234567890ab"
}
}
}
'Documentation Index
Fetch the complete documentation index at: https://tracefinance-docs-withdrawal-beneficiary-events.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
JWT bearer token. Include as Authorization: Bearer <token>. See the Authentication guide for how to obtain one.
Unique key to ensure idempotent request processing. Required on all POST, PUT, and PATCH requests.
API version. Omit to use the default version.
"1"
Every withdrawal references a quote previously obtained from POST /api/quotes. The quote determines sourceAmount and targetAmount and locks the FX rate (or the 1:1 spot for same-asset). A quote can be consumed by at most one operation.
Account that funds the withdrawal. Must match the account on the referenced quote.
"a1b2c3d4-5e6f-7890-abcd-ef1234567890"
ID of a quote returned by POST /api/quotes. Must belong to the same customer, must not have expired, and must not have been consumed by another operation.
"d4e5f6a7-b8c9-0123-defa-2345678901bc"
Beneficiary for the withdrawal. Discriminated by type.
REFERENCE — the only mode supported in the current slice. Points at a saved
beneficiary by id.INLINE — currently rejected with 400 INLINE_BENEFICIARY_NOT_SUPPORTED.Show child attributes
Withdrawal accepted. The operation is in REQUESTED status.
An operation. Withdrawals (POST /api/operations/withdrawal), swaps (POST /api/operations/swap), deposits (POST /api/operations/deposit), and transfers (POST /api/operations/transfer) share this shape, discriminated by intent.type. The quote field is always present; for transfers without an explicit quoteId in the request, the system generates a 1:1 same-asset quote.
Reference to a customer account, including the registered owner name.
Show child attributes
Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.
Show child attributes
Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.
Show child attributes
Operation intent. Discriminated by type.
Show child attributes
Reference to the quote consumed by the operation.
Show child attributes
Show child attributes
Show child attributes
A single entry in an operation's state history. Carries a status, optional reason, and the time the state was entered.
Show child attributes
Full state history of the operation, oldest first. The last entry equals currentState.
Show child attributes
System-managed labels stamped onto the operation when it is created. Inherited from the account's propagating tags.
Show child attributes
[
{ "key": "psp", "value": "Amazon" },
{ "key": "compliance-tier", "value": "high" }
]
Was this page helpful?