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

# Reactivate Cancelled Subscription

> Reactivate a previously cancelled subscription for the customer.



## OpenAPI

````yaml /openapi.json post /zaymo/reactivate/subscription
openapi: 3.0.1
info:
  title: Zaymo Custom Integration API
  description: >-
    API for managing product upsells, customer interactions, and custom actions
    in email campaigns
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.your-domain.com/example/
security:
  - apiKeyAuth: []
tags:
  - name: Upsells
    description: Endpoints for managing product upsells in emails
  - name: Customer Portal
    description: Endpoints for customer subscription management portal
  - name: Swap Up
    description: Endpoints for swapping a customer's current subscription product
  - name: Reactivate
    description: Endpoints for reactivating cancelled subscriptions
  - name: Custom Actions
    description: Endpoints for executing custom actions from email buttons
  - name: Discounts
    description: Endpoints for retrieving discount information
paths:
  /zaymo/reactivate/subscription:
    post:
      tags:
        - Reactivate
      summary: Reactivate Cancelled Subscription
      description: Reactivate a previously cancelled subscription for the customer.
      requestBody:
        description: Subscription reactivation information
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReactivateSubscriptionRequest'
        required: true
      responses:
        '200':
          description: Subscription successfully reactivated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Invalid request or subscription cannot be reactivated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Customer or subscription not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ReactivateSubscriptionRequest:
      type: object
      required:
        - email
        - subscription_id
      properties:
        email:
          type: string
          format: email
          description: The email address of the customer
        subscription_id:
          type: string
          description: The unique identifier for the subscription to reactivate
        discount_code:
          type: string
          description: Optional discount code to apply to the subscription
    SuccessResponse:
      type: object
      required:
        - success
      properties:
        success:
          type: boolean
          example: true
          description: Indicates if the request was successful
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Error code identifier
            message:
              type: string
              description: Human-readable error message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Zaymo-API-Key
      description: Zaymo will authenticate requests using the API key you provide

````