Logo
The Kroger Co.'s Public API Documentation

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.

 

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": {} }



Curl
curl -X POST 'kroger-baseUrl/carts' -H 'Content-Type: application/json' -d '{"items":[{"quantity":"\u003cinteger\u003e","upc":"\u003cstring\u003e","allowSubstitutes":"\u003cboolean\u003e","specialInstructions":"\u003cstring\u003e","modality":"\u003cstring\u003e"},{"quantity":"\u003cinteger\u003e","upc":"\u003cstring\u003e","allowSubstitutes":"\u003cboolean\u003e","specialInstructions":"\u003cstring\u003e","modality":"\u003cstring\u003e"}]}'

ENDPOINTS