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

# Create multiple Redemption Codes at once

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Monetization",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/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"
                }
              }
            }
          }
        }
      }
    }
  }
}
```