Fetches a single order by its CUID, scoped strictly to the authenticated user. The lookup uses both the orderDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/astrxnomo/shop-microservers/llms.txt
Use this file to discover all available pages before exploring further.
id and the userId derived from the JWT simultaneously — if the order exists but belongs to a different user, the response is identical to a non-existent order. This prevents authenticated users from probing other users’ order IDs.
Endpoint
Authentication
A valid JWT is required. The user identity extracted from the token is used as a second lookup condition alongside the orderid.
Parameters
CUID of the order to retrieve. Must be a valid order that belongs to the authenticated user.
Example Request
Response
200 — Success
Returns the matching Order object as a singledata object, including the full array of line items.
data object has the same shape as each entry returned by List Orders. Refer to that page for full field descriptions.
401 — Unauthorized
Returned when theAuthorization header is missing or the JWT is invalid or expired.
404 — Not Found
Returned when no order exists with the givenid for the authenticated user. This is also returned when the order exists but was placed by a different user, preventing cross-user enumeration.