Customers
View as Markdown

Customer balance ledger

Needs the customers:read scope, or a full-access key. About scopes

GET
/api/v1/customers/{id}/balance-transactions

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Path Parameters

id
Required
string

Format: "uuid"
curl -X GET "https://globalymint.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/balance-transactions" \
  -H "Authorization: Bearer <token>"

Newest first, plus the current balance per currency. Negative balance = credit owed to the customer; invoices consume it at finalize.

{
  "data": {
    "balance_cents": [
      {
        "currency": "USD",
        "balance_cents": "-1500"
      }
    ],
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "amount_cents": "-1500",
        "currency": "USD",
        "source_type": "credit_note",
        "source_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "description": "string",
        "ending_balance_cents": "-1500",
        "created_at": "2019-08-24T14:15:22Z"
      }
    ]
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}