Get User Kit
GET /api/users/{user}/kit
Section titled “GET /api/users/{user}/kit”Returns the product list currently assigned to the user.
When the user_product_kit site feature is enabled, each user can have an individually configured product list. When the feature is disabled, the user falls back to the partner-level kit.
The {user} path parameter is the internal user id (use Find User by Email to look it up).
Headers
Section titled “Headers”| Header | Required | Value |
|---|---|---|
api-key | yes | Import API key |
Response
Section titled “Response”HTTP 200 OK
{ "success": true, "kit": [ { "user_id": 42, "product_id": 7, "quantity": 2, "mandatory": true, "product": { "id": 7, "product_name": "Rain Jacket" } } ]}Response field reference
Section titled “Response field reference”| Field | Type | Description |
|---|---|---|
user_id | int | User ID |
product_id | int | Product ID |
quantity | int | Required quantity for this user |
mandatory | bool | Whether this product is mandatory |
product | object | Product snapshot (id and product_name) |
HTTP error codes
Section titled “HTTP error codes”| Status | Description |
|---|---|
401 | Missing api-key header |
403 | Invalid api-key value |
404 | User not found |