Skip to main content
Deactivate a promotion code. Buyers can no longer redeem it, and its code is released immediately: a new promotion code or coupon in the same store and environment can use it.
Authentication: API Key
Deactivation is permanent. An inactive promotion code cannot be reactivated. To offer the code again, create a new promotion code with it.

Request Body

Example Request

Success Response (200)

Response Fields

Same as Create Promotion Code response.
Existing orders keep the code they were placed with and are not affected. Deactivating an already inactive promotion code returns 200 with it unchanged. Deactivating a promotion code never deactivates its coupon. The coupon’s own code can only be deactivated by deactivating the coupon, which also stops all its promotion codes.

Errors

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