> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paywithsoap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resume a Subscription

> Restart billing a paused subscription from today

Resume a [paused](https://docs.paywithsoap.com/api-reference/api-v1/subscriptions/pause.md) subscription to restart its billing. The billing clock restarts from the day you resume, and the paused time is never billed.

## Behavior

* **Resumed inside the period the customer paid for:** the next renewal stays at the end of that period (`current_period_end`).
* **Resumed after that period ended:** a new period starts now. `current_period_end` and `next_billing_at` are set to the resume time, and the renewal for the new period is charged on the next hourly renewal run, while renewals are enabled for your account.
* On success `paused_at` is null and the subscription reads `active`.
* Resuming an active subscription that is not paused changes nothing.
* A canceled subscription cannot be resumed (422).
* The request takes no body. The opt-in `subscription.resumed` webhook is sent on resume.

```bash Curl theme={null}
curl -X POST "https://api-sandbox.paywithsoap.com/api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG/resume" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json Error (canceled) theme={null}
{
  "error": "A canceled subscription cannot be resumed.",
  "hint": "GET /api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG shows its status."
}
```


## OpenAPI

````yaml POST /api/v1/subscriptions/{id}/resume
openapi: 3.1.0
info:
  title: Soap API
  description: >-
    API documentation for Soap - AI-native payments infrastructure for complex,
    compliance-heavy payment flows
  license:
    name: MIT
  version: 1.4.0
servers:
  - url: https://api-sandbox.paywithsoap.com
security:
  - bearerAuth: []
paths:
  /api/v1/subscriptions/{id}/resume:
    post:
      tags:
        - Subscriptions
      summary: Resume a subscription
      description: >-
        Restarts a paused subscription's billing from the day you resume it. The
        paused time is never billed. Inside the period the customer already paid
        for, the next renewal stays at that period's end. After it, a new period
        starts now and its renewal is charged within the hour. Resuming a
        subscription that is not paused changes nothing. Sends the opt-in
        `subscription.resumed` webhook. Takes no request body.
      parameters:
        - name: id
          in: path
          required: true
          description: Public id of the subscription to resume.
          schema:
            type: string
            example: sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG
      responses:
        '200':
          description: The subscription, with `paused_at` null and `next_billing_at` set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subscription'
        '401':
          description: >-
            Missing, unknown or inactive API key. The key is checked before the
            request body is read, so a request without a valid key never gets a
            400 or 422. The response never echoes the request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  hint:
                    type: string
                  code:
                    type: string
                    enum:
                      - invalid_api_key
                    description: >-
                      Stable machine-readable code. Branch on this, not on
                      `error`.
              example:
                error: API key not found.
                hint: >-
                  Send an active API key in the Authorization header as a Bearer
                  token.
                code: invalid_api_key
        '403':
          $ref: '#/components/responses/SourceNotAllowed'
        '422':
          description: >-
            Unknown subscription or another merchant's, or a canceled
            subscription.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: A canceled subscription cannot be resumed.
                  hint:
                    type: string
      security:
        - bearerAuth: []
components:
  schemas:
    Subscription:
      type: object
      description: A subscription as the merchant API returns it.
      properties:
        id:
          type: string
          example: sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG
        customer_id:
          type: string
          example: cus_3Lm8Pz3Rt6Vb1Ys5JdCfE7Hn2Kq9WxaG
        status:
          type: string
          enum:
            - incomplete
            - active
            - past_due
            - paused
            - canceled
          description: >-
            Derived from the billing dates each time you read it. `incomplete`
            until the first payment succeeds. `active` while billing runs, when
            the first payment went through while renewals were off for your
            account, and for a subscription canceled for the end of its paid
            period, until `ends_at`. `past_due` after a renewal failed, or while
            a declined renewal waits for its retry. `paused` while the merchant
            has paused billing: nothing renews until it is resumed. `canceled`
            once a canceled subscription's `ends_at` has passed.
        interval:
          type: string
          enum:
            - day
            - week
            - month
            - year
        interval_count:
          type: integer
          example: 1
        line_items:
          type: array
          items:
            type: object
            properties:
              product_id:
                type: string
              sku:
                type:
                  - string
                  - 'null'
              product_name:
                type: string
              product_url:
                type:
                  - string
                  - 'null'
              quantity:
                type: integer
              price_cents:
                type: integer
              total_amount_cents:
                type: integer
        line_items_total_amount_cents:
          type: integer
          example: 4200
        current_period_end:
          type:
            - string
            - 'null'
          format: date-time
          description: End of the period the customer has paid for.
        next_billing_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the next renewal is charged; while a declined renewal waits for
            its retry, when that retry is charged. Null while paused, canceled,
            or after a renewal failed.
        canceled_at:
          type:
            - string
            - 'null'
          format: date-time
        ends_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When a canceled subscription stops being active. Null unless
            canceled.
        paused_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the merchant paused billing. Null unless paused.
        created_at:
          type: string
          format: date-time
  responses:
    SourceNotAllowed:
      description: >-
        Soap refused the request for your account: Soap enforces an address
        allowlist for your account and the request came from an address outside
        the server addresses your business registered with it
        (`source_not_allowed`; the key itself is valid). Contact Soap support to
        change the addresses.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              hint:
                type: string
              code:
                type: string
                enum:
                  - source_not_allowed
                description: Stable machine-readable code. Branch on this, not on `error`.
          example:
            error: This API key cannot be used from this address.
            hint: >-
              Requests with this business's API keys are accepted only from the
              server addresses registered with Soap. Contact Soap support to
              change them.
            code: source_not_allowed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token authentication using your API key (key_...). Used for every
        endpoint except POST /api/v1/device_pings.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.