Skip to main content
PUT
Reorder coupons

📌 Endpoint

PUT /stores/{storeId}/coupons/reorder Reorders the store coupons according to the sequence sent in couponIds.

🔐 Authentication

  • Private route.
  • Send Authorization with your API Key.

🧾 Route parameters


🧍 Body


✅ Example request


📦 Success response (200)


⚠️ Possible errors

  • 400 INVALID_DATA → invalid payload or elements that are not valid UUIDs
  • 400 COUPON_LIST_INVALID → one or more IDs do not belong to the store
  • 401 API_KEY_NOT_PROVIDED → Authorization header not provided
  • 401 INVALID_API_KEY → invalid API key
  • 401 UNAUTHENTICATED → unauthenticated user
  • 403 USER_DISABLED → user disabled
  • 403 NO_ACTIVE_SUBSCRIPTION → no active plan
  • 404 STORE_NOT_FOUND → store not found or no permission
  • 429 RATE_LIMIT_EXCEEDED → per-minute rate limit exceeded
  • 500 INTERNAL_SERVER_ERROR → internal error
  • 503 SERVICE_UNAVAILABLE → service unavailable

📝 Notes

  • The endpoint GET /stores/{storeId}/coupons returns the coupons ordered by position.
  • The frontend must send the complete list of IDs in the final order to ensure consistency.

Authorizations

Authorization
string
header
default:YOUR_API_KEY_HERE
required

Path Parameters

storeId
string
required
Required string length: 1 - 50

Body

application/json

Ordered coupon IDs.

couponIds
string<uuid>[]
required
Minimum array length: 1

Response

Positions updated in provided order.

code
string
required
Example:

"COUPONS_REORDERED"