Skip to main content

Update a reward coupon code

POST /v1/public/rewards/update-coupon

Sets the coupon code on a reward belonging to the authenticated merchant. Redeemed or expired rewards cannot be updated. Coupon codes are stored in uppercase.

Authorization​

X-API-Key required with the rewards:write scope

Parameters​

NameLocationTypeRequiredDescription
Idempotency-KeyheaderstringNoRecommended unique key for this logical write operation. Keys are retained for 24 hours.

Request body​

FieldTypeRequiredDescription
userRewardIdstringYesIdentifier of the issued customer reward.
couponCodestringYesCoupon code to attach to the reward. Remy converts it to uppercase.

Request example​

curl -X POST "https://api.remyrewards.co.uk/v1/public/rewards/update-coupon" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Idempotency-Key: order-1042-operation-1" \
  -H "Content-Type: application/json" \
  --data '{
  "userRewardId": "66c735e253f2836fbe941234",
  "couponCode": "summer20"
}'

Responses​

StatusDescription
200The coupon code was updated.
400The request is missing a required value or contains invalid data.
401The API key is missing or invalid.
404The requested integration resource was not found.
429A rate or concurrency limit was exceeded.

Success response example​

{
"success": true,
"userRewardId": "66c735e253f2836fbe941234",
"couponCode": "SUMMER20"
}