POST
/
accounts
/
{id}
/
debit
curl --request POST \
  --url https://sandbox-api.billingrails.com/v1/accounts/{id}/debit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1000,
  "currency": "USD",
  "reference": "payment_12345"
}'
{
  "account_id": "acc_IhMUl3rrZ3",
  "balances": [
    {
      "type": "currency",
      "currency": "USD",
      "available": 4000
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The account ID

Body

application/json

Response

200
application/json

Debit processed successfully

The response is of type object.