Skip to main content
Add one promotion code to an active coupon. Pass your own code, or omit it to get a random one.
Authentication: API Key

Request Body

Restrictions Object

Example Request

Success Response (200)

Response Fields

The response is wrapped in data.promotionCode.

Errors

Retry policy: Never retry 4xx — fix the request and resubmit. Retry 5xx with exponential backoff (start 5s, max 3 attempts). Always retry with the same X-Idempotency-Key.