GET api/v1/{companyId}/prices/customergroup/{customerGroupId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

string

Required

customerGroupId

integer

Required

Body Parameters

None.

Response Information

Resource Description

CustomerGroupPriceModel
NameDescriptionTypeAdditional information
CustomerGroupId

integer

None.

Prices

Collection of ProductPriceModel

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerGroupId": 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:
<CustomerGroupPriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TreeOfPets.LitiumIntegration.Api.Models">
  <CustomerGroupId>1</CustomerGroupId>
  <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>
</CustomerGroupPriceModel>