# Retrieve a subscription

Takes the subscription's `token`, which is in the subscription object
returned when you create or list subscriptions. A token that matches
no subscription returns `404`.

Endpoint: GET /subscriptions/{token}
Security: ClientKey, SecretKey

## Security:

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

  - `SecretKey` (unknown)
    http bearer

## Path parameters:

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

## Response 200:

  - `200` (unknown)
    The subscription.

## Response 200 fields (application/json):

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

  - `token` (string | null)
    Identifies the subscription. Use it in URLs and as `token` in the
cancel, pause, resume and reinstate requests.
    Example: sub_pESz9qv3_M4rhjWUy_KMaAVBqb_XyCKvmZ

  - `status` (string)
    You can set `ACTIVE`, `PAUSED` or `CANCELLED` with
`PUT /subscriptions/cancel`. Dime sets the others.
    Enum: "ACTIVE", "PAUSED", "CANCELLED", "COMPLETE", "PENDING", "PENDING_CANCELLATION", "SUSPENDED", "TRIALING"

  - `frequency` (string)
    Enum: "WEEKLY", "MONTHLY", "YEARLY"

  - `billing_cycles` (integer | null)
    Charges remaining after the first. `null` when it runs until cancelled.
    Example: 11

  - `end_type` (string | null)
    `CANCEL` runs until cancelled; `CYCLE` stops after `billing_cycles`.
    Enum: "CANCEL", "CYCLE", "null"

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

  - `amount` (number | null)
    Example: 1100

  - `customer_id` (string | null)
    The customer's `token`, when one is attached.
    Example: cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW

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

  - `end_date` (string | null)
    Example: 2027-08-26T00:48:52.252Z

  - `next_billing_date` (string | null)
    Example: 2026-09-26T00:48:52.252Z

  - `paused` (boolean)
    Whether the next billing cycle will be skipped.
    Example: false

  - `paused_days` (integer | null)
    Days the next cycle was pushed out by, when paused.
    Example: 14

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

## 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 subscription matches the token.

## 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:

  - `An active monthly subscription` (unknown)

## Response 401 examples:

  - `unauthorized` (unknown)

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

## Response 404 examples:

  - `missing` (unknown)

