Pay.so Core
Core v0
Search
K
Comment on page

Offramps#Create

Tell us which banks we should pay once your quote is executed.
Pay.so supports batch-payments by taking an array of Offramp objects. If you'd like to just pay one bank, just put one Offramp object in the array. The sum of all the destination_amount values must be less than or equal to the deposit_token_amount that was given on the associated quote.

Example Request

curl https://{{base_url}}/users/USER_ID/quotes/QUOTE_ID/offramps \
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-type: application/json" \
-d '{
"offramps": [
{
"payment_detail_id": "fa898aec-519c-46be-9b4c-e76ef4ff99d9",
"destination_amount": 19000,
"destination_currency": "eur",
"reference": "Payment for Services #1010",
"supporting_document_attributes": {
"submitted_url": "https://web3accounting.com/invoices/in_378949x.pdf"
}
},
{
"payment_detail_id": "576b17c9-db11-4593-a362-52605408a1b5",
"destination_amount": 1000,
"destination_currency": "eur",
"reference": "Payment for Services #1011",
"supporting_document_attributes": null
}
]
}'

Endpoint Information

post
https://{{base_url}}
/users/:user_id/quotes/:quote_id/offramps
Create Offramps