📤Withdraw API

Withdraw Crypto To User's Wallet

API System Description

Your company provides the withdraw API that Crypto Pay can use to handle withdrawal-related transactions.

The API should include

  • partnerId : This will be provided by Crypto Pay

  • orderId : A unique ID enables user's withdrawal (in string format)

  • uid : Unique user ID from your system

  • username

  • amount : Yen (¥) or US Dollar ($USD)

  • receiverAddress : User's registered address on your platform (user must connect wallet with this address to request withdrawal)

  • apiKey : This key will be provided by Crypto Pay (only registered key can request)

In addition, your company needs to send your server's IP to get whitelisted on Crypto Pay's end.

With the mentioned API, we will generate a withdraw link for your user.

Withdrawal sample link: https://withdraw.cmoney.xyz/partnerId/uid&username

User Withdraw Flow

  1. User clicks withdraw on your company's website, which then forwards them to the withdraw site on Crypto Pay's end via the withdrawal sample link above.

  2. Crypto Pay verifies user's eligibility with your provided API and returns a result, or denies access.

  3. User connect wallet with the same registered address on your platform, then click withdraw on specific sections.

  4. Once user request and pay gas fees, Crypto Pay's contract will send an amount of USDC on Ethereum that is equivalent to the requested amount in Yen (¥), or USD ($) on your platform to user's wallet.

Note

  • Each client will be provided with a custom withdraw contract address.

  • Once receive the contract address, your company needs to deposit an amount of USDC to the given contract.

  • Everytime user withdraws successfully, Crypto Pay will charge a small amount of fees on the deposited USDC.

Last updated