API Route
POSTv2
- /merchant/wallets/:id/spend/request
postMerchantWalletsSpendRequestV2ById
|
Last updated: ---
https://a-api.coinpayments.net/api/v2/merchant/wallets/:id/spend/request
Request
Body
Path Parameters
Responses
200 - Success
401 - Unauthorized
403 - Forbidden
Spend Request Flow
Spend requests allow users to initiate a withdrawal or conversion transaction. Both features follow a two-step process:
Create Spend request
This endpoint will create a spend request, with a response containing a preview of the transaction, including any applicable fees. The request will then need to be confirmed before processed, utilizing the request.spendRequestId from the API's response.
Confirm Spend Request
The confirm spend request endpoint is used to confirm the pending spend request, which allows the merchant to review and verify the transaction. Once confirmed, the transaction will be published to the blockchain.
Here's a simplified flow chart explaining the withdrawal/conversion flow: