POST api/forb2b/add-to-buynow
Request Information
URI Parameters
None.
Body Parameters
AddToCart| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | integer |
None. |
|
| CustomerId | string |
None. |
|
| Quantity | integer |
None. |
|
| ModelId | integer |
None. |
|
| BrandId | integer |
None. |
|
| ColorId | integer |
None. |
|
| RamId | integer |
None. |
|
| RomId | integer |
None. |
|
| Price | decimal number |
None. |
|
| CartRef | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductId": 1,
"CustomerId": "sample string 2",
"Quantity": 3,
"ModelId": 4,
"BrandId": 5,
"ColorId": 6,
"RamId": 7,
"RomId": 8,
"Price": 9.0,
"CartRef": "sample string 10"
}
application/xml, text/xml
Sample:
<AddToCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model"> <BrandId>5</BrandId> <CartRef>sample string 10</CartRef> <ColorId>6</ColorId> <CustomerId>sample string 2</CustomerId> <ModelId>4</ModelId> <Price>9</Price> <ProductId>1</ProductId> <Quantity>3</Quantity> <RamId>7</RamId> <RomId>8</RomId> </AddToCart>
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. |