Stores
Reorder Stores
Learn how to reorder the account stores using the PUT /stores/reorder endpoint.
PUT
Reorder stores
📌 Endpoint
PUT /stores/reorder
Reorders the stores of the authenticated account according to the sequence sent in storeIds.
🔐 Authentication
- Private route.
- Send
Authorizationwith your API Key.
🧍 Body
✅ Request example
📦 Success response (200)
⚠️ Possible errors
400 INVALID_DATA→ invalid payload400 STORE_LIST_INVALID→ one or more IDs do not belong to the account401 API_KEY_NOT_PROVIDED→Authorizationheader not sent401 INVALID_API_KEY→ invalid or not found API Key401 UNAUTHENTICATED→ session/user not authenticated403 USER_DISABLED→ user account disabled or deleted403 NO_ACTIVE_SUBSCRIPTION→ account has no active plan429 RATE_LIMIT_EXCEEDED→ plan per-minute request limit exceeded500 INTERNAL_SERVER_ERROR→ internal error503 SERVICE_UNAVAILABLE→ service temporarily unavailable
📝 Notes
- The
GET /storesendpoint returns stores ordered byposition. - The frontend must send the full list of IDs in the final order to ensure consistency.