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

# Resume Subscription API

> The Resume Subscription API allows merchants to reactivate a previously paused subscription, resuming the billing cycle and associated services for the customer.

### Key Points

<Info>
  ### Resume a Subscription

  * Merchants can use this API to resume a subscription that was previously paused, restoring regular billing and service.

  * Once resumed, the subscription will return to its active status, and future billing cycles will proceed as originally scheduled.

  ### Billing Cycle and Status

  * The subscription will be reinstated to the active status, and billing will pick up from where it left off. If the next billing cycle is due, it will be processed automatically.

  * Any discounts or trial periods configured in the original subscription will continue as initially set.

  ### Required Parameters

  * Subscription ID: The unique identifier of the subscription to be resumed.
</Info>

## Flow diagram

<img src="https://mintcdn.com/dasdoc/kfo25CLU3J6KbVVp/images/timeline-diagram/flows-API-subs-resume.svg?fit=max&auto=format&n=kfo25CLU3J6KbVVp&q=85&s=05ec51718006927cd77ec2d589549710" alt="Flow diagram image" width="1997" height="868" data-path="images/timeline-diagram/flows-API-subs-resume.svg" />

## Api Parameters


## OpenAPI

````yaml /api-reference/en/open-api-config/subscription/resume-subscription.json  POST /api/v1/server-to-server-interface/subscription/{subscription_id}/resume
openapi: 3.0.1
info:
  title: Payment Options API
  description: API for generating Hosted Payment Page (HPP) links and processing payments.
  version: 1.0.0
servers:
  - url: https://api-dev.paymentoptions.com
security:
  - apiKeyAuth: []
    xApiKeyAuth: []
paths:
  /api/v1/server-to-server-interface/subscription/{subscription_id}/resume:
    post:
      summary: Resume Subscription
      description: This endpoint resumes a paused subscription using its Subscription ID.
      operationId: resumeSubscription
      parameters:
        - name: subscription_id
          in: path
          required: true
          schema:
            type: string
            maxLength: 36
            description: The unique Subscription ID of the subscription.
          description: >-
            The Subscription ID of the subscription. Example:
            664dc930-88bd-4696-8807-5e0f1fedba0b.
      responses:
        '200':
          description: A successful response indicating the subscription has been resumed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates whether the operation was successful.
                    example: true
                  status_code:
                    type: integer
                    description: The HTTP status code of the response.
                    example: 200
                  is_live:
                    type: boolean
                    description: >-
                      Indicates if the transaction is live or a test
                      transaction.
                    example: false
                  gateway_response:
                    type: object
                    description: Response details from the gateway.
                    properties:
                      version:
                        type: string
                        description: The version of the gateway.
                        example: '1'
                      type:
                        type: string
                        description: >-
                          Type of response (e.g., INFO for informative
                          response).
                        example: INFO
                      message:
                        type: string
                        description: Message response from the gateway.
                        example: Subscription Updated.
                      code:
                        type: string
                        description: Response code from the gateway.
                        example: INFO3000
                  subscription_details:
                    type: object
                    description: Details of the subscription.
                    properties:
                      id:
                        type: string
                        description: The Subscription ID.
                        example: 664dc930-88bd-4696-8807-5e0f1fedba0b
                      type:
                        type: string
                        description: The type of subscription (e.g., CYCLE or Unlimited).
                        example: CYCLE
                      max_cycle_count:
                        type: integer
                        description: The maximum number of billing cycles.
                        example: 10
                      status:
                        type: string
                        description: The updated status of the subscription.
                        example: ACTIVE
                      completed_payment_cycle:
                        type: integer
                        description: The number of completed payment cycles.
                        example: 1
                      last_payment_status:
                        type: string
                        description: >-
                          The status of the last payment made under this
                          subscription.
                        example: SUCCESSFUL
                      next_payment_date:
                        type: string
                        format: date-time
                        description: The next payment date of the subscription.
                        example: '2024-11-28T01:31:29.154Z'
                      next_payment_cycle:
                        type: integer
                        description: The next payment cycle number.
                        example: 2
                      subscription_plan_details:
                        type: object
                        description: Details of the subscription plan.
                        properties:
                          name:
                            type: string
                            description: The name of the subscription plan.
                            example: Three weeks plan
                          desc:
                            type: string
                            description: The description of the subscription plan.
                            example: Billed every two days
                          billing_cycle_type:
                            type: string
                            description: The type of billing cycle (e.g., DAYS or MONTHS).
                            example: DAYS
                          billing_cycle_interval:
                            type: integer
                            description: The interval between billing cycles.
                            example: 2
                          amount:
                            type: integer
                            description: The payment amount for the subscription plan.
                            example: 1000
                          ccy:
                            type: string
                            description: The currency of the subscription transaction.
                            example: JPY
                          trial_period_duration:
                            type: string
                            description: The duration of the trial period (if applicable).
                            example: ''
                          trial_period_duration_type:
                            type: string
                            description: >-
                              The type of trial period duration (e.g., DAYS or
                              MONTHS).
                            example: NONE
                          plan_discount_percentage:
                            type: number
                            description: The discount percentage for the subscription plan.
                            example: 10
                          plan_discount_duration:
                            type: integer
                            description: The duration of the discount in billing cycles.
                            example: 2
                      subscription_transaction_details:
                        type: array
                        description: A list of transaction details for the subscription.
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: >-
                                The Transaction ID of this subscription
                                transaction.
                              example: 359f39bd-673a-47b3-b9ec-cbd6cd313b8e
                            ref:
                              type: integer
                              description: The reference of the subscription transaction.
                              example: 74860
                            cycle:
                              type: integer
                              description: The payment cycle number of the transaction.
                              example: 1
                            status:
                              type: string
                              description: The status of the subscription transaction.
                              example: SUCCESSFUL
                            transaction_date:
                              type: string
                              format: date-time
                              description: The date of the subscription transaction.
                              example: '2024-11-26T01:31:29.000Z'
                            amount:
                              type: integer
                              description: The payment amount of the transaction.
                              example: 900
                            ccy:
                              type: string
                              description: The currency of the transaction.
                              example: JPY
                            event:
                              type: string
                              description: >-
                                The event type for the transaction (e.g.,
                                CAPTURED).
                              example: CAPTURED
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: Authorization
      in: header
      description: 'API Key for Authorization. Format: ''Basic YOUR_API_KEY_HERE'''
    xApiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header
      description: API Key specific to x-api-key.

````