ESTAGE Support
IdeasMy tickets

List coupons and store discounts

Permission coupons:readRate limit reads
GEThttps://api.estage.com/v1/coupons

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Query parameters

coupon_typestring

One of product, commerce, plan, subscription

methodstring

One of code, automatic

kindstring

product matches product coupons and commerce kind product.

One of product, plan, subscription, order, buy_x_get_y, free_shipping

discount_typestring

One of percent, fixed, trial, free

usable_nowboolean

true = active, within its dates and under its usage count today; false = the rest.

qstring≤ 128 chars

Code contains (case-insensitive).

pageintegerdefault 1≥ 1
per_pageintegerdefault 50≥ 1≤ 100
sortstring

Default: newest first.

One of id, title, coupon_type, begin, expire, discount, used

directionstringdefault "desc"

With sort. Anything other than asc is desc.

One of asc, desc

RequestcURL
curl --request GET \
  --url 'https://api.estage.com/v1/coupons' \
  --header 'ESTAGE-API-Key: est_live_your-api-key'
OK
{
  "data": [
    {
      "id": 412,
      "code": "SUMMER10",
      "coupon_type": "commerce",
      "method": "code",
      "kind": "order",
      "discount_type": "percent",
      "discount": 10,
      "value": "10.00",
      "applies_to": null,
      "buy": null,
      "get": null,
      "min_subtotal": "50.00",
      "min_quantity": null,
      "customer_orders_min": null,
      "customer_orders_max": null,
      "once_per_customer": false,
      "combines_with": {
        "product": false,
        "order": false,
        "shipping": false
      },
      "products": null,
      "tags": null,
      "recurring_rebills": false,
      "usage_count": null,
      "used_count": 0,
      "is_active": true,
      "usable_now": true,
      "start_date": null,
      "end_date": "2027-01-31",
      "comments": null,
      "summary": "10% off the order",
      "created_at": "2026-11-02T14:05:31Z",
      "updated_at": "2026-11-02T14:05:31Z"
    },
    {
      "id": 398,
      "code": "VIP20",
      "coupon_type": "product",
      "method": "code",
      "kind": null,
      "discount_type": "percent",
      "discount": 20,
      "value": null,
      "applies_to": null,
      "buy": null,
      "get": null,
      "min_subtotal": null,
      "min_quantity": null,
      "customer_orders_min": null,
      "customer_orders_max": null,
      "once_per_customer": false,
      "combines_with": null,
      "products": [
        812
      ],
      "tags": null,
      "recurring_rebills": false,
      "usage_count": 100,
      "used_count": 7,
      "is_active": true,
      "usable_now": true,
      "start_date": null,
      "end_date": null,
      "comments": null,
      "summary": "20% off 1 product",
      "created_at": "2026-11-02T14:05:31Z",
      "updated_at": "2026-11-02T14:05:31Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 50,
    "total": 2,
    "last_page": 1
  }
}
Example. Errors are { error: { code, message, details } }.