GET api/CartPrice?cid={cid}&itemIds={itemIds}&contractId={contractId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
cid | integer |
Required |
|
itemIds | string |
Required |
|
contractId | integer |
Default value is -1 |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductPriceName | Description | Type | Additional information |
---|---|---|---|
product | string |
None. |
|
price | decimal number |
None. |
|
unit_of_measure | string |
None. |
|
unit_size | decimal number |
None. |
|
qty | decimal number |
None. |
|
companies | Collection of CompanyPrice |
None. |
Response Formats
application/json, text/json
Sample:
[ { "product": "sample string 1", "price": 2.0, "unit_of_measure": "sample string 3", "unit_size": 4.0, "qty": 5.0, "companies": [ { "product": "sample string 1", "company": 2, "price": 3.0, "unit_of_measure": "sample string 4", "unit_size": 5.0, "qty": 6.0 }, { "product": "sample string 1", "company": 2, "price": 3.0, "unit_of_measure": "sample string 4", "unit_size": 5.0, "qty": 6.0 } ] }, { "product": "sample string 1", "price": 2.0, "unit_of_measure": "sample string 3", "unit_size": 4.0, "qty": 5.0, "companies": [ { "product": "sample string 1", "company": 2, "price": 3.0, "unit_of_measure": "sample string 4", "unit_size": 5.0, "qty": 6.0 }, { "product": "sample string 1", "company": 2, "price": 3.0, "unit_of_measure": "sample string 4", "unit_size": 5.0, "qty": 6.0 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfProductPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ADIGlobal.MagentoAPI.Models"> <ProductPrice> <companies> <CompanyPrice> <company>2</company> <price>3</price> <product>sample string 1</product> <qty>6</qty> <unit_of_measure>sample string 4</unit_of_measure> <unit_size>5</unit_size> </CompanyPrice> <CompanyPrice> <company>2</company> <price>3</price> <product>sample string 1</product> <qty>6</qty> <unit_of_measure>sample string 4</unit_of_measure> <unit_size>5</unit_size> </CompanyPrice> </companies> <price>2</price> <product>sample string 1</product> <qty>5</qty> <unit_of_measure>sample string 3</unit_of_measure> <unit_size>4</unit_size> </ProductPrice> <ProductPrice> <companies> <CompanyPrice> <company>2</company> <price>3</price> <product>sample string 1</product> <qty>6</qty> <unit_of_measure>sample string 4</unit_of_measure> <unit_size>5</unit_size> </CompanyPrice> <CompanyPrice> <company>2</company> <price>3</price> <product>sample string 1</product> <qty>6</qty> <unit_of_measure>sample string 4</unit_of_measure> <unit_size>5</unit_size> </CompanyPrice> </companies> <price>2</price> <product>sample string 1</product> <qty>5</qty> <unit_of_measure>sample string 3</unit_of_measure> <unit_size>4</unit_size> </ProductPrice> </ArrayOfProductPrice>