curl --request GET \
--url https://{defaultHost}/v1/coupons \
--header 'Authorization: Bearer <token>'{
"object": "list",
"pagination": {
"count": 3,
"limit": 20,
"page": 1,
"url": "/v1/coupons"
},
"data": [
{
"id": "b01a0488-0489-4f1e-8143-fdce4cf4f559",
"object": "coupon",
"archived": false,
"archived_at": null,
"amount_off": 500,
"currency": "usd",
"duration": "once",
"duration_in_months": null,
"expired": false,
"metadata": {},
"max_redemptions": null,
"max_redemptions_per_customer": null,
"max_subtotal_amount": null,
"min_subtotal_amount": null,
"name": "Test Coupon",
"percent_off": null,
"product_ids": [],
"redeem_by": null,
"times_redeemed": 0,
"discarded_at": null,
"created_at": 1770234847,
"updated_at": 1770234847
},
{
"id": "653e4782-f1bd-4051-82e9-110ab196ded0",
"object": "coupon",
"archived": false,
"archived_at": null,
"amount_off": 500,
"currency": "usd",
"duration": "once",
"duration_in_months": null,
"expired": false,
"metadata": {},
"max_redemptions": null,
"max_redemptions_per_customer": null,
"max_subtotal_amount": null,
"min_subtotal_amount": null,
"name": "Test Coupon",
"percent_off": null,
"product_ids": [],
"redeem_by": null,
"times_redeemed": 0,
"discarded_at": null,
"created_at": 1770234847,
"updated_at": 1770234847
},
{
"id": "4b7726f1-b48d-48d1-8d60-aa44855df2b0",
"object": "coupon",
"archived": false,
"archived_at": null,
"amount_off": 500,
"currency": "usd",
"duration": "once",
"duration_in_months": null,
"expired": false,
"metadata": {},
"max_redemptions": null,
"max_redemptions_per_customer": null,
"max_subtotal_amount": null,
"min_subtotal_amount": null,
"name": "Test Coupon",
"percent_off": null,
"product_ids": [],
"redeem_by": null,
"times_redeemed": 0,
"discarded_at": null,
"created_at": 1770234847,
"updated_at": 1770234847
}
]
}Returns a list of your coupons.
curl --request GET \
--url https://{defaultHost}/v1/coupons \
--header 'Authorization: Bearer <token>'{
"object": "list",
"pagination": {
"count": 3,
"limit": 20,
"page": 1,
"url": "/v1/coupons"
},
"data": [
{
"id": "b01a0488-0489-4f1e-8143-fdce4cf4f559",
"object": "coupon",
"archived": false,
"archived_at": null,
"amount_off": 500,
"currency": "usd",
"duration": "once",
"duration_in_months": null,
"expired": false,
"metadata": {},
"max_redemptions": null,
"max_redemptions_per_customer": null,
"max_subtotal_amount": null,
"min_subtotal_amount": null,
"name": "Test Coupon",
"percent_off": null,
"product_ids": [],
"redeem_by": null,
"times_redeemed": 0,
"discarded_at": null,
"created_at": 1770234847,
"updated_at": 1770234847
},
{
"id": "653e4782-f1bd-4051-82e9-110ab196ded0",
"object": "coupon",
"archived": false,
"archived_at": null,
"amount_off": 500,
"currency": "usd",
"duration": "once",
"duration_in_months": null,
"expired": false,
"metadata": {},
"max_redemptions": null,
"max_redemptions_per_customer": null,
"max_subtotal_amount": null,
"min_subtotal_amount": null,
"name": "Test Coupon",
"percent_off": null,
"product_ids": [],
"redeem_by": null,
"times_redeemed": 0,
"discarded_at": null,
"created_at": 1770234847,
"updated_at": 1770234847
},
{
"id": "4b7726f1-b48d-48d1-8d60-aa44855df2b0",
"object": "coupon",
"archived": false,
"archived_at": null,
"amount_off": 500,
"currency": "usd",
"duration": "once",
"duration_in_months": null,
"expired": false,
"metadata": {},
"max_redemptions": null,
"max_redemptions_per_customer": null,
"max_subtotal_amount": null,
"min_subtotal_amount": null,
"name": "Test Coupon",
"percent_off": null,
"product_ids": [],
"redeem_by": null,
"times_redeemed": 0,
"discarded_at": null,
"created_at": 1770234847,
"updated_at": 1770234847
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Only return objects that are archived or not archived.
Only return objects with the given IDs.
A limit on the number of items to be returned, between 1 and 100.
The page of items you want returned.
The query to be used for full text search of this collection.
Was this page helpful?