Zype Subscriptions API

The Subscriptions API from Zype — 4 operation(s) for subscriptions.

Business capability
Subscription Lifecycle Management BC-4240

Operations 7

GET /subscriptions List Subscriptions #
POST /subscriptions Create a Subscription #
GET /subscriptions/{id} View Subscription #
PUT /subscriptions/{id} Update Subscription #
DELETE /subscriptions/{id} Delete Subscription #
PUT /subscriptions/{id}/cancel Cancel Subscription #
PUT /subscriptions/{id}/reactivate Reactivate Cancelled Subscription #

Documentation

📖
Documentation
https://docs.zype.com/reference/videos
📖
APIReference
https://docs.zype.com/reference/videos
📖
Documentation
https://docs.zype.com/reference/channels
📖
APIReference
https://docs.zype.com/reference/channels
📖
Documentation
https://docs.zype.com/reference/subscriptions
📖
APIReference
https://docs.zype.com/reference/subscriptions
📖
Documentation
https://docs.zype.com/reference/consumers
📖
APIReference
https://docs.zype.com/reference/consumers
📖
Documentation
https://docs.zype.com/reference/live-encoders
📖
APIReference
https://docs.zype.com/reference/live-encoders
📖
Documentation
https://docs.zype.com/reference/zobjects
📖
APIReference
https://docs.zype.com/reference/zobjects
📖
Documentation
https://docs.zype.com/reference/platform-dynamics
📖
APIReference
https://docs.zype.com/reference/platform-dynamics
📖
Documentation
https://docs.zype.com/reference/welcome-to-the-zype-api-documentation
📖
APIReference
https://docs.zype.com/reference/welcome-to-the-zype-api-documentation
📖
Documentation
https://docs.zype.com/reference/content-rule-groups
📖
APIReference
https://docs.zype.com/reference/content-rule-groups
📖
Documentation
https://docs.zype.com/reference/content-rule-profiles
📖
APIReference
https://docs.zype.com/reference/content-rule-profiles
📖
Documentation
https://docs.zype.com/reference/adobe
📖
APIReference
https://docs.zype.com/reference/adobe
📖
Documentation
https://docs.zype.com/reference/oauth
📖
APIReference
https://docs.zype.com/reference/oauth
📖
Documentation
https://docs.zype.com/reference/players
📖
APIReference
https://docs.zype.com/reference/players
📖
Documentation
https://docs.zype.com/reference/uploads
📖
APIReference
https://docs.zype.com/reference/uploads

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zype:zype-subscriptions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zype-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Monetization Subscriptions API
  version: 1.0.0
  description: ''
