curl --request POST \
--url https://api.cadanapay.com/v1/users/{userId}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "payout",
"beneficiaryId": "c871b333-e129-409c-aabd-7cfb55a967cc",
"quoteId": "d35d2bd6-188b-4e82-9a16-71442dad7375",
"amount": {
"value": "500.00",
"currency": "PHP"
},
"sourceCurrency": "USD",
"reference": "3f70be8e-426f-4e89-b883-9c97a1c334d5"
}
'{
"id": "d0137ede-7df1-4a54-8206-b3ab7b03876f"
}Create a new transaction for a user
curl --request POST \
--url https://api.cadanapay.com/v1/users/{userId}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "payout",
"beneficiaryId": "c871b333-e129-409c-aabd-7cfb55a967cc",
"quoteId": "d35d2bd6-188b-4e82-9a16-71442dad7375",
"amount": {
"value": "500.00",
"currency": "PHP"
},
"sourceCurrency": "USD",
"reference": "3f70be8e-426f-4e89-b883-9c97a1c334d5"
}
'{
"id": "d0137ede-7df1-4a54-8206-b3ab7b03876f"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier for the user
"c06f3427-3bbe-4d70-9a54-28acda267e48"
The type of transaction
payout, savings_funding "payout"
"c871b333-e129-409c-aabd-7cfb55a967cc"
The unique identifier for the fx quote
"d35d2bd6-188b-4e82-9a16-71442dad7375"
The destination amount (required if sourceAmount is not provided). When using this field, sourceCurrency is also required.
Show child attributes
The source currency code. Required when using the amount field (destination amount).
"USD"
The client reference for the transaction
"c06f3427-3bbe-4d70-9a54-28acda267e48"
The source amount (required if amount is not provided). The currency in this amount object represents the source currency.
Show child attributes
Transaction created response
"d0137ede-7df1-4a54-8206-b3ab7b03876f"