POST AddToCart
Request Information
URI Parameters
None.
Body Parameters
Cart| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CartId | string |
None. |
|
| VendorId | integer |
None. |
|
| Qty | integer |
None. |
|
| DateCreated | date |
None. |
|
| RowTotal | decimal number |
None. |
|
| UserId | string |
None. |
|
| Name | string |
None. |
|
| UUID | string |
None. |
|
| ProductId | integer |
None. |
|
| Longitude | decimal number |
None. |
|
| Latitude | decimal number |
None. |
|
| VatPayable | decimal number |
None. |
|
| UnitPrice | decimal number |
None. |
|
| MarkupAmount | decimal number |
None. |
|
| TransactionFees | decimal number |
None. |
|
| SubCategory | integer |
None. |
|
| isDeliverable | boolean |
None. |
|
| isPickup | boolean |
None. |
|
| SellingPrice | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CartId": "sample string 2",
"VendorId": 1,
"Qty": 3,
"DateCreated": "2025-12-11T12:03:31.0040237+02:00",
"RowTotal": 5.1,
"UserId": "sample string 6",
"Name": "sample string 7",
"UUID": "sample string 8",
"ProductId": 1,
"Longitude": 9.1,
"Latitude": 10.1,
"VatPayable": 11.1,
"UnitPrice": 12.1,
"MarkupAmount": 13.1,
"TransactionFees": 14.1,
"SubCategory": 1,
"isDeliverable": true,
"isPickup": true,
"SellingPrice": 17.1
}
application/xml, text/xml
Sample:
<Cart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BonaMarketAPI.Database"> <CartId>sample string 2</CartId> <DateCreated>2025-12-11T12:03:31.0040237+02:00</DateCreated> <Id>1</Id> <Latitude>10.1</Latitude> <Longitude>9.1</Longitude> <MarkupAmount>13.1</MarkupAmount> <Name>sample string 7</Name> <ProductId>1</ProductId> <Qty>3</Qty> <RowTotal>5.1</RowTotal> <SellingPrice>17.1</SellingPrice> <SubCategory>1</SubCategory> <TransactionFees>14.1</TransactionFees> <UUID>sample string 8</UUID> <UnitPrice>12.1</UnitPrice> <UserId>sample string 6</UserId> <VatPayable>11.1</VatPayable> <VendorId>1</VendorId> <isDeliverable>true</isDeliverable> <isPickup>true</isPickup> </Cart>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of spGetCartItems_Result| Name | Description | Type | Additional information |
|---|---|---|---|
| CartId | string |
None. |
|
| VendorId | integer |
None. |
|
| SellingPrice | decimal number |
None. |
|
| Qty | integer |
None. |
|
| RowTotal | decimal number |
None. |
|
| UserId | string |
None. |
|
| Name | string |
None. |
|
| ProductId | integer |
None. |
|
| VatPayable | decimal number |
None. |
|
| UnitPrice | decimal number |
None. |
|
| MarkupAmount | decimal number |
None. |
|
| TransactionFees | decimal number |
None. |
|
| SubCategory | integer |
None. |
|
| isDeliverable | boolean |
None. |
|
| ProductName | string |
None. |
|
| BonaMarketFee | decimal number |
None. |
|
| ProductImage | string |
None. |
|
| ImageFileType | string |
None. |
|
| Barcode | string |
None. |
|
| Barcode2 | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CartId": "sample string 1",
"VendorId": 1,
"SellingPrice": 2.1,
"Qty": 1,
"RowTotal": 1.1,
"UserId": "sample string 3",
"Name": "sample string 4",
"ProductId": 1,
"VatPayable": 5.1,
"UnitPrice": 6.1,
"MarkupAmount": 7.1,
"TransactionFees": 8.1,
"SubCategory": 1,
"isDeliverable": true,
"ProductName": "sample string 10",
"BonaMarketFee": 1.1,
"ProductImage": "sample string 11",
"ImageFileType": "sample string 12",
"Barcode": "sample string 13",
"Barcode2": "sample string 14"
},
{
"CartId": "sample string 1",
"VendorId": 1,
"SellingPrice": 2.1,
"Qty": 1,
"RowTotal": 1.1,
"UserId": "sample string 3",
"Name": "sample string 4",
"ProductId": 1,
"VatPayable": 5.1,
"UnitPrice": 6.1,
"MarkupAmount": 7.1,
"TransactionFees": 8.1,
"SubCategory": 1,
"isDeliverable": true,
"ProductName": "sample string 10",
"BonaMarketFee": 1.1,
"ProductImage": "sample string 11",
"ImageFileType": "sample string 12",
"Barcode": "sample string 13",
"Barcode2": "sample string 14"
}
]
application/xml, text/xml
Sample:
<ArrayOfspGetCartItems_Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BonaMarketAPI.Database">
<spGetCartItems_Result>
<Barcode>sample string 13</Barcode>
<Barcode2>sample string 14</Barcode2>
<BonaMarketFee>1.1</BonaMarketFee>
<CartId>sample string 1</CartId>
<ImageFileType>sample string 12</ImageFileType>
<MarkupAmount>7.1</MarkupAmount>
<Name>sample string 4</Name>
<ProductId>1</ProductId>
<ProductImage>sample string 11</ProductImage>
<ProductName>sample string 10</ProductName>
<Qty>1</Qty>
<RowTotal>1.1</RowTotal>
<SellingPrice>2.1</SellingPrice>
<SubCategory>1</SubCategory>
<TransactionFees>8.1</TransactionFees>
<UnitPrice>6.1</UnitPrice>
<UserId>sample string 3</UserId>
<VatPayable>5.1</VatPayable>
<VendorId>1</VendorId>
<isDeliverable>true</isDeliverable>
</spGetCartItems_Result>
<spGetCartItems_Result>
<Barcode>sample string 13</Barcode>
<Barcode2>sample string 14</Barcode2>
<BonaMarketFee>1.1</BonaMarketFee>
<CartId>sample string 1</CartId>
<ImageFileType>sample string 12</ImageFileType>
<MarkupAmount>7.1</MarkupAmount>
<Name>sample string 4</Name>
<ProductId>1</ProductId>
<ProductImage>sample string 11</ProductImage>
<ProductName>sample string 10</ProductName>
<Qty>1</Qty>
<RowTotal>1.1</RowTotal>
<SellingPrice>2.1</SellingPrice>
<SubCategory>1</SubCategory>
<TransactionFees>8.1</TransactionFees>
<UnitPrice>6.1</UnitPrice>
<UserId>sample string 3</UserId>
<VatPayable>5.1</VatPayable>
<VendorId>1</VendorId>
<isDeliverable>true</isDeliverable>
</spGetCartItems_Result>
</ArrayOfspGetCartItems_Result>