Spend funds from a wallet by issuing a debit. The debit reduces the wallet's balance immediately.
Basic debit#
Debit $1.00 from a wallet. By default, funds go to the world account (representing the outside world):
POST/api/wallets/wallets/<WALLET_ID>/debit
Setting the destination#
Send debited funds to a specific ledger account instead of world:
POST/api/wallets/wallets/<WALLET_ID>/debit
Sending to another wallet#
You can also send funds directly to another wallet:
POST/api/wallets/wallets/<WALLET_ID>/debit
The wallet must have sufficient funds. If it doesn't, the debit fails with an INSUFFICIENT_FUND error.