Subscriptions
View as Markdown

A subscription’s invoices with their lines

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

GET
/api/v1/subscriptions/{id}/invoices

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/subscriptions/3fa85f64-5717-4562-b3fc-2c963f66afa6/invoices" \
  -H "Authorization: Bearer <token>"

Oldest first.

{
  "data": {
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "sequential_number": "string",
        "status": "draft",
        "currency": "USD",
        "subtotal_cents": "-1500",
        "discount_cents": "1999",
        "tax_cents": "1999",
        "total_cents": "-1500",
        "credit_applied_cents": "-1500",
        "amount_due_cents": "-1500",
        "period_start": "2019-08-24T14:15:22Z",
        "period_end": "2019-08-24T14:15:22Z",
        "created_at": "2019-08-24T14:15:22Z",
        "lines": [
          {
            "description": "string",
            "line_type": "subscription",
            "quantity": "string",
            "unit_amount_cents": "-1500",
            "amount_cents": "-1500",
            "currency": "USD"
          }
        ]
      }
    ]
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}