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.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string |
RESPONSES
status Created
{
"data": [
{
"id": "<string>",
"createdDate": "<string>",
"items": [
{
"allowSubstitutes": "<boolean>",
"createdDate": "<string>",
"quantity": "<integer>",
"specialInstructions": "<string>",
"upc": "<string>",
"description": "<string>",
"modality": "<string>"
},
{
"allowSubstitutes": "<boolean>",
"createdDate": "<string>",
"quantity": "<integer>",
"specialInstructions": "<string>",
"upc": "<string>",
"description": "<string>",
"modality": "<string>"
}
],
"name": "<string>"
},
{
"id": "<string>",
"createdDate": "<string>",
"items": [
{
"allowSubstitutes": "<boolean>",
"createdDate": "<string>",
"quantity": "<integer>",
"specialInstructions": "<string>",
"upc": "<string>",
"description": "<string>",
"modality": "<string>"
},
{
"allowSubstitutes": "<boolean>",
"createdDate": "<string>",
"quantity": "<integer>",
"specialInstructions": "<string>",
"upc": "<string>",
"description": "<string>",
"modality": "<string>"
}
],
"name": "<string>"
}
],
"meta": {}
} |
ENDPOINTS