Fiat-to-Fiat
Fiat to Fiat With Source Account Id
When sending a payment with a source accountId, the payment will automatically pull funds from this account to fund the payment (as long as the Account is a Virtual Account).
Request
curl --request POST \
--url 'https://sandbox-api.walapay.io/v1/payments/<customerId>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-Api-Key: fa15de08-f1af-4c41-a74b-2302b6785c13' \
--header 'X-Idempotency-Key: ced13348-d16d-4310-aa07-b3264cb00bc4' \
--data '{
"source": {
"currencyCode": "MXN",
"amount": 100,
"accountId": "cm3zbgjxe000hr8cqmm3v384e"
},
"destination": {
"currencyCode": "BRL",
"rail": "WIRE",
"accountId": "d15d4441-bba9-48d2-8cb4-cb9d0273ac51"
},
"comment": "Test MXN to BRL payment",
"memo": "For testing purposes",
"paymentReason": "Testing fiat to fiat payment",
"sourceOfFunds": "PERSONAL_ACCOUNT"
}'
curl --request POST \
--url 'https://sandbox-api.walapay.io/v1/payments/<customerId>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-Api-Key: fa15de08-f1af-4c41-a74b-2302b6785c13' \
--header 'X-Idempotency-Key: ced13348-d16d-4310-aa07-b3264cb00bc4' \
--data '{
"source": {
"currencyCode": "USD",
"amount": 100,
"accountId": "c202409241621308758eb7c1970159"
},
"destination": {
"currencyCode": "PHP",
"rail": "LOCAL",
"accountId": "d15d4441-bba9-48d2-8cb4-cb9d0273ac51"
},
"comment": "Test USD to PHP payment",
"memo": "For testing purposes",
"paymentReason": "Testing fiat to fiat payment",
"sourceOfFunds": "PERSONAL_ACCOUNT"
}'
Response
{
"id": "cm40psd0g0001xnyhdy6nmzmj",
"createdAt": "2024-11-28T02:47:33.088Z",
"updatedAt": "2024-11-28T02:47:33.088Z",
"status": "PENDING",
"comment": "Test MXN to BRL payment",
"paymentReason": "Testing fiat to fiat payment",
"sourceOfFunds": "PERSONAL_ACCOUNT",
"source": {
"currencyCode": "MXN",
"amount": 100,
"accountId": "cm3zbgjxe000hr8cqmm3v384e"
},
"destination": {
"rail": "WIRE",
"currencyCode": "BRL",
"accountId": "d15d4441-bba9-48d2-8cb4-cb9d0273ac51"
}
}
{
"id": "cm40psd0g0001xnyhdy6nmzmj",
"createdAt": "2024-11-28T02:47:33.088Z",
"updatedAt": "2024-11-28T02:47:33.088Z",
"status": "PENDING",
"comment": "Test USD to PHP payment",
"paymentReason": "Testing fiat to fiat payment",
"sourceOfFunds": "PERSONAL_ACCOUNT",
"source": {
"currencyCode": "USD",
"amount": 100,
"accountId": "c202409241621308758eb7c1970159"
},
"destination": {
"rail": "LOCAL",
"currencyCode": "PHP",
"accountId": "d15d4441-bba9-48d2-8cb4-cb9d0273ac51"
}
}
Updated about 2 months ago