Create Shopping List REVIEW
POST {{baseUrl}}/experimental/shopping/v0/lists
Supports creation of a new shopping list on behalf of an authenticated user. Items may be optionally provided for the list, but are not required.
Request Body
{"name"=>"Taco Night", "items"=>[{"quantity"=>1, "upc"=>"7495563456235"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Idempotency-Key | string | (Required) Unique UUID/GUID value generated by the consumer. This is used by the service on a POST to ensure that the same request is not executed more than once. | |
Content-Language | string | The language of the payload. | |
Accept-Language | string | The language or locale accepted by the client application. | |
x-mock-response-code | number | Used to specify the type of response to receive from the mock service. Indicate the desired response code from available codes on this service: 201, 400. |
RESPONSES
status: Created
{"data":{"id":"eaf02512-f18b-4fd8-b31f-71607a4b6d50","versionKey":"5692cc40af18","name":"Taco Night","items":[{"quantity":1,"upc":"7495563456235"}]}}