DeluxHostAPI Reference
Account credit

List credit transactions

GET
/v1/credit/transactions

The ledger behind creditCents on /v1/me. Signed amounts: positive adds, negative spends. balanceAfterCents is the balance immediately after each row, so nothing has to be summed.

Cursor-paginated. Key on kind and invoiceId — description is free text for a human.

Authorization

apiToken account:read
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: account:read

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
before?integer

Cursor from the previous page.

Response Body

One page of the ledger.

application/json
  1. response
items*array<>
nextCursor*integer|null
curl -X GET 'https://api.deluxhost.net/v1/credit/transactions' \  -H "Authorization: Bearer $DELUXHOST_TOKEN"
Example Response
{  "items": [    {      "id": 0,      "amountCents": 0,      "balanceAfterCents": 0,      "kind": "deposit",      "invoiceId": 0,      "description": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": 0}