API reference
Create coupon code
POST
/v1/coupons/{couponId}/codesAuthorization
bearerAuth AuthorizationBearer <token>
OAuth2 access token issued by Ecomiq Auth.
In: header
Path Parameters
couponId*string
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
application/problem+json
curl -X POST "https://example.com/v1/coupons/string/codes" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{ "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}