GET api/v1/{companyId}/prices/customergroup?page={page}&pageSize={pageSize}&modifiedAfter={modifiedAfter}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

string

Required

page

integer

Default value is 0

pageSize

integer

Default value is 100

modifiedAfter

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of 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
      }
    ]
  },
  {
    "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:
<ArrayOfCustomerGroupPriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TreeOfPets.LitiumIntegration.Api.Models">
  <CustomerGroupPriceModel>
    <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>
  <CustomerGroupPriceModel>
    <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>
</ArrayOfCustomerGroupPriceModel>