Coupons
Reorder Coupons
Learn how to reorder store coupons using the endpoint PUT /stores//coupons/reorder.
PUT
Reorder coupons
📌 Endpoint
PUT /stores/{storeId}/coupons/reorder
Reorders the store coupons according to the sequence sent in couponIds.
🔐 Authentication
- Private route.
- Send
Authorizationwith your API Key.
🧾 Route parameters
🧍 Body
✅ Example request
📦 Success response (200)
⚠️ Possible errors
400 INVALID_DATA→ invalid payload or elements that are not valid UUIDs400 COUPON_LIST_INVALID→ one or more IDs do not belong to the store401 API_KEY_NOT_PROVIDED→Authorizationheader not provided401 INVALID_API_KEY→ invalid API key401 UNAUTHENTICATED→ unauthenticated user403 USER_DISABLED→ user disabled403 NO_ACTIVE_SUBSCRIPTION→ no active plan404 STORE_NOT_FOUND→ store not found or no permission429 RATE_LIMIT_EXCEEDED→ per-minute rate limit exceeded500 INTERNAL_SERVER_ERROR→ internal error503 SERVICE_UNAVAILABLE→ service unavailable
📝 Notes
- The endpoint
GET /stores/{storeId}/couponsreturns the coupons ordered byposition. - The frontend must send the complete list of IDs in the final order to ensure consistency.