Get all cupons
GET https://api.ecartapi.com/api/v2/cupons?limit=Int&page=Int
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | string | Maximum number of items to be returned in result set. Max value 100 | |
page | string | Current page of the collection. Default is 1 |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"cupons":[{"id":"233","code":"cuponprueba2","amount":"5.00","type":"fixed_cart","ecartapiType":"fixed","isFreeShipping":"true","description":null,"usageCount":"1","individualUse":null,"excludeSaleItems":"false","minAmount":"0.00","maxAmount":"0.00","metaData":[],"emailRestrictions":[],"productsIds":[],"excludedProductsIds":[],"categoriesIds":[],"excludedCategoriesIds":[],"usageLimit":{"perUser":null,"perCupon":null,"perItems":null},"status":{"status":"publish","ecartapi":"active","ecartapiId":1},"dates":{"createdAt":"2023-04-03T20:20:24","updatedAt":"2023-04-03T20:20:24","expiresAt":"2023-04-30T00:00:00"}}]}