curl --request GET \
--url https://api.pandabase.io/v2/core/stores/{storeId}/coupons \
--header 'Authorization: Bearer <token>'{
"ok": true,
"data": {
"items": [
{
"id": "<string>",
"code": "<string>",
"displayName": "<string>",
"description": "<string>",
"type": "FIXED",
"value": 123,
"minimumPurchase": 123,
"maxUses": 123,
"maxUsesPerCustomer": 123,
"firstPurchaseOnly": true,
"startsAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"enabled": true,
"timesUsed": 123,
"productIds": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}
}curl --request GET \
--url https://api.pandabase.io/v2/core/stores/{storeId}/coupons \
--header 'Authorization: Bearer <token>'{
"ok": true,
"data": {
"items": [
{
"id": "<string>",
"code": "<string>",
"displayName": "<string>",
"description": "<string>",
"type": "FIXED",
"value": 123,
"minimumPurchase": 123,
"maxUses": 123,
"maxUsesPerCustomer": 123,
"firstPurchaseOnly": true,
"startsAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"enabled": true,
"timesUsed": 123,
"productIds": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}
}Store API token. Use the sk_ prefixed secret key as the Bearer token.
Store ID (shp_ prefix)
12 - 48x >= 11 <= x <= 100128FIXED, PERCENTAGE code, createdAt, updatedAt, value, timesUsed asc, desc