GET api/PriceGroup?user={user}

Return the price groups for the reseller

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user

Optional user handle - if empty logged in user will be used

string

None.

Body Parameters

None.

Response Information

Resource Description

list of PriceGroup objects on success
Collection of errors on failure
Return codes
200 - ok
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error

Collection of PriceGroup
NameDescriptionTypeAdditional information
Id

Price group id

decimal number

None.

Desrciption

Group description

string

None.

Comments

string

None.

Default

Is default price group - one default per reseller

boolean

None.

DateCreation

Date created

date

None.

DateModification

Last modified date

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1.0,
    "Desrciption": "sample string 2",
    "Comments": "sample string 3",
    "Default": true,
    "DateCreation": "2025-04-04T00:07:04.4553156+02:00",
    "DateModification": "2025-04-04T00:07:04.4553156+02:00"
  },
  {
    "Id": 1.0,
    "Desrciption": "sample string 2",
    "Comments": "sample string 3",
    "Default": true,
    "DateCreation": "2025-04-04T00:07:04.4553156+02:00",
    "DateModification": "2025-04-04T00:07:04.4553156+02:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPriceGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Pricing">
  <PriceGroup>
    <Comments>sample string 3</Comments>
    <DateCreation>2025-04-04T00:07:04.4553156+02:00</DateCreation>
    <DateModification>2025-04-04T00:07:04.4553156+02:00</DateModification>
    <Default>true</Default>
    <Desrciption>sample string 2</Desrciption>
    <Id>1</Id>
  </PriceGroup>
  <PriceGroup>
    <Comments>sample string 3</Comments>
    <DateCreation>2025-04-04T00:07:04.4553156+02:00</DateCreation>
    <DateModification>2025-04-04T00:07:04.4553156+02:00</DateModification>
    <Default>true</Default>
    <Desrciption>sample string 2</Desrciption>
    <Id>1</Id>
  </PriceGroup>
</ArrayOfPriceGroup>