2ndKitchen Coupons API

The Coupons API from 2ndKitchen — 1 operation(s) for coupons.

Operations 1

POST /coupons/calc

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/2ndkitchen-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

2ndkitchen-coupons-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 2ndKitchen - Pricing Service Coupons API
  version: '1.0'
servers:
- url: https://pricing-staging.2ndkitchen.com
  description: staging
tags:
- name: Coupons
paths:
  /coupons/calc:
    post:
      description: Calculates coupon discount
      tags:
      - Coupons
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
              - data
              type: object
              properties:
                id:
                  deprecated: true
                  description: Coupon id
                  type: integer
                code:
                  description: Coupon code
                  type: string
                data:
                  required:
                  - business_id
                  - price
                  description: Coupon use information
                  type: object
                  properties:
                    business_id:
                      description: Associated business id
                      type: integer
                    price:
                      description: order price
                      type: number
                    delivery_slot:
                      description: Order delivery time
                      type: string
                      format: date-time
                      example: '2021-10-14 22:38:30.266962'
      responses:
        '200':
          description: Returns the discount amount and other coupon data
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ok
                  data:
                    type: object
                    properties:
                      id:
                        description: Coupon id
                        type: integer
                      code:
                        description: Coupon code
                        type: string
                      coupon_type:
                        type: integer
                        enum:
                        - 0
                        - 1
                        - 2
                        - 3
                        - 4
                        - 5
                        - 6
                        description: "Coupon Type:\n * `0` - DEFAULT\n * `1` - CREDIT\n * `2` - VOUCHER\n * `3` - REFERRAL\n * `4` - LOYALTY\n * `5` - FIRST_TIME\n * `6` - STAFF\n"
                      discount:
                        description: Discount amount
                        type: number
                      token:
                        description: Coupon Token (for $0 vouchers)
                        type: string
                      type:
                        type: number
                        enum:
                        - 0
                        - 1
                        description: "Discount Type:\n * `0` - FIXED\n * `1` - PERCENT\n"