Payezydevelopers
Sandbox

API reference / Withdrawals

Quote a withdrawal

POST/v1/orgs/{orgId}/withdrawals/quote

Prices each way to send a withdrawal (rail, fee, arrival) without moving money.

Before you call it

  • Permissionwithdrawals:create

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.

Request body

FieldWhat it does
account_idstring (uuid)requiredNo description in the spec yet.
external_account_idstring (uuid)requiredOne of the organization's own accounts
amountstringrequiredNo description in the spec yet.
assetenumNo description in the spec yet.

One of USDC SBC

railenumNo description in the spec yet.

One of ach_credit same_day_ach_credit wire fednow_credit onchain

policyenumNo description in the spec yet.

One of cheapest fastest

Default "cheapest"

memostringNo description in the spec yet.

Response 200

Options ordered by the requested policy

FieldWhat it does
amountstringrequiredNo description in the spec yet.
assetstringrequiredNo description in the spec yet.
availablestringrequiredAvailable balance
optionsPaymentOption[]requiredNo description in the spec yet.
options[].railstringrequiredNo description in the spec yet.
options[].feestringrequiredNo description in the spec yet.
options[].eta_secondsintegerrequiredNo description in the spec yet.
options[].arrives_bystring (date-time)requiredNo description in the spec yet.
options[].brandablebooleanrequiredThe recipient sees your business name
options[].payezy_feestringPayezy's fee (part of fee); 0 for customers billed through a platform
options[].network_feestringRail or network cost (part of fee)
options[].fee_linesFeeLine[]fee broken down; the lines sum to fee
options[].fee_lines[].kindenumrequiredpayezy: Payezy's fee; network: rail or network cost

One of payezy network

options[].fee_lines[].codestringrequiredBilling product code (payezy) or rail (network)
options[].fee_lines[].labelstringrequiredNo description in the spec yet.
options[].fee_lines[].amountstringrequiredNo description in the spec yet.

Usually next