Prerequisites
- The user has completed onboarding and has the required capabilities enabled.
- A funded account to debit the funds from.
Walkthrough
Check available rails
Call List Rails to verify card withdrawal is available.Select source account
Card withdrawals can be sourced from any account. If the selected account is not in the card’s currency, the balance will be converted at the time of the transaction using Uphold’s prevailing rate. Make sure the origin asset has the necessary features enabled. Call List accounts to retrieve the user’s accounts and let them pick the one to withdraw from.Link or select a card account
Let the user link a new card or select an existing one.Find an existing card account
Call List external accounts to fetch the user’s saved cards.status: "ok" and in features.
Link a new card account
If the user wants to use a card not yet on file, call Create external account with the card details.status: "processing" while the card is validated.
ok and the full details are available.
Monitor the external account status via Get external account or the
external-account.status-changed webhook until status is ok before proceeding.EMD disclaimer
This disclaimer is required to comply with FCA regulations. Display it to users based in GB, the first time they link a credit/debit card or generate bank deposit details — it only needs to be shown once:Uphold Europe Limited is an EMD Agent of Optimus Cards UK Limited (FRN: 902034). All received funds are held in a designated safekeeping account with a regulated bank and kept separate from Uphold’s own assets. These funds are not protected by the UK Financial Services Compensation Scheme.
Create a quote
Call Create quote with the origin account and the card external account as destination.Quotes typically expire quickly. Prompt for user confirmation within the expiry window and requote if needed.
Confirm and create transaction
Once the user confirms, call Create transaction with the quote ID.account and the destination is the external-account representing the card. The transaction status is initially processing and updates to completed once the transfer settles.
Notify the user
Display an in-app confirmation when the transaction iscompleted, and send an email if applicable.
You now support card withdrawals via the REST API.