Accounts
Debit balance
Debits an account's balance.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
amount*integer
The amount to debit in the smallest currency unit.
Range
1 <= valueasset_code?string
The asset code for the debit.
currency?string
The currency code for the debit.
Match
^[A-Z]{3}$reference_id?string
Optional reference ID for tracking the debit.
Response Body
application/json
curl -X POST "https://api.sandbox.billingrails.com/v1/accounts/string/debit" \ -H "Content-Type: application/json" \ -d '{ "amount": 1000, "currency": "USD", "reference_id": "ref_12345" }'{
"account_id": "acc_IhMUl3rrZ3",
"balances": [
{
"type": "currency",
"available": 4000,
"currency": "USD"
}
]
}