Withdrawals
Initiate Withdrawal
Create a hosted withdrawal with the initiateHostedPayment
mutation.
Arguments
paymentType
Enum
Yes
Must be withdrawal
.
amount
Decimal
Yes
The USD equivalent you want to off-ramp to a customer's local currency.
currency
Enum
Yes
usd
. The local currency equivalent your customer will receive is determined by the countryCode
.
countryCode
String
Yes
ISO-3166 alpha-2 code of the customer's country (e.g., NG
).
reference
String
No
Your idempotent reference for reconciliation.
metadata
JSON
No
Arbitrary key–value data echoed in webhooks.
redirectUrl
String
No
URL to send the customer to after payment.
firstName
String
Yes
Customer's first name.
lastName
String
Yes
Customer's last name.
email
String
Yes
Customer's email address.
Response
id
ID!
Global ID of the payment request.
hostedLink
String!
URL of the hosted checkout page—redirect the customer here.
status
Enum!
Current state of the request (values below).
status
values:
created
— Payment request has been created.picked_up
— We've received the crypto payment and assigned your customer an agent to withdraw through.completed
— Withdrawal succeeded.canceled
— Request was cancelled by the customer or via dispute resolution.
Last updated