Customers
Retrieve Customer Orders
Fetches a paginated list of orders associated with a specific customer. The x-store-id header authenticates the store making the request. Useful for tracking a customer’s purchase history with order details including the product and variant information.
-
Parameters:
id(string, path, required): The ID of the customer.- Query parameters for pagination:
limit(integer),page(integer),offset(integer)
-
Responses:
200: A paginated list of the customer’s orders.401: Unauthorized ifx-store-idis not provided.404: Customer not found if the customer ID does not exist.
GET
Retrieve Customer Orders
Previous
Create Customer Portal SessionGenerates a 15-minute magic link that allows a buyer to log into the customer portal where they can view their orders. This endpoint verifies the customer via `x-store-id`. The JWT token embedded in the portal link ensures secure access.
- **Parameters:**
- `id` (string, path, required): The ID of the customer.
- **Responses:**
- `201`: Successfully created portal session.
- `401`: Unauthorized if `x-store-id` is not provided.
- `404`: Customer not found.
Next
Retrieve Customer Orders