servers:
- url: https://api.zype.com/
security:
- api_key: []
tags:
- name: Subscriptions
paths:
  /subscriptions:
    get:
      summary: List Subscriptions
      description: ''
      tags:
      - Subscriptions
      operationId: listSubscriptions
      parameters:
      - name: id
        $ref: '#/paths/~1plans/get/parameters/0'
      - name: created_at
        $ref: '#/paths/~1plans/get/parameters/1'
      - name: updated_at
        in: query
        schema:
          type: string
        description: 'Filter records by updated at date using times in ISO8601 format (Example: `2017-01-01T00:00:00-00:00`) or Unix timestamps (Example: `1483228800`) **Note**: Range filters can be applied by adding a suffix: ‘.gt’, ‘.gte’, ‘.lt’, ‘lte’ (Example: `updated_at.gte`)'
      - name: q
        $ref: '#/paths/~1plans/get/parameters/2'
      - name: order
        $ref: '#/paths/~1plans/get/parameters/3'
      - name: sort
        $ref: '#/paths/~1plans/get/parameters/4'
      - name: page
        $ref: '#/paths/~1plans/get/parameters/5'
      - name: per_page
        $ref: '#/paths/~1plans/get/parameters/6'
      - name: plan_id
        in: query
        required: false
        schema:
          type: string
        description: ID of Plan
      - name: braintree_id
        in: query
        required: false
        schema:
          type: string
        description: Filter by the consumer's Braintree ID
      - name: recurly_code
        in: query
        required: false
        schema:
          type: string
        description: Filter by the consumer's Recurly Code
      - name: stripe_id
        in: query
        required: false
        schema:
          type: string
        description: Filter by the consumer's Stripe ID
      - name: consumer_id
        in: query
        required: false
        schema:
          type: string
        description: ID of consumer
      - name: receipt_id
        in: query
        required: false
        schema:
          type: string
        description: Receipt ID of Amazon Fire TV
      - name: payment_provider
        in: query
        description: Filter records by payment provider.
        schema:
          type: string
          enum:
          - stripe
          - braintree
          - recurly
          - redemption
          - third_party
          - amazon_fire
          - google_play
          - itunes
          - samsung
          - tizen
          - roku
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                title: SubscriptionsResponse
                type: object
                properties:
                  response:
                    type: array
                    items:
                      $ref: '#/paths/~1subscriptions/post/responses/201/content/application~1json/schema/properties/response'
    post:
      summary: Create a Subscription
      description: ''
      tags:
      - Subscriptions
      operationId: createSubscription
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              title: SubscriptionRequest
              type: object
              properties:
                type:
                  type: string
                  description: Use this parameter to indicate the subscription type ('stripe', 'braintree' or 'recurly'). This value is **required only** when the subscription type cannot be inferred automatically via its specific attributes (for example when creating a Stripe subscription with a 100% discount coupon where no stripe_id or stripe_card_token is passed).
                subscription:
                  title: SubscriptionProperties
                  required:
                  - plan_id
                  - consumer_id
                  type: object
                  properties:
                    consumer_id:
                      type: string
                    plan_id:
                      type: string
                    third_party_id:
                      description: 'The id of a third party plan. required if not using recurly, braintree or stripe.

                        *Note*: third_party_id can’t have unicode characters in the name. Only alphanumeric characters are allowed (Example: apple123)'
                      type: string
                    coupon_code:
                      description: The code of the coupon, if used.
                      type: string
                    stripe_card_token:
                      description: The Stripe credit card token as generated by a Stripe payment form
                      type: string
                    stripe_id:
                      description: The id of a Stripe subscription that has already been fully created (used for reconciling the Zype dashboard with subscriptions that have been previously created)
                      type: string
                    stripe_metadata:
                      description: 'Custom Stripe Metadata can be added, updated, and removed from Zype Subscription objects corresponding to a Stripe Subscription.  Metdata will be persisted in Stripe and Zype Platforms.

                        To add or update Stripe metadata use URL or JSON syntax: `subscription[stripe_metadata]key1=value1&subscripition[stripe_metadata]key2=value2`

                        To remove a Stripe metadata key/value pair, include the key to be removed, but do not set a value: `subscription[stripe_metadata]key1&subscripition[stripe_metadata]key2`'
                      type: object
                    braintree_payment_nonce:
                      description: The Braintree credit card payment nonce as generated by a Braintree payment form
                      type: string
                    braintree_id:
                      description: The id of a Braintree subscription that has already been fully created (used for reconciling the Zype dashboard with subscriptions that have been previously created)
                      type: string
                    recurly_token_id:
                      description: The Recurly credit card token ID by a Recurly.js payment form
                      type: string
                    recurly_uuid:
                      description: The uuid of a Recurly subscription that has already been fully created (used for reconciling the Zype dashboard with subscriptions that have been previously created)
                      type: string
                    status:
                      description: Valid values are ‘canceled’, ‘active’ or ‘paused’ (Stripe only). If left empty, ‘active’ will be the default value. When ‘paused’, use ‘active’ to resume the cycle.
                      type: string
                    cancelled_at:
                      description: If the subscription has already been cancelled at a certain date
                      type: string
                    cancel_at_period_end:
                      description: Set Stripe subscription to cancel at period end (Stripe only)
                      type: boolean
                    trial_end:
                      description: Unix timestamp to set Stripe subscription's trial_end value (Stripe only). Overrides Zype's trialing logic.
                      type: string
                    trial_from_plan:
                      description: Set Stripe subscription's trial_from_plan (Stripe only). Overrides Zype's trialing logic.
                      type: boolean
                    current_period_start_at:
                      description: Set the beginning of the subscription period. *Only applies to Recurly and third party subscriptions* Either `current_period_start_at` or `current_period_end_at` should be set, *but not both*.
                      type: string
                    current_period_end_at:
                      description: Set the end of the subscription period. *Only applies to third party subscriptions* (`third_party_id` field should be present). Either `current_period_start_at` or `current_period_end_at` should be set, *but not both*.
                      type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                title: SubscriptionResponse
                type: object
                properties:
                  response:
                    title: Subscription
                    type: object
                    properties:
                      _id:
                        type: string
                      amount:
                        description: Amount the subscription costs (3.99)
                        type: integer
                      created_at:
                        type: string
                      currency:
                        description: will match the Plan's currency
                        type: string
                      current_period_end_at:
                        type: string
                      current_period_start_at:
                        type: string
                      discount_amount:
                        type: number
                      discount_duration:
                        type: string
                        description: How long the discount will be valid
                      discount_duration_months:
                        description: How many months the discount will be valid
                        type: number
                      discount_percent:
                        description: Percentage off total price
                        type: number
                      mrr:
                        description: Monthly Recurring Revenue
                        type: number
                      site_id:
                        type: string
                      start_at:
                        type: string
                      trial_period_days:
                        description: Number of days a trial will last
                        type: number
                      updated_at:
                        type: string
                      plan_name:
                        type: string
                      consumer_id:
                        type: string
                      plan_id:
                        type: string
                      third_party_id:
                        type: string
                      stripe_card_token:
                        description: The Stripe credit card token as generated by a Stripe payment form
                        type: string
                      stripe_id:
                        type: string
                      braintree_payment_nonce:
                        type: string
                      braintree_id:
                        type: string
                      recurly_token_id:
                        type: string
                      recurly_uuid:
                        type: string
                      status:
                        description: Valid values are ‘canceled’, ‘active’ or ‘paused’ (Stripe only). If left empty, ‘active’ will be the default value. When ‘paused’, use ‘active’ to resume the cycle.
                        type: string
                      days_remaining:
                        description: When the status is ‘active’, the days remaining in the current cycle. When ‘canceled’, the value returned is 0. When ‘paused’ (Stripe only), the days remaining before pausing.
                        type: integer
                      cancelled_at:
                        type: string
                      cancel_at_period_end:
                        description: Set Stripe subscription to cancel at period end
                        type: boolean
                      coupon_code:
                        description: The code of the coupon, if used.
                        type: string
                      payment_provider:
                        type: string
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans/post/responses/422/content/application~1json/schema'
  /subscriptions/{id}:
    get:
      summary: View Subscription
      description: ''
      tags:
      - Subscriptions
      operationId: getSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the subscription
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/paths/~1subscriptions/post/responses/201/content/application~1json/schema'
        '404':
          description: Subscription not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
    put:
      summary: Update Subscription
      description: ''
      tags:
      - Subscriptions
      operationId: updateSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the subscription
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              $ref: '#/paths/~1subscriptions/post/requestBody/content/application~1json/schema'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/paths/~1subscriptions/post/responses/201/content/application~1json/schema'
        '404':
          description: Subscription not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans/post/responses/422/content/application~1json/schema'
    delete:
      summary: Delete Subscription
      description: ''
      tags:
      - Subscriptions
      operationId: deleteSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the subscription
      responses:
        '204':
          description: Subscription successfully deleted
          content:
            application/json:
              schema:
                $ref: '#/paths/~1subscriptions/post/responses/201/content/application~1json/schema'
        '404':
          description: Subscription not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
  /subscriptions/{id}/cancel:
    put:
      summary: Cancel Subscription
      description: ''
      tags:
      - Subscriptions
      operationId: cancelSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the subscription
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/paths/~1subscriptions/post/responses/201/content/application~1json/schema'
        '404':
          description: Subscription not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans/post/responses/422/content/application~1json/schema'
  /subscriptions/{id}/reactivate:
    put:
      summary: Reactivate Cancelled Subscription
      description: ''
      tags:
      - Subscriptions
      operationId: reactivateSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the subscription
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/paths/~1subscriptions/post/responses/201/content/application~1json/schema'
        '404':
          description: Subscription not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans/post/responses/422/content/application~1json/schema'
components:
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: query
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth access token
      description: OAuth access token of the consumer