cURL
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" } ] } }
Retrieve a list of coupons
V3 API key authentication. Format: sk_v3_xxxxx
sk_v3_xxxxx
Your storefront/shop ID
Coupons retrieved successfully
true
Show child attributes