PromotionsCoupons
Create coupon codes in a batch
Creates the supplied coupon codes and returns one result per item.
Path Parameters
couponId*string
Identifier of the coupon.
Header Parameters
x-Store-Id?string
Store the request acts on. Not needed when the token is bound to a store.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.ecomiq.pe/api/v1/coupons/7204558912004324510/codes/batch" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "codes": [ "BIENVENIDA10" ], "usageLimit": 1 }'{ "results": [ { "index": 1, "id": "7204558912004323810", "status": "created", "errors": [] } ]}