Skip to content
PromotionsDiscounts

Update discount

Replaces the discount's type, amount, rules, schedule and limits; responds 204 with no body.

Path Parameters

discountId*string

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.ecomiq.pe/api/v1/discounts/7204558912004329313" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>" \  -H "Content-Type: application/json" \  -d '{    "name": "Bienvenida 10 %",    "description": "Polo de algodón pima para uso diario.",    "status": "draft",    "type": "percentage",    "target": "order",    "amount": 178,    "allocation": "once",    "maxQuantity": 2  }'
Empty