POST api/PriceGroup?user={user}

Create a new price group 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

Price group details

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.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1.0,
  "Desrciption": "sample string 2",
  "Comments": "sample string 3",
  "Default": true,
  "DateCreation": "2025-04-03T21:48:12.1431317+02:00",
  "DateModification": "2025-04-03T21:48:12.1431317+02:00"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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

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-03T21:48:12.1586818+02:00",
  "DateModification": "2025-04-03T21:48:12.1586818+02:00"
}

application/xml, text/xml

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