GET api/v1/{companyId}/prices/customer/{customerId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | string |
Required |
|
| customerId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
CustomerPriceModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| Prices | Collection of ProductPriceModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"Prices": [
{
"ProductId": "sample string 1",
"Price": 2.0,
"Discount": 1.0
},
{
"ProductId": "sample string 1",
"Price": 2.0,
"Discount": 1.0
}
]
}
application/xml, text/xml
Sample:
<CustomerPriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TreeOfPets.LitiumIntegration.Api.Models">
<CustomerId>1</CustomerId>
<Prices>
<ProductPriceModel>
<Discount>1</Discount>
<Price>2</Price>
<ProductId>sample string 1</ProductId>
</ProductPriceModel>
<ProductPriceModel>
<Discount>1</Discount>
<Price>2</Price>
<ProductId>sample string 1</ProductId>
</ProductPriceModel>
</Prices>
</CustomerPriceModel>