API reference
Get discount
GET
/v1/discounts/{discountId}Authorization
bearerAuth AuthorizationBearer <token>
OAuth2 access token issued by Ecomiq Auth.
In: header
Path Parameters
discountId*string
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/discounts/string"{ "id": "string", "storeId": "string", "sellerId": null, "name": "string", "description": null, "status": "draft", "type": "percentage", "target": "order", "amount": 0.1, "allocation": "once", "maxQuantity": null, "applyAfterTaxes": true, "isAutomatic": true, "validFrom": null, "validTo": null, "usageLimit": null, "usageCount": 0, "customerUsageLimit": null, "combineWithOtherDiscounts": true, "rules": [ { "field": "cartSubtotal", "operator": "eq", "path": null, "value": "string" } ], "codes": [ { "id": "string", "code": "string", "usageLimit": null, "usageCount": 0, "assignedCustomers": [ { "customerId": "string", "email": null, "firstName": null, "lastName": null } ], "createdOn": "2019-08-24T14:15:22Z", "updatedOn": null } ], "createdOn": "2019-08-24T14:15:22Z", "updatedOn": null}