cURL
curl --request POST \ --url http://localhost:55001/api/wallets/wallets/{id}/debit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": { "asset": "USD/2", "amount": 100 }, "metadata": { "key": "" }, "pending": true }'
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "walletID": "<string>", "metadata": {}, "asset": "<string>", "description": "<string>", "destination": { "type": "<string>", "identifier": "<string>" } } }
The access token received from the authorization server in the OAuth 2.0 flow.
Use an idempotency key
Wallet successfully debited as a pending hold
The response is of type object.
object