Customers
Retrieve Customer Meter Balance
This endpoint fetches the credit balance per meter for a specific customer. The x-store-id header is required for authentication to verify the customer’s association with the store. The response includes detailed information about each meter, such as the meter ID, meter name, and the remaining credits available for usage.
-
Parameters:
id(string, path, required): The ID of the customer.
-
Responses:
200: Returns a list with customer’s remaining credits per meter.401: Unauthorized ifx-store-idis not provided.404: Customer not found if the customer ID does not exist.
GET
Retrieve Customer Meter Balance
Previous
Retrieve Customer OrdersFetches 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 if `x-store-id` is not provided.
- `404`: Customer not found if the customer ID does not exist.
Next
Retrieve Customer Meter Balance