Zype Redemption Codes API

The Redemption Codes API from Zype — 4 operation(s) for redemption codes.

Operations 7

GET /redemption_codes List Redemption Codes #
POST /redemption_codes Create Redemption Codes #
GET /redemption_codes/{id_or_code} View Redemption Code #
PUT /redemption_codes/{id_or_code} Update Redemption Code #
DELETE /redemption_codes/{id_or_code} Delete Redemption Code #
POST /redemption_codes/redeem Redeem an available Redemption Code #
POST /redemption_codes/bulk_create Create multiple Redemption Codes at once #

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-redemption-codes-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-redemption-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Monetization Redemption Codes API
  version: 1.0.0
  description: ''
servers:
- url: https://api.zype.com/
security:
- api_key: []
tags:
- name: Redemption Codes
paths:
  /redemption_codes:
    get:
      summary: List Redemption Codes
      description: ''
      tags:
      - Redemption Codes
      operationId: listRedemptionCodes
      parameters:
      - name: id
        $ref: '#/paths/~1plans/get/parameters/0'
      - name: created_at
        $ref: '#/paths/~1plans/get/parameters/1'
      - 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: code
        in: query
        schema:
          type: string
        description: Filter by code
      - name: expiration_date
        in: query
        required: false
        schema:
          type: string
          format: date
        description: "Filter by created at date using times in ISO8601 format\nNote: Range filters can be applied by adding a suffix: ‘.gt’, ‘.gte’, ‘.lt’, ‘lte’ (Example: expires_at.gte)\n+ Examples\n    + `2017-01-01T00:00:00-00:00` - in ISO8601 format\n    + `1483228800` - Unix timestamps"
      - name: redeemed_at
        in: query
        required: false
        schema:
          type: string
          format: date
        description: "Filter by created at date using times in ISO8601 format\nNote: Range filters can be applied by adding a suffix: ‘.gt’, ‘.gte’, ‘.lt’, ‘lte’ (Example: expires_at.gte)\n+ Examples\n    + `2017-01-01T00:00:00-00:00` - in ISO8601 format\n    + `1483228800` - Unix timestamps"
      - name: pass_plan_id
        in: query
        required: false
        schema:
          type: string
        description: Filter records by a pass plan ID
      - name: plan_id
        in: query
        required: false
        schema:
          type: string
        description: Filter records by plan ID
      - name: playlist_id
        in: query
        required: false
        schema:
          type: string
        description: Filter records by playlist ID
      - name: transaction_id
        in: query
        required: false
        schema:
          type: string
        description: Filter records by transaction ID
      - name: video_id
        in: query
        required: false
        schema:
          type: string
        description: Filter records by video ID
      - name: api_key
        in: query
        required: false
        schema:
          type: string
        description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                title: RedemptionCodesResponse
                type: object
                properties:
                  response:
                    type: array
                    items:
                      $ref: '#/paths/~1redemption_codes/post/responses/201/content/application~1json/schema/properties/response'
                    description: ''
                  pagination:
                    $ref: '#/paths/~1plans/get/responses/200/content/application~1json/schema/properties/pagination'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans/post/responses/422/content/application~1json/schema'
    post:
      summary: Create Redemption Codes
      description: ''
      tags:
      - Redemption Codes
      operationId: createRedemptionCode
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              title: RedemptionCodeRequest
              type: object
              required:
              - redemption_code
              properties:
                redemption_code:
                  type: object
                  title: RedemptionCodeProperties
                  required:
                  - code
                  - expiration_date
                  properties:
                    code:
                      type: string
                      description: Use this param to specify your own code. If no code is sent, one will automatically be generated.
                    expiration_date:
                      type: string
                      description: 'Expiration date for the redemption code. Example: 2017-01-15.'
                    video_id:
                      type: string
                      description: The ID of the video that the user will be entitled to upon redeeming the code. Required if the redemption code is for a video.
                    playlist_id:
                      type: string
                      description: The ID of the playlist that the user will be entitled to upon redeeming the code. Required if the redemption code is for a playlist.
                    plan_id:
                      type: string
                      description: The ID of the subscription plan that the user will be subscribed to upon redeeming the code. Required if the redemption code is for a subscription.
                    pass_plan_id:
                      type: string
                      description: The ID of the pass plan that the user will have access to upon redeeming the code. Required if the redemption code is for a pass plan.
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                title: RedemptionCodeResponse
                type: object
                properties:
                  response:
                    title: RedemptionCode
                    type: object
                    properties:
                      _id:
                        type: string
                      content_title:
                        type: string
                      content_type:
                        type: string
                      created_at:
                        type: string
                      redeemed_at:
                        type: string
                      site_id:
                        type: string
                      updated_at:
                        type: string
                      nice_code:
                        type: string
                      available:
                        type: string
                      redeemed:
                        type: string
                      expired:
                        type: string
                      code:
                        type: string
                      expiration_date:
                        type: string
                      video_id:
                        type: string
                      pass_plan_id:
                        type: string
                      plan_id:
                        type: string
                      playlist_id:
                        type: string
                      transaction_id:
                        type: string
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans/post/responses/422/content/application~1json/schema'
  /redemption_codes/{id_or_code}:
    get:
      summary: View Redemption Code
      description: ''
      tags:
      - Redemption Codes
      operationId: getRedemptionCode
      parameters:
      - name: id_or_code
        in: path
        required: true
        schema:
          type: string
        description: ID or Code of redemption code
      responses:
        '200':
          description: Return a redemption code
          content:
            application/json:
              schema:
                $ref: '#/paths/~1redemption_codes/post/responses/201/content/application~1json/schema'
        '404':
          description: Redemption Code not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
    put:
      summary: Update Redemption Code
      description: ''
      tags:
      - Redemption Codes
      operationId: updateRedemptionCode
      parameters:
      - name: id_or_code
        in: path
        required: true
        schema:
          type: string
        description: ID or Code of redemption code
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              $ref: '#/paths/~1redemption_codes/post/requestBody/content/application~1json/schema'
      responses:
        '200':
          description: Return a redemption code
          content:
            application/json:
              schema:
                $ref: '#/paths/~1redemption_codes/post/responses/201/content/application~1json/schema'
        '404':
          description: Redemption Code 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 Redemption Code
      description: ''
      tags:
      - Redemption Codes
      operationId: deleteRedemptionCode
      parameters:
      - name: id_or_code
        in: path
        required: true
        schema:
          type: string
        description: ID or Code of redemption code
      responses:
        '204':
          description: Redemption Code deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/paths/~1redemption_codes/post/responses/201/content/application~1json/schema'
        '404':
          description: Redemption Code not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1plans~1%7Bid%7D/get/responses/404/content/application~1json/schema'
  /redemption_codes/redeem:
    post:
      summary: Redeem an available Redemption Code
      description: ''
      tags:
      - Redemption Codes
      operationId: redeem
      security:
      - bearerAuth: []
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              title: RedemptionCodeRedeemRequest
              type: object
              required:
              - redemption_code
              properties:
                redemption_code:
                  type: object
                  title: RedemptionCodeRedeemProperties
                  required:
                  - code
                  properties:
                    code:
                      description: Code of the Redemption Code
                      type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/paths/~1redemption_codes/post/responses/201/content/application~1json/schema'
        '404':
          description: Redemption Code 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'
  /redemption_codes/bulk_create:
    post:
      summary: Create multiple Redemption Codes at once
      tags:
      - Redemption Codes
      operationId: bulkCreate
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              title: RedemptionCodeBulkCreateRequest
              type: object
              required:
              - redemption_code
              properties:
                redemption_code:
                  type: object
                  title: RedemptionCodeProperties
                  required:
                  - code
                  - expiration_date
                  properties:
                    code:
                      type: string
                      description: Use this param to specify your own code. If no code is sent, one will automatically be generated.
                    expiration_date:
                      type: string
                      description: 'Expiration date for the redemption code. Example: 2017-01-15.'
                    video_id:
                      type: string
                      description: The ID of the video that the user will be entitled to upon redeeming the code. Required if the redemption code is for a video.
                    playlist_id:
                      type: string
                      description: The ID of the playlist that the user will be entitled to upon redeeming the code. Required if the redemption code is for a playlist.
                    plan_id:
                      type: string
                      description: The ID of the subscription plan that the user will be subscribed to upon redeeming the code. Required if the redemption code is for a subscription.
                    pass_plan_id:
                      type: string
                      description: The ID of the pass plan that the user will have access to upon redeeming the code. Required if the redemption code is for a pass plan.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                title: RedemptionCodesBulkCreateResponse
                properties:
                  message:
                    type: string
        '422':
          description: Redemption code not available
          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