Skip to content
Guides
API reference
stablepromotion:create

Create discount

POST/v1/discounts

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

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/discounts" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
"497f6eca-6276-4993-bfeb-53cbbbba6f08"