Referencia de API
Obtener descuento
GET
/v1/discounts/{discountId}Autorización
bearerAuth AutorizaciónBearer <token>
Token de acceso OAuth 2.0 emitido por Ecomiq Auth.
Ubicación: header
Parámetros de ruta
discountId*string
Cuerpo de la respuesta
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}