Withdrawals
Withdrawals
To initiate a withdrawal
payment request, you should use the initiateHostedPayment
mutation.
paymentType:
withdrawal
amount: The USD equivalent you want to off-ramp to a customer's local currency
currency:
usd
. The local currency equivalent your customer will receive is determined by thecountry
country: The two-letter ISO code of the country your customer is resident in
reference (optional): Your unique reference
metadata (optional): Your arbitrary JSON metadata for this transaction. This metadata is included in the payload of webhook events for this transaction
redirectUrl (optional): The URL you want us to redirect your customer to after the transaction is completed
firstName: Your customer's first name
lastName: Your customer's last name
email: Your customer's email
Response
Returns a merchant payment request.
id: The ID of the payment request
hostedLink: A link to the hosted payment page you should redirect your customer to
status: The current status of the payment request
created: The initial state of your payment request upon creation.
picked_up: Your customer has chosen an agent to withdraw through.
completed: The payment request has been successfully completed. If it's a deposit, your balance will get credited. If it's a withdrawal, your balance will be debited.
canceled: The payment request was canceled. Either by the user or by dispute resolution.
Last updated