Embedded Pay
Create Withdrawal Intent
POST
Create a withdrawal intent
Create a withdrawal intent given an intended withdrawal amount, and the member who will receive the funds. We will process the request, calculate the fee (dependant on the member’s tier) and return:Documentation Index
Fetch the complete documentation index at: https://docs.onsi.com/llms.txt
Use this file to discover all available pages before exploring further.
netAmount- a Money object representing the amount that will be transferred to the memberfee- a Money object representing the fee that will be chargedaccountDetails- An object containing the bank account details thenetAmountwill be transferred to
Relevant Error Codes
The endpoint-specific error codes to pay attention to are: In rare cases, you may receive a Unprocessable Entity Error which indicates that On Demand Pay is temporarily unavailable.Authorizations
Headers
Unique key to ensure idempotency of the request
Body
application/json
Body
Response
201 - application/json
201
The unique identifier for a PayWithdrawalIntent, prefixed with wi_
Example:
"wi_<id>"
A monetary value with currency.
Example:
{ "currency": "GBP", "amount": 950 }A monetary value with currency.
Example:
{ "currency": "GBP", "amount": 50 }A UK bank account
- BankAccountUK
- BankAccountEU
Example:
{
"accountHolder": "John Smith",
"sortCode": "123456",
"accountNumber": "12345678"
}Deprecated in favour of accountDetails
Create a withdrawal intent