POST api/Cart

Documentation for 'Post'.

Request Information

Parameters

NameDescriptionAdditional information
cartPost
Documentation for 'cartPost'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "customerId": "sample string 1",
  "itemNumber": "sample string 2",
  "quantity": 3
}

text/html

Sample:
{"customerId":"sample string 1","itemNumber":"sample string 2","quantity":3}

application/xml, text/xml

Sample:
<CartPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Amity.Api.Models">
  <customerId>sample string 1</customerId>
  <itemNumber>sample string 2</itemNumber>
  <quantity>3</quantity>
</CartPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>