Skip to main content
GET
/
coupons
List coupons
curl --request GET \
  --url https://pandabase.io/api/coupons \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Storefront-Id: <x-storefront-id>'
{
  "ok": true,
  "data": {
    "coupons": [
      {
        "id": "cpn_def456",
        "code": "SAVE20",
        "type": "percentage",
        "value": 20,
        "enabled": true,
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

V3 API key authentication. Format: sk_v3_xxxxx

Headers

X-Storefront-Id
string
required

Your storefront/shop ID

Response

200 - application/json

Coupons retrieved successfully

ok
boolean
Example:

true

data
object