# Upgrade DNS Shield LTD Plan

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/dns-shield/upgrade-plan:
    post:
      summary: Upgrade DNS Shield LTD Plan
      deprecated: false
      description: >-
        Purchase a Lifetime Deal (LTD) DNS Shield plan with a one-time payment.
        LTD plans provide DNS Shield protection for a fixed number of domains
        without recurring monthly charges.


        ## Plans


        | Plan | Price | Max Domains | Type |

        |------|-------|-------------|------|

        | Starter | $299 | 30 | LTD (One-time) |

        | Growth | $999 | 100 | LTD (One-time) |

        | Pro | $2,999 | 500 | LTD (One-time) |
      tags:
        - dns shield
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                subscriptionId:
                  type: string
                newPlanName:
                  type: string
              required:
                - subscriptionId
                - newPlanName
              x-apidog-orders:
                - subscriptionId
                - newPlanName
            example:
              subscriptionId: sub_xxx
              newPlanName: growth
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  invoiceUrl:
                    type: string
                required:
                  - message
                  - invoiceUrl
                x-apidog-orders:
                  - message
                  - invoiceUrl
              example:
                message: DNS Shield plan upgraded successfully from STARTER to GROWTH
                invoiceUrl: <https://invoice.stripe.com/i/acct_xxxx/test_xxxx>
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      errorId:
                        type: string
                      errors:
                        type: array
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                          x-apidog-orders:
                            - field
                            - message
                    required:
                      - errorId
                      - errors
                    x-apidog-orders:
                      - errorId
                      - errors
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 400
                message: Validation error
                data:
                  errorId: unique-error-id
                  errors:
                    - field: subscriptionId
                      message: subscriptionId is required
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      errorId:
                        type: string
                    required:
                      - errorId
                    x-apidog-orders:
                      - errorId
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 401
                message: Invalid API key
                data:
                  errorId: unique-error-id
          headers: {}
          x-apidog-name: Unauthorized
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      errorId:
                        type: string
                    required:
                      - errorId
                    x-apidog-orders:
                      - errorId
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 404
                message: Active DNS Shield LTD subscription not found
                data:
                  errorId: unique-error-id
          headers: {}
          x-apidog-name: Not Found
        '500':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      errorId:
                        type: string
                    required:
                      - errorId
                    x-apidog-orders:
                      - errorId
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 500
                message: Internal server error
                data:
                  errorId: unique-error-id
          headers: {}
          x-apidog-name: Internal Server Error
      security: []
      x-apidog-folder: dns shield
      x-apidog-status: testing
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-25782123-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
