# Get the unpaid invoice behind a suspended subscription

After repeated failed charges, Dime suspends a subscription's
billing. This endpoint returns the unpaid invoice behind the
suspension; it does not charge, create or email anything. Send your
customer to the invoice's payment page,
`https://pay.dimepay.app/open-invoices/{token}/`. Paying it clears
the suspension.
A suspended subscription keeps `status: ACTIVE`, and the subscription
object does not show its billing state. To check, call this
endpoint: `404` means the subscription is not suspended or has no
unpaid invoice.

Endpoint: GET /subscriptions/reinstate
Security: ClientKey, SecretKey

## Security:

  - `ClientKey` (unknown)
    apiKey in header X-Dime-Client

  - `SecretKey` (unknown)
    http bearer

## Query parameters:

  - `token` (string, required)
    The subscription's `token`.

## Response 200:

  - `200` (unknown)
    The subscription's outstanding invoice.

## Response 200 fields (application/json):

  - `object` (string)
    Enum: "invoice"

  - `number` (string | null)
    Human-readable invoice number.
    Example: INV-25082026-0007

  - `token` (string)
    Public token. The customer pays at `https://pay.dimepay.app/open-invoices/{token}/`.
    Example: inv_20260825_giodwK2

  - `status` (string)
    Enum: "PAID", "UNPAID", "OVERDUE", "CANCELLED"

  - `payment_type` (string | null)
    Example: example

  - `currency` (string)
    Enum: "USD", "JMD", "GBP", "EUR", "TTD", "BBD", "XCD", "GYD", "SRD"

  - `subtotal` (number)
    Example: 1000

  - `total` (number)
    Example: 1100

  - `shipping` (number | null)
    Example: 0

  - `tax` (number | null)
    Example: 100

  - `tax_label` (string | null)
    Example: example

  - `discount` (number | null)
    Example: 0

  - `customer` (string | null)
    The customer's `token`.
    Example: cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW

  - `notes` (string | null)
    Example: example

  - `recurring` (boolean)
    Example: true

  - `recurring_frequency` (any)

  - `recurring_billing_cycle` (integer | null)
    Example: 6

  - `recurring_start_date` (string | null)
    Example: 2026-11-19T00:00:00.000Z

  - `recurring_end_date` (string | null)
    Example: null

  - `recurring_end_type` (string | null)
    Enum: "DATE", "CYCLE", "CANCEL", "null"

  - `line_items` (array)

  - `line_items.type` (string)
    Enum: "custom", "product"

  - `line_items.product` (string | null)
    The product's `token`, for catalog items.
    Example: prd_DbCYbcS3_OcTRL1Cd_e9nJdatU_HYypKhE

  - `line_items.name` (string)
    Example: Sample Item

  - `line_items.description` (string | null)
    Example: A short description.

  - `line_items.quantity` (integer)
    Example: 1

  - `line_items.unit_amount` (number)
    Example: 1100

  - `invoice_date` (string)
    Example: 2026-08-26T00:48:52.252Z

  - `due_date` (string)
    Example: 2026-08-26T00:48:52.252Z

  - `paid_at` (string | null)
    Example: 2026-08-26T00:48:52.252Z

  - `created_at` (string)
    Example: 2026-08-26T00:48:52.252Z

  - `updated_at` (string)
    Example: 2026-08-26T00:48:52.252Z

## Response 400:

  - `400` (unknown)
    The request was rejected.

## Response 400 fields (application/json):

  - `error` (object, required)

  - `error.type` (string, required)
    Which kind of failure occurred. Always one of four values, so
a client can branch on `type` before reading `code`.
    Enum: "invalid_request_error", "card_error", "idempotency_error", "api_error"

  - `error.code` (string, required)
    Example: parameter_missing

  - `error.message` (string, required)
    Example: Order ID is required.

  - `error.param` (string)
    The field that caused the failure, when applicable.
    Example: id

## Response 401:

  - `401` (unknown)
    The client key or secret key was missing, not recognized, or the two do not belong to the same key.

## Response 401 fields (application/json):

  - `error` (object, required)

  - `error.type` (string, required)
    Which kind of failure occurred. Always one of four values, so
a client can branch on `type` before reading `code`.
    Enum: "invalid_request_error", "card_error", "idempotency_error", "api_error"

  - `error.code` (string, required)
    Example: parameter_missing

  - `error.message` (string, required)
    Example: Order ID is required.

  - `error.param` (string)
    The field that caused the failure, when applicable.
    Example: id

## Response 404:

  - `404` (unknown)
    No reinstatable subscription — it does not exist, is not
suspended, or has no unpaid invoice.

## Response 404 fields (application/json):

  - `error` (object, required)

  - `error.type` (string, required)
    Which kind of failure occurred. Always one of four values, so
a client can branch on `type` before reading `code`.
    Enum: "invalid_request_error", "card_error", "idempotency_error", "api_error"

  - `error.code` (string, required)
    Example: parameter_missing

  - `error.message` (string, required)
    Example: Order ID is required.

  - `error.param` (string)
    The field that caused the failure, when applicable.
    Example: id

## Response 200 examples:

  - `The unpaid invoice that suspended the subscription` (unknown)

## Response 400 examples:

  - `A required field was absent` (unknown)

## Response 401 examples:

  - `unauthorized` (unknown)

  - `Client key sent without its secret key` (unknown)

## Response 404 examples:

  - `Subscription not found, or not suspended` (unknown)

  - `Suspended, but no unpaid invoice found` (unknown)

