Create a cart

POST {{kroger-baseUrl}}/carts

Provides access to create a new cart for an authenticated customer.

Note: the customer must be authenticated using the OAuth2 Authorization Code grant type.

Request Body

{"items"=>[{"quantity"=>"<integer>", "upc"=>"<string>", "allowSubstitutes"=>"<boolean>", "specialInstructions"=>"<string>", "modality"=>"<string>"}, {"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;:{}}