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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;data&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;createdDate&quot;:&quot;\u003cstring\u003e&quot;,&quot;items&quot;:[{&quot;allowSubstitutes&quot;:&quot;\u003cboolean\u003e&quot;,&quot;createdDate&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;specialInstructions&quot;:&quot;\u003cstring\u003e&quot;,&quot;upc&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;modality&quot;:&quot;\u003cstring\u003e&quot;},{&quot;allowSubstitutes&quot;:&quot;\u003cboolean\u003e&quot;,&quot;createdDate&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;specialInstructions&quot;:&quot;\u003cstring\u003e&quot;,&quot;upc&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;modality&quot;:&quot;\u003cstring\u003e&quot;}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;createdDate&quot;:&quot;\u003cstring\u003e&quot;,&quot;items&quot;:[{&quot;allowSubstitutes&quot;:&quot;\u003cboolean\u003e&quot;,&quot;createdDate&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;specialInstructions&quot;:&quot;\u003cstring\u003e&quot;,&quot;upc&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;modality&quot;:&quot;\u003cstring\u003e&quot;},{&quot;allowSubstitutes&quot;:&quot;\u003cboolean\u003e&quot;,&quot;createdDate&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;specialInstructions&quot;:&quot;\u003cstring\u003e&quot;,&quot;upc&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;modality&quot;:&quot;\u003cstring\u003e&quot;}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;}],&quot;meta&quot;:{}}