POST api/forb2b/p2p-add-to-cart
Request Information
URI Parameters
None.
Body Parameters
P2PAddToCart| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | string |
None. |
|
| productlists | Collection of Productlist |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": "sample string 1",
"productlists": [
{
"Quantity": 1,
"Price": 2.0,
"CartRef": "sample string 3",
"Barcode": "sample string 4"
},
{
"Quantity": 1,
"Price": 2.0,
"CartRef": "sample string 3",
"Barcode": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<P2PAddToCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model">
<CustomerId>sample string 1</CustomerId>
<productlists>
<Productlist>
<Barcode>sample string 4</Barcode>
<CartRef>sample string 3</CartRef>
<Price>2</Price>
<Quantity>1</Quantity>
</Productlist>
<Productlist>
<Barcode>sample string 4</Barcode>
<CartRef>sample string 3</CartRef>
<Price>2</Price>
<Quantity>1</Quantity>
</Productlist>
</productlists>
</P2PAddToCart>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |