Add to cart
POST {{kroger-baseUrl}}/carts/:id/items
Provides access to add items to an authenticated customer's cart.
Note: the customer must be authenticated using the OAuth2 Authorization
Code grant type.
Request Body
{"quantity"=>"<integer>", "upc"=>"<string>", "allowSubstitutes"=>"<boolean>", "specialInstructions"=>"<string>", "modality"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"data":[{"id":"\u003cstring\u003e","createdDate":"\u003cstring\u003e","items":[{"allowSubstitutes":"\u003cboolean\u003e","createdDate":"\u003cstring\u003e","quantity":"\u003cinteger\u003e","specialInstructions":"\u003cstring\u003e","upc":"\u003cstring\u003e","description":"\u003cstring\u003e","modality":"\u003cstring\u003e"},{"allowSubstitutes":"\u003cboolean\u003e","createdDate":"\u003cstring\u003e","quantity":"\u003cinteger\u003e","specialInstructions":"\u003cstring\u003e","upc":"\u003cstring\u003e","description":"\u003cstring\u003e","modality":"\u003cstring\u003e"}],"name":"\u003cstring\u003e"},{"id":"\u003cstring\u003e","createdDate":"\u003cstring\u003e","items":[{"allowSubstitutes":"\u003cboolean\u003e","createdDate":"\u003cstring\u003e","quantity":"\u003cinteger\u003e","specialInstructions":"\u003cstring\u003e","upc":"\u003cstring\u003e","description":"\u003cstring\u003e","modality":"\u003cstring\u003e"},{"allowSubstitutes":"\u003cboolean\u003e","createdDate":"\u003cstring\u003e","quantity":"\u003cinteger\u003e","specialInstructions":"\u003cstring\u003e","upc":"\u003cstring\u003e","description":"\u003cstring\u003e","modality":"\u003cstring\u003e"}],"name":"\u003cstring\u003e"}],"meta":{}}