Whop Promo Codes API

Discount / promo codes applied at checkout.

Operations 5

GET /promo_codes List promo codes #
POST /promo_codes Create a promo code #
GET /promo_codes/{id} Retrieve a promo code #
POST /promo_codes/{id} Update a promo code #
DELETE /promo_codes/{id} Delete a promo code #

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/whop-promo-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

whop-promo-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Whop REST API (v1) Checkout Configurations Promo Codes API
  description: 'The Whop REST API (v1) is the current primary REST surface for the Whop digital-products / memberships / creator-commerce platform. It lets applications manage memberships and access, products (access passes) and their pricing plans, take payments and issue refunds, manage users and companies, build checkout flows, pay out users via transfers, and register webhooks. All requests are authenticated with a Bearer token (`Authorization: Bearer <API_KEY>`); a Company/Account API key and an App API key are the two key types, with OAuth tokens used when acting on behalf of a signed-in Whop user.

    Grounding notes: base URLs, the Bearer scheme, the `List memberships` and `List payments` query parameters and response fields, and the resource / operation catalog are taken from Whop''s published documentation at docs.whop.com (see the docs `llms.txt` index). Individual action sub-paths (for example the cancel / pause / resume membership actions) are modeled from the documented operation names; verify exact path segments against the live reference on reconciliation.'
  version: '1.0'
  contact:
    name: API Evangelist
    email: kin@apievangelist.com
    url: https://apievangelist.com
  license:
    name: API documentation - Whop Terms of Service
    url: https://whop.com/terms-of-service/
servers:
- url: https://api.whop.com/api/v1
  description: Production
- url: https://sandbox-api.whop.com/api/v1
  description: Sandbox
security:
- bearerAuth: []
tags:
- name: Promo Codes
  description: Discount / promo codes applied at checkout.
paths:
  /promo_codes:
    get:
      operationId: listPromoCodes
      tags:
      - Promo Codes
      summary: List promo codes
      responses:
        '200':
          description: A page of promo codes.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PromoCode'
                  page_info:
                    $ref: '#/components/schemas/PageInfo'
    post:
      operationId: createPromoCode
      tags:
      - Promo Codes
      summary: Create a promo code
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromoCode'
      responses:
        '201':
          description: The created promo code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromoCode'
  /promo_codes/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: retrievePromoCode
      tags:
      - Promo Codes
      summary: Retrieve a promo code
      responses:
        '200':
          description: A promo code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromoCode'
    post:
      operationId: updatePromoCode
      tags:
      - Promo Codes
      summary: Update a promo code
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromoCode'
      responses:
        '200':
          description: The updated promo code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromoCode'
    delete:
      operationId: deletePromoCode
      tags:
      - Promo Codes
      summary: Delete a promo code
      responses:
        '204':
          description: The promo code was deleted.
components:
  schemas:
    PageInfo:
      type: object
      description: Cursor pagination metadata.
      properties:
        has_next_page:
          type: boolean
        has_previous_page:
          type: boolean
        start_cursor:
          type:
          - string
          - 'null'
        end_cursor:
          type:
          - string
          - 'null'
    PromoCode:
      type: object
      description: A discount / promo code applied at checkout.
      properties:
        id:
          type: string
        code:
          type: string
        amount_off:
          type:
          - number
          - 'null'
        percent_off:
          type:
          - number
          - 'null'
        status:
          type: string
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Whop API key
      description: 'Bearer token authentication. Use a Company/Account API key or an App API key in the `Authorization: Bearer <API_KEY>` header. OAuth access tokens are used when acting on behalf of a signed-in Whop user.'