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": "2b0d2f02-f053-48d9-a4b4-753c7244f066",
"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": 1769674936,
"updated_at": 1769674936
},
{
"id": "63105e91-36c7-4fdc-ace0-79d97fa69a18",
"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": 1769674936,
"updated_at": 1769674936
},
{
"id": "3f34c7fe-3b09-4d12-9b6e-2101a23f9445",
"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": 1769674936,
"updated_at": 1769674936
}
]
}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": "2b0d2f02-f053-48d9-a4b4-753c7244f066",
"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": 1769674936,
"updated_at": 1769674936
},
{
"id": "63105e91-36c7-4fdc-ace0-79d97fa69a18",
"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": 1769674936,
"updated_at": 1769674936
},
{
"id": "3f34c7fe-3b09-4d12-9b6e-2101a23f9445",
"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": 1769674936,
"updated_at": 1769674936
}
]
}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?