Octane Coupons API

Manage discount coupons

Operations 5

GET /coupons List Coupons #
POST /coupons Create Coupon #
GET /coupons/{coupon_name} Get Coupon #
DELETE /coupons/{coupon_name} Delete Coupon #
POST /coupons/apply_coupon Apply Coupon #

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/octane-coupons-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

octane-coupons-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Octane REST Admin Coupons API
  description: REST API for managing meters, customers, pricing plans, subscriptions, measurements, and real-time usage data for usage-based billing workflows. Octane enables infrastructure and SaaS companies to implement flexible pay-as-you-go billing similar to Snowflake and AWS.
  version: 1.0.0
  contact:
    name: Octane Support
    url: https://www.getoctane.io
servers:
- url: https://api.getoctane.io
  description: Octane Production API
security:
- BearerApiKeyAuth: []
tags:
- name: Coupons
  description: Manage discount coupons
paths:
  /coupons:
    get:
      summary: List Coupons
      description: Get all coupons for a vendor.
      operationId: couponsGet
      tags:
      - Coupons
      responses:
        '200':
          description: List of coupons
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Coupon'
    post:
      summary: Create Coupon
      description: Create a new discount coupon.
      operationId: couponsPost
      tags:
      - Coupons
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CouponInputArgs'
      responses:
        '200':
          description: Created coupon
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Coupon'
  /coupons/{coupon_name}:
    get:
      summary: Get Coupon
      description: Get a coupon by its unique name.
      operationId: couponsCouponNameGet
      tags:
      - Coupons
      parameters:
      - name: coupon_name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Coupon details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Coupon'
    delete:
      summary: Delete Coupon
      description: Delete a coupon by its unique name.
      operationId: couponsCouponNameDelete
      tags:
      - Coupons
      parameters:
      - name: coupon_name
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Coupon deleted
  /coupons/apply_coupon:
    post:
      summary: Apply Coupon
      description: Apply a coupon to a customer subscription.
      operationId: couponsApplyCouponPost
      tags:
      - Coupons
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApplyCouponInputArgs'
      responses:
        '200':
          description: Coupon applied
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    CouponInputArgs:
      type: object
      required:
      - name
      - frequency
      - discount_type
      - discount_amount
      properties:
        name:
          type: string
        display_name:
          type: string
        vendor_id:
          type: string
        frequency:
          type: string
          enum:
          - ONCE
          - RECURRING
          - FOREVER
        discount_type:
          type: string
          enum:
          - PERCENT
          - AMOUNT
        discount_amount:
          type: number
        duration_length:
          type: integer
        duration_unit:
          type: string
        expiration_time:
          type: string
          format: date-time
        max_uses:
          type: integer
        code:
          type: string
        excluded_customers:
          type: array
          items:
            type: string
        excluded_price_plans:
          type: array
          items:
            type: string
    ApplyCouponInputArgs:
      type: object
      properties:
        coupon_name:
          type: string
          description: Name of the coupon to apply.
        customer_name:
          type: string
          description: Name of the customer to apply the coupon to.
    Coupon:
      type: object
      required:
      - name
      - discount_amount
      properties:
        name:
          type: string
          description: Unique name identifier for the coupon.
        display_name:
          type: string
          description: Human-readable display name.
        discount_type:
          type: string
          enum:
          - PERCENT
          - AMOUNT
          description: Type of discount.
        discount_amount:
          type: number
          description: Discount amount or percentage.
        frequency:
          type: string
          description: How often the coupon can be applied.
        duration_length:
          type: integer
          description: How long the coupon discount lasts.
        duration_unit:
          type: string
          description: Time unit for duration.
        expiration_time:
          type:
          - string
          - 'null'
          format: date-time
          description: When the coupon expires.
        max_uses:
          type: integer
          description: Maximum number of times the coupon can be used.
        code:
          type: string
          description: Coupon code for self-serve redemption.
        excluded_customers:
          type: array
          items:
            type: object
        excluded_price_plans:
          type: array
          items:
            type: object
  securitySchemes:
    BearerApiKeyAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token in the Authorization header.