Create a Shopping List With Products
Add a shopping list containing products based on:
- retailerBannerId
- retailerCustomerId
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier for the retail banner.
The unique identifier for the customer.
Header Parameters
Section titled “Header Parameters ”The API key for the environment. To obtain an API key speak to your account contact.
Request id
Request Body required
Section titled “Request Body required ”object
The name of the shopping list.
The unique identifier for the shopping list.
object
Your unique identifier for the product.
The number of products.
2
The date and time the products were added.
The unique identifier for the customer.
The date and time the shopping list was created.
The date and time the shopping list was updated.
Responses
Section titled “ Responses ”Response Code: 201 - Success
object
The name of the shopping list.
The unique identifier for the shopping list.
object
Your unique identifier for the product.
The number of products.
2
The date and time the products were added.
The unique identifier for the customer.
The date and time the shopping list was created.
The date and time the shopping list was updated.
SL-0003 - The retailer product id in the shopping list appears more than once, CC-002 - Bad request exception
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error
CC-090 - Unauthorized
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error
CC-091 - Access is denied
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error
CC-101 - Customer not found, CC-2600 - The retail banner cannot be found, or the service account used is not authorised
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error
SL-0001 - The maximum number of shopping lists per customer has been reached, SL-0005 - The retailerShoppingListsId already exists in the banner, SL-0002 - The maximum number of products per list has been reached
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error
CC-012 - Unsupported media type
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error
CC-001 - Unhandled exception
Error response schema. It provides further details when a request fails.
object
Date and time the response was generated
HTTP response status code
400
Textual details about error, may contain parameters described in args
Optional values for parameters used in ‘message’
object
Custom OSP error code
Link to troubleshooting page with information about the error