DeluxHostAPI Reference
Invoices

List invoice payments

GET
/v1/invoices/{id}/payments

Completed and refunded rows only — money that moved. Declined attempts are not here.

amountCents is negative on a refund and refund says so without arithmetic; reference is the gateway's own transaction id, which is what makes a row match a line on your statement.

Authorization

apiToken invoices:read
headerAuthorizationBearer <token>

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

Scope: invoices:read

Path Parameters

id*integer

Response Body

The payments against this invoice, oldest first.

application/json
  1. response
items*array<>
curl -X GET 'https://api.deluxhost.net/v1/invoices/0/payments' \  -H "Authorization: Bearer $DELUXHOST_TOKEN"
Example Response
{  "items": [    {      "id": 0,      "amountCents": 0,      "currency": "string",      "status": "completed",      "refund": true,      "method": "string",      "reference": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}