Your store's APIApps referenceCoupons
Get Coupon
GET
/admin/coupon/{couponId}One of the store's live coupons, by its id.
Path Parameters
couponId*string
Match
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/admin/coupon/string"{ "id": "string", "storeId": "string", "name": "string", "code": "string", "description": "string", "discount": { "variant": "fixed", "amountInMinorUnits": "string" }, "scope": { "_tag": "store" }, "createdAt": "string", "active": { "from": "string", "to": "string" }, "updatedAt": "string", "deletedAt": "string", "usageLimit": -9007199254740991}Archive Coupon PUT
Archives a coupon for good: checkouts no longer accept its code, and it cannot be restored. Orders it already discounted keep their discount.
List Archived Coupons GET
The store's archived coupons, a page at a time. An archived coupon is over for good: it applies to no checkout, cannot be read, modified or restored, and its code is free for a new coupon.
