List Coupon Codes
GET {{baseUrl}}/coupons/codes?coupon_id=<integer>
This endpoint allows you to return all the child coupons of the parent coupon by passing the coupon_id
as a query parameter.
marketing.read
- Marketing Read Only
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
coupon_id | string | (Required) The unique number of the coupon. Get a list of Coupon IDs from here |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"status":"\u003cinteger\u003e","success":"\u003cboolean\u003e","data":[{"id":"\u003cinteger\u003e","code":"\u003cstring\u003e"},{"id":"\u003cinteger\u003e","code":"\u003cstring\u003e"}],"pagination":{"count":"\u003cnumber\u003e","total":"\u003cnumber\u003e","perPage":"\u003cnumber\u003e","currentPage":"\u003cnumber\u003e","totalPages":"\u003cnumber\u003e","links":{"next":"\u003cstring\u003e","previous":"\u003cstring\u003e"}}}