POST api/carts/current/cartlines/batch
ADINA-8408:Adds multiple product items from wishlist to shopping cart
Request Information
URI Parameters
None.
Body Parameters
Array of product items
BatchCartlinePostRequestEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| cartLines | Collection of CartlinePostRequestEntity |
None. |
Request Formats
application/json, text/json
Sample:
{
"cartLines": [
{
"productId": "b83fc1ac-d265-4f85-a4c9-f00ffa01b765",
"qtyOrdered": 2.0,
"unitOfMeasure": "sample string 3",
"pricing": {
"regularPrice": 1.1,
"regularPriceDisplay": "sample string 2",
"extendedRegularPrice": 3.1,
"extendedRegularPriceDisplay": "sample string 4",
"actualPrice": 5.1,
"actualPriceDisplay": "sample string 6",
"extendedActualPrice": 7.1,
"extendedActualPriceDisplay": "sample string 8",
"unitCost": 9.1,
"unitCostDisplay": "sample string 10",
"isOnSale": true,
"regularBreakPrices": [
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
},
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
}
],
"actualBreakPrices": [
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
},
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
}
],
"additionalResults": {
"saleEndDate": "sample string 1",
"saleExpiryDays": "sample string 2"
},
"requiresRealTimePrice": true,
"unitListPrice": 13.1,
"unitListPriceDisplay": "sample string 14",
"extendedUnitListPrice": 15.1,
"extendedUnitListPriceDisplay": "sample string 16",
"unitRegularPrice": 17.1,
"unitRegularPriceDisplay": "sample string 18",
"extendedUnitRegularPrice": 19.1,
"extendedUnitRegularPriceDisplay": "sample string 20",
"unitNetPrice": 21.1,
"unitNetPriceDisplay": "sample string 22",
"extendedUnitNetPrice": 23.1,
"extendedUnitNetPriceDisplay": "sample string 24",
"msrpPrice": "sample string 25"
}
},
{
"productId": "b83fc1ac-d265-4f85-a4c9-f00ffa01b765",
"qtyOrdered": 2.0,
"unitOfMeasure": "sample string 3",
"pricing": {
"regularPrice": 1.1,
"regularPriceDisplay": "sample string 2",
"extendedRegularPrice": 3.1,
"extendedRegularPriceDisplay": "sample string 4",
"actualPrice": 5.1,
"actualPriceDisplay": "sample string 6",
"extendedActualPrice": 7.1,
"extendedActualPriceDisplay": "sample string 8",
"unitCost": 9.1,
"unitCostDisplay": "sample string 10",
"isOnSale": true,
"regularBreakPrices": [
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
},
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
}
],
"actualBreakPrices": [
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
},
{
"breakQty": 1,
"breakPrice": 2,
"breakPriceDisplay": "sample string 3",
"savingsMessage": "sample string 4"
}
],
"additionalResults": {
"saleEndDate": "sample string 1",
"saleExpiryDays": "sample string 2"
},
"requiresRealTimePrice": true,
"unitListPrice": 13.1,
"unitListPriceDisplay": "sample string 14",
"extendedUnitListPrice": 15.1,
"extendedUnitListPriceDisplay": "sample string 16",
"unitRegularPrice": 17.1,
"unitRegularPriceDisplay": "sample string 18",
"extendedUnitRegularPrice": 19.1,
"extendedUnitRegularPriceDisplay": "sample string 20",
"unitNetPrice": 21.1,
"unitNetPriceDisplay": "sample string 22",
"extendedUnitNetPrice": 23.1,
"extendedUnitNetPriceDisplay": "sample string 24",
"msrpPrice": "sample string 25"
}
}
]
}
application/xml, text/xml
Sample:
<BatchCartlinePostRequestEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities.ShoppingCart">
<cartLines>
<CartlinePostRequestEntity>
<pricing xmlns:d4p1="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">
<d4p1:actualBreakPrices>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
</d4p1:actualBreakPrices>
<d4p1:actualPrice>5.1</d4p1:actualPrice>
<d4p1:actualPriceDisplay>sample string 6</d4p1:actualPriceDisplay>
<d4p1:additionalResults>
<d4p1:saleEndDate>sample string 1</d4p1:saleEndDate>
<d4p1:saleExpiryDays>sample string 2</d4p1:saleExpiryDays>
</d4p1:additionalResults>
<d4p1:extendedActualPrice>7.1</d4p1:extendedActualPrice>
<d4p1:extendedActualPriceDisplay>sample string 8</d4p1:extendedActualPriceDisplay>
<d4p1:extendedRegularPrice>3.1</d4p1:extendedRegularPrice>
<d4p1:extendedRegularPriceDisplay>sample string 4</d4p1:extendedRegularPriceDisplay>
<d4p1:extendedUnitListPrice>15.1</d4p1:extendedUnitListPrice>
<d4p1:extendedUnitListPriceDisplay>sample string 16</d4p1:extendedUnitListPriceDisplay>
<d4p1:extendedUnitNetPrice>23.1</d4p1:extendedUnitNetPrice>
<d4p1:extendedUnitNetPriceDisplay>sample string 24</d4p1:extendedUnitNetPriceDisplay>
<d4p1:extendedUnitRegularPrice>19.1</d4p1:extendedUnitRegularPrice>
<d4p1:extendedUnitRegularPriceDisplay>sample string 20</d4p1:extendedUnitRegularPriceDisplay>
<d4p1:isOnSale>true</d4p1:isOnSale>
<d4p1:msrpPrice>sample string 25</d4p1:msrpPrice>
<d4p1:regularBreakPrices>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
</d4p1:regularBreakPrices>
<d4p1:regularPrice>1.1</d4p1:regularPrice>
<d4p1:regularPriceDisplay>sample string 2</d4p1:regularPriceDisplay>
<d4p1:requiresRealTimePrice>true</d4p1:requiresRealTimePrice>
<d4p1:unitCost>9.1</d4p1:unitCost>
<d4p1:unitCostDisplay>sample string 10</d4p1:unitCostDisplay>
<d4p1:unitListPrice>13.1</d4p1:unitListPrice>
<d4p1:unitListPriceDisplay>sample string 14</d4p1:unitListPriceDisplay>
<d4p1:unitNetPrice>21.1</d4p1:unitNetPrice>
<d4p1:unitNetPriceDisplay>sample string 22</d4p1:unitNetPriceDisplay>
<d4p1:unitRegularPrice>17.1</d4p1:unitRegularPrice>
<d4p1:unitRegularPriceDisplay>sample string 18</d4p1:unitRegularPriceDisplay>
</pricing>
<productId>b83fc1ac-d265-4f85-a4c9-f00ffa01b765</productId>
<qtyOrdered>2</qtyOrdered>
<unitOfMeasure>sample string 3</unitOfMeasure>
</CartlinePostRequestEntity>
<CartlinePostRequestEntity>
<pricing xmlns:d4p1="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">
<d4p1:actualBreakPrices>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
</d4p1:actualBreakPrices>
<d4p1:actualPrice>5.1</d4p1:actualPrice>
<d4p1:actualPriceDisplay>sample string 6</d4p1:actualPriceDisplay>
<d4p1:additionalResults>
<d4p1:saleEndDate>sample string 1</d4p1:saleEndDate>
<d4p1:saleExpiryDays>sample string 2</d4p1:saleExpiryDays>
</d4p1:additionalResults>
<d4p1:extendedActualPrice>7.1</d4p1:extendedActualPrice>
<d4p1:extendedActualPriceDisplay>sample string 8</d4p1:extendedActualPriceDisplay>
<d4p1:extendedRegularPrice>3.1</d4p1:extendedRegularPrice>
<d4p1:extendedRegularPriceDisplay>sample string 4</d4p1:extendedRegularPriceDisplay>
<d4p1:extendedUnitListPrice>15.1</d4p1:extendedUnitListPrice>
<d4p1:extendedUnitListPriceDisplay>sample string 16</d4p1:extendedUnitListPriceDisplay>
<d4p1:extendedUnitNetPrice>23.1</d4p1:extendedUnitNetPrice>
<d4p1:extendedUnitNetPriceDisplay>sample string 24</d4p1:extendedUnitNetPriceDisplay>
<d4p1:extendedUnitRegularPrice>19.1</d4p1:extendedUnitRegularPrice>
<d4p1:extendedUnitRegularPriceDisplay>sample string 20</d4p1:extendedUnitRegularPriceDisplay>
<d4p1:isOnSale>true</d4p1:isOnSale>
<d4p1:msrpPrice>sample string 25</d4p1:msrpPrice>
<d4p1:regularBreakPrices>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
<d4p1:BreakPrice>
<d4p1:breakPrice>2</d4p1:breakPrice>
<d4p1:breakPriceDisplay>sample string 3</d4p1:breakPriceDisplay>
<d4p1:breakQty>1</d4p1:breakQty>
<d4p1:savingsMessage>sample string 4</d4p1:savingsMessage>
</d4p1:BreakPrice>
</d4p1:regularBreakPrices>
<d4p1:regularPrice>1.1</d4p1:regularPrice>
<d4p1:regularPriceDisplay>sample string 2</d4p1:regularPriceDisplay>
<d4p1:requiresRealTimePrice>true</d4p1:requiresRealTimePrice>
<d4p1:unitCost>9.1</d4p1:unitCost>
<d4p1:unitCostDisplay>sample string 10</d4p1:unitCostDisplay>
<d4p1:unitListPrice>13.1</d4p1:unitListPrice>
<d4p1:unitListPriceDisplay>sample string 14</d4p1:unitListPriceDisplay>
<d4p1:unitNetPrice>21.1</d4p1:unitNetPrice>
<d4p1:unitNetPriceDisplay>sample string 22</d4p1:unitNetPriceDisplay>
<d4p1:unitRegularPrice>17.1</d4p1:unitRegularPrice>
<d4p1:unitRegularPriceDisplay>sample string 18</d4p1:unitRegularPriceDisplay>
</pricing>
<productId>b83fc1ac-d265-4f85-a4c9-f00ffa01b765</productId>
<qtyOrdered>2</qtyOrdered>
<unitOfMeasure>sample string 3</unitOfMeasure>
</CartlinePostRequestEntity>
</cartLines>
</BatchCartlinePostRequestEntity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CustomActionResultOfCartlineBatchPostResponseEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| StatusCode | HttpStatusCode |
None. |
|
| _data | CartlineBatchPostResponseEntity |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.