Metricool Coupons API

The Coupons API API from Metricool — 3 operation(s) for coupons api.

Operations 5

GET /v2/backoffice/coupons Returns a list of coupons #
POST /v2/backoffice/coupons Create a new Coupon #
GET /v2/backoffice/coupons/codes Get a list of unique coupon codes #
GET /v2/backoffice/coupons/{id} Get a Coupon #
PUT /v2/backoffice/coupons/{id} Update a 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/metricool:metricool-coupons-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

metricool-coupons-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metricool Coupons API
  description: 'Metricool API


    The base URL for all endpoints is: https://app.metricool.com/api


    All endpoints require authentication.'
  version: 2.0.0
servers:
- url: https://app.metricool.com/api
tags:
- name: Coupons API
paths:
  /v2/backoffice/coupons:
    get:
      tags:
      - Coupons API
      summary: Returns a list of coupons
      operationId: list_1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkListResponseCouponDto'
    post:
      tags:
      - Coupons API
      summary: Create a new Coupon
      operationId: create_2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCouponRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkResponseCouponDto'
  /v2/backoffice/coupons/codes:
    get:
      tags:
      - Coupons API
      summary: Get a list of unique coupon codes
      operationId: getUniqueCouponCodes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkListResponseString'
  /v2/backoffice/coupons/{id}:
    get:
      tags:
      - Coupons API
      summary: Get a Coupon
      operationId: get_4
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkResponseCouponDto'
    put:
      tags:
      - Coupons API
      summary: Update a Coupon
      operationId: update_1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCouponRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkResponseCouponDto'
components:
  schemas:
    CouponDto:
      type: object
      properties:
        id:
          type: integer
          format: int32
        owner:
          type: string
        ownerId:
          type: integer
          format: int32
        code:
          type: string
        createdAt:
          $ref: '#/components/schemas/DateTimeInfo'
        amount:
          type: number
        percentage:
          type: boolean
        billingCycles:
          type: integer
          format: int32
        hashTagBalance:
          type: integer
          format: int32
        expiresAt:
          $ref: '#/components/schemas/DateTimeInfo'
        maxDiscounts:
          type: integer
          format: int32
        discountCount:
          type: integer
          format: int32
        newUsers:
          type: boolean
        onlyAnnualPlans:
          type: boolean
        trial:
          type: integer
          format: int32
        revenue:
          type: number
        enabled:
          type: boolean
        assignedTeamCouponTracking:
          type: string
        label:
          type: string
    UpdateCouponRequest:
      type: object
      properties:
        code:
          type: string
          writeOnly: true
        amount:
          type: number
          writeOnly: true
        billingCycles:
          type: integer
          format: int32
          writeOnly: true
        expiresAt:
          $ref: '#/components/schemas/DateTimeInfo'
        maxDiscounts:
          type: integer
          format: int32
          writeOnly: true
        newUsers:
          type: boolean
          writeOnly: true
        onlyAnnualPlans:
          type: boolean
          writeOnly: true
        percentage:
          type: boolean
          writeOnly: true
        hashTagBalance:
          type: integer
          format: int32
          writeOnly: true
        trial:
          type: integer
          format: int32
          writeOnly: true
        label:
          type: string
          writeOnly: true
        assignedTeamCouponTracking:
          type: string
          writeOnly: true
    JsonOkListResponseCouponDto:
      type: object
      properties:
        metadata:
          type: object
        page:
          $ref: '#/components/schemas/JsonPaging'
        data:
          type: array
          items:
            $ref: '#/components/schemas/CouponDto'
    JsonPaging:
      type: object
      properties:
        next:
          type: string
    CreateCouponRequest:
      type: object
      properties:
        code:
          type: string
          writeOnly: true
        amount:
          type: number
          writeOnly: true
        billingCycles:
          type: integer
          format: int32
          writeOnly: true
        expiresAt:
          $ref: '#/components/schemas/DateTimeInfo'
        maxDiscounts:
          type: integer
          format: int32
          writeOnly: true
        newUsers:
          type: boolean
          writeOnly: true
        onlyAnnualPlans:
          type: boolean
          writeOnly: true
        percentage:
          type: boolean
          writeOnly: true
        hashTagBalance:
          type: integer
          format: int32
          writeOnly: true
        trial:
          type: integer
          format: int32
          writeOnly: true
        label:
          type: string
          writeOnly: true
        assignedTeamCouponTracking:
          type: string
          writeOnly: true
    JsonOkResponseCouponDto:
      type: object
      properties:
        metadata:
          type: object
        page:
          $ref: '#/components/schemas/JsonPaging'
        data:
          $ref: '#/components/schemas/CouponDto'
    DateTimeInfo:
      required:
      - dateTime
      type: object
      properties:
        dateTime:
          type: string
          description: 'Local Date-time represented with a certain timezone '
        timezone:
          type: string
          description: Timezone applied to the datetime
    JsonOkListResponseString:
      type: object
      properties:
        metadata:
          type: object
        page:
          $ref: '#/components/schemas/JsonPaging'
        data:
          type: array
          items:
            type: string