Download OpenAPI specification:Download
Manage shopping lists
Creates a shopping list.
shoppinglist.shoppinglist_manage
- required for the employee to create a shopping list for a provided customer. If scope is not present, then the customerId is resolved from the token.The shopping list resource has been successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "customerId": "C120043",
- "name": "default",
- "items": [
- {
- "id": 1,
- "productId": "55cdcd91a88ed11babd7ca7e",
- "quantity": 7.1,
- "cuttingOption": "small",
- "servicePackagingOption": "paper",
- "comment": "fragile"
}
]
}
{- "id": "C120043"
}
Gets shopping list by name or defaults to all shopping lists if name is not provided. When scope is provided then all shopping lists are returned. If scope is not provided, then only own shopping list is returned.
shoppinglist.shoppinglist_read
- required for the employee to read shopping lists. If scope is not present, then the customerId is resolved from the token.Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Some server side error occurred.
[- {
- "customerId": "C120046",
- "default": {
- "name": "default",
- "items": [
- {
- "id": 1,
- "productId": "55cdcd91a88ed11babd7ca7e",
- "quantity": 7.1,
- "cuttingOption": "small",
- "servicePackagingOption": "paper",
- "comment": "fragile"
}, - {
- "id": 2,
- "productId": "75cdcd91a88ed11babd7ca9i",
- "quantity": 1.5,
- "cuttingOption": "small",
- "servicePackagingOption": "paper",
- "comment": "fragile"
}
]
}
}
]
Updates a shopping list.
shoppinglist.shoppinglist_manage
- required for the employee to update a shopping list. If scope is not present, then the operation is allowed for customer to update his own shopping list.The resource has been successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "name": "default",
- "items": [
- {
- "id": 3,
- "productId": "23cdcd91a88ed11babd7ca7y",
- "quantity": 2.4,
- "cuttingOption": "small",
- "servicePackagingOption": "paper",
- "comment": "fragile"
}
]
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "hybris-tenant",
- "message": "size must be between 1 and 36",
- "type": "invalid_header"
}
]
}
Retrieves a shopping list based on the customer number. This endpoint is valid only for the employee.
shoppinglist.shoppinglist_read
shopping list successfully retrieved.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "customerId": "C120048",
- "default": {
- "name": "default",
- "items": [
- {
- "id": 1,
- "productId": "55cdcd91a88ed11babd7ca7e",
- "quantity": 7.1,
- "cuttingOption": "small",
- "servicePackagingOption": "paper",
- "comment": "fragile"
}, - {
- "id": 2,
- "productId": "75cdcd91a88ed11babd7ca9i",
- "quantity": 1.5,
- "cuttingOption": "small",
- "servicePackagingOption": "paper",
- "comment": "fragile"
}
]
}
}
Deletes a shopping list.
shoppinglist.shoppinglist_manage
- required for the employee to delete a shopping list. If scope is not present, then the operation is allowed for customer to delete his own shopping list.The resource has been successfully deleted.
Request syntactically incorrect. Any details will be provided within the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "hybris-tenant",
- "message": "size must be between 1 and 36",
- "type": "invalid_header"
}
]
}