Skip to main content
PUT
Update coupon

Endpoint

Request Body

Promotion codes cannot be updated through this endpoint. Use the promotion code update endpoint instead.

Request

cURL

Assigning a sync provider on update

You can attach a sync provider to a coupon that was created without one. This is a one-way assignment: once a coupon has a sync provider, it cannot be changed or removed via the API.
cURL
When you assign a provider this way, Partnero creates the coupon in that provider during this request (not just for subsequent updates). Validation errors:
  • 422 if the provider is not connected to the program:
  • 422 if the coupon already has a different sync.provider:

Record a redemption

To record a redemption against an existing coupon — useful when your checkout doesn’t run through a connected payment integration — set redeem to true and (optionally) pass the originating transaction_key so the redemption is not double-counted on retries.
cURL

Response