# Resume charging after a skip

Undoes a skip made with `PUT /subscriptions/pause`. It cannot resume
a subscription whose `status` is `PAUSED`: that returns `404`. To
restart one, set `status: ACTIVE` with `PUT /subscriptions/cancel`.
`resume_type` chooses how:
- `IMMEDIATE`
 charges the customer right away and restarts billing

from today.
- `SCHEDULED`
 only moves
`next_billing_date`
 to
`scheduled_date`
; no

charge happens now.

If the pause has not actually started yet (today is still before
the date it was due to begin), the pause is simply reverted instead
— nothing is charged and `resume_type` has no effect.
When resuming would start a new billing period past the
subscription's original end (a renewal), `user_consent_given: true`
is required, or the request fails with `400`.
Safe to retry: send the same `Idempotency-Key` header on a retry and
the subscription is returned with `replayed: true` rather than
resuming — and charging — a second time.

Endpoint: PUT /subscriptions/resume
Security: ClientKey, SecretKey

## Security:

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

  - `SecretKey` (unknown)
    http bearer

## Header parameters:

  - `Idempotency-Key` (string)
    Reuse on retry to replay the first result. Without one, a key is
derived from the subscription, resume type, and day, so retries
on the same day are still deduplicated.

## Request fields (application/json):

  - `token` (string, required)
    The subscription's `token`. A database id is rejected with `400`.
    Example: sub_pESz9qv3_M4rhjWUy_KMaAVBqb_XyCKvmZ

  - `resume_type` (string, required)
    Enum: "IMMEDIATE", "SCHEDULED"

  - `scheduled_date` (string)
    Required when `resume_type` is `SCHEDULED`.
    Example: 2026-11-15

  - `user_consent_given` (boolean)
    Required when resuming starts a new billing period.
    Example: false

## Request examples:

  - `Resume and charge now` (unknown)

  - `Resume on a future date` (unknown)

## Response 200:

  - `200` (unknown)
    The subscription, resumed.

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

  - `400` (unknown)
    The resume cannot proceed as requested.

## 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 resumable subscription for this merchant — it does not exist,
is not `ACTIVE`, or was never paused.

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

  - `Charging resumes on the next billing date` (unknown)

## Response 400 examples:

  - `Resuming would start a new billing period` (unknown)

## Response 401 examples:

  - `unauthorized` (unknown)

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

## Response 404 examples:

  - `missing` (unknown)

