List coupons
GET methodhttps://api.anyshop.io/v1/coupons
The store's coupons, newest first, with their uses. Archived coupons are listed only with status=archived.
Query parameters
limitinteger How many to return: 1 to 100, default 201 to 100starting_afterstring The last ID of the previous page; the next page starts after itUp to 64 charactersstatusenum Only coupons in this status. Without it, every coupon not archivedscheduledrunningendedused_uparchived
Returns
A list of coupon objects, newest first: { "object": "list", "data", "has_more" }.
Errors
Status and error.type400invalid_requestThe request is not valid;error.paramnames the field401authenticationNo API key, or it is not valid403permissionThe key does not have the scope this needs, or the store is suspended (store_suspended)404not_foundNot found in the key's store and mode409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)429rate_limitedToo many requests; see Retry-After