# List Subscription Payments

<Note>
**This is a net-new endpoint**

There was no payments subresource before Plans — the `payments` array on [the subscription object](/reference/subscriptions/the-subscription-object) is a legacy, always-empty field. Since there's no prior merchant integration to preserve here, this endpoint ships as one clean `data[]` shape with full plan/phase context — no legacy fields.
</Note>

<Warning>
**`offset` must be a multiple of `limit`**

A non-aligned `offset` would re-serve rows you already saw and corrupt `has_more`, so it's rejected with `400 BAD_REQUEST` instead of being silently floored.
</Warning>

<Warning>
**Free cycles are `total: 0`, not a distinct status**

A $0 billing cycle (e.g. a free trial payment) is recognizable by `total == 0` — there's no separate "free" status.
</Warning>

**GET** `/subscriptions/{subscription_id}/payments`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns the charge history for a subscription — one row per billing attempt, including plan/phase context when the subscription is linked to a plan. This is a net-new endpoint (there was no payments subresource before Plans), so it ships as a single, clean shape with no legacy fields to carry.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `subscription_id` (string, required)
  The unique identifier of the subscription.

## Query parameters

- `limit` (integer)
  Max items to return. 1-100, defaults to 20.
- `offset` (integer)
  Number of items to skip. Must be a non-negative multiple of `limit`, else `400 BAD_REQUEST` — a non-aligned offset would re-serve rows you already saw and corrupt `has_more`. Defaults to 0.

## Responses

### 200

200

- `data` (object[])
  Every payment attempt for this subscription, most recent first.
  - `id` (string)
  - `payment_id` (string)
  - `idempotency_key` (string)
  - `status` (string)
    Platform vocabulary: SUCCEEDED, DECLINED, REJECTED, ERROR, PENDING, CREATED, CANCELED — not the engine's internal EXECUTED.
  - `sub_status` (string)
  - `provider` (string)
    null for $0 cycles, the starter row, and rows charged before the provider-capture field existed.
  - `payment_method` (object)
    - `id` (string)
    - `type` (string)
  - `amount` (object)
    - `currency` (string)
    - `value` (number)
  - `currency` (string)
  - `subtotal` (number)
  - `total` (number)
  - `plan_id` (string)
    null for raw (non-plan) subscriptions.
  - `line_items` (object[])
    - `type` (string)
    - `label` (string)
    - `service_period` (object)
      - `start` (string)
      - `end` (string)
    - `amount` (object)
      - `currency` (string)
      - `value` (number)
  - `phase` (object)
    null for the starter row and for legacy (non-plan) rows.
    - `index` (integer)
    - `name` (string)
    - `type` (string)
  - `phase_payment` (integer)
    1..N within the current phase. null on the starter row.
  - `billing_cycle` (integer)
    0 = starter row, null = TRIAL-phase rows, 1.. from the first REGULAR-phase payment.
  - `retry` (object)
    - `count` (integer)
    - `forced` (boolean)
  - `trace_id` (string)
  - `created_at` (string)
  - `updated_at` (string)
- `pagination` (object)
  - `total` (integer)
  - `limit` (integer)
  - `offset` (integer)
  - `has_more` (boolean)

Example:

```json
{
  "data": [
    {
      "id": "string",
      "payment_id": "string",
      "idempotency_key": "string",
      "status": "string",
      "sub_status": "string",
      "provider": "string",
      "payment_method": {
        "id": "string",
        "type": "string"
      },
      "amount": {
        "currency": "string",
        "value": 0
      },
      "currency": "string",
      "subtotal": 0,
      "total": 0,
      "plan_id": "string",
      "line_items": [
        {
          "type": "string",
          "label": "string",
          "service_period": {
            "start": "string",
            "end": "string"
          },
          "amount": {
            "currency": "string",
            "value": 0
          }
        }
      ],
      "phase": {
        "index": 0,
        "name": "string",
        "type": "string"
      },
      "phase_payment": 0,
      "billing_cycle": 0,
      "retry": {
        "count": 0,
        "forced": true
      },
      "trace_id": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "pagination": {
    "total": 0,
    "limit": 0,
    "offset": 0,
    "has_more": true
  }
}
```