Customers
Retrieve Customer Details
This endpoint retrieves detailed information about a specific customer. It includes customer metadata, total orders, and lifetime revenue. Ensure the customer belongs to the store via x-store-id.
-
Parameters:
id(string, path, required): The ID of the customer.
-
Responses:
200: Customer details returned successfully.401: Unauthorized ifx-store-idis not provided.404: Customer not found.
GET
Retrieve Customer Details
Authorizations
Path Parameters
ID of the customer.
Previous
Update Customer InformationThis endpoint updates the customer's name, email, or status. Only specified fields are updated. Ensure store ownership using the `x-store-id` header.
- **Parameters:**
- `id` (string, path, required): The ID of the customer.
- **Request Body:**
- Optional fields to update: `name`, `email`, `status`
- **Responses:**
- `200`: Customer information updated successfully.
- `400`: No updatable fields provided.
- `401`: Unauthorized if `x-store-id` is not provided.
- `404`: Customer not found.
Next
Retrieve Customer Details