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

# Resume a subscription

> Resumes a paused subscription and schedules the next billing cycle.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/subscriptions/{uuid}/resume
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/subscriptions/{uuid}/resume:
    patch:
      tags:
        - Subscriptions
      summary: Resume a subscription
      description: Resumes a paused subscription and schedules the next billing cycle.
      operationId: d1007a19d508342c1b9b3a1afe065208
      parameters:
        - $ref: '#/components/parameters/XClientId'
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Subscription resumed
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/Subscription'
                type: object
        '401':
          description: Unauthorized — Invalid API Key
        '404':
          description: Subscription not found
        '422':
          description: Subscription is not paused
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  schemas:
    Subscription:
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - active
            - trialing
            - paused
            - past_due
            - canceled
          example: active
        plan:
          oneOf:
            - $ref: '#/components/schemas/SubscriptionPlan'
          nullable: true
        customer:
          type: object
          nullable: true
        card:
          properties:
            last_4_digits:
              type: string
              example: '4242'
            brand:
              type: string
              example: visa
            expire_month:
              type: string
              example: '12'
            expire_year:
              type: string
              example: '2028'
          type: object
          nullable: true
        coupon:
          type: object
          nullable: true
        amount:
          description: Effective billing amount in cents (after discount)
          type: integer
          example: 2990
        original_amount:
          type: integer
          example: 2990
        discount_amount:
          type: integer
          example: 500
          nullable: true
        currency:
          type: string
          example: BRL
        interval:
          type: string
          enum:
            - weekly
            - monthly
            - yearly
          example: monthly
        interval_count:
          type: integer
          example: 1
        billing_day:
          type: integer
          example: 5
          nullable: true
        trial:
          properties:
            period_days:
              type: integer
              example: 7
            start:
              type: string
              format: date-time
              nullable: true
            end:
              type: string
              format: date-time
              nullable: true
          type: object
          nullable: true
        current_period:
          properties:
            start:
              type: string
              format: date-time
              nullable: true
            end:
              type: string
              format: date-time
              nullable: true
          type: object
        next_billing_at:
          type: string
          format: date-time
          nullable: true
        paused_at:
          type: string
          format: date-time
          nullable: true
        paused_until:
          type: string
          format: date-time
          nullable: true
        canceled_at:
          type: string
          format: date-time
          nullable: true
        cancel_at:
          type: string
          format: date-time
          nullable: true
        cancel_at_period_end:
          type: boolean
          example: false
        plan_change_at:
          type: string
          format: date-time
          nullable: true
        new_plan_id:
          type: string
          format: uuid
          nullable: true
        metadata:
          type: array
          items:
            type: object
          nullable: true
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
      type: object
    SubscriptionPlan:
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          example: Basic Monthly
        description:
          type: string
          nullable: true
        amount:
          description: Plan price in cents
          type: integer
          example: 2990
        currency:
          type: string
          example: BRL
        interval:
          type: string
          enum:
            - weekly
            - monthly
            - yearly
          example: monthly
        interval_count:
          type: integer
          example: 1
          nullable: true
        trial_period_days:
          type: integer
          example: 7
          nullable: true
        billing_day:
          description: Day of the month to charge (1–28)
          type: integer
          example: 5
          nullable: true
        min_card_months:
          description: >-
            Minimum months the card must be valid at subscription creation; null
            = no restriction
          type: integer
          example: 3
          nullable: true
        is_active:
          type: boolean
          example: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````