POST api/PriceGroup?user={user}
Create a new price group for the reseller
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
Price group details
PriceGroup| Name | Description | Type | Additional 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
{
"Id": 1.0,
"Desrciption": "sample string 2",
"Comments": "sample string 3",
"Default": true,
"DateCreation": "2025-12-12T19:14:13.6792074+01:00",
"DateModification": "2025-12-12T19:14:13.6792074+01:00"
}
application/xml, text/xml
<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-12-12T19:14:13.6792074+01:00</DateCreation> <DateModification>2025-12-12T19:14:13.6792074+01:00</DateModification> <Default>true</Default> <Desrciption>sample string 2</Desrciption> <Id>1</Id> </PriceGroup>
application/x-www-form-urlencoded
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
| Name | Description | Type | Additional 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
{
"Id": 1.0,
"Desrciption": "sample string 2",
"Comments": "sample string 3",
"Default": true,
"DateCreation": "2025-12-12T19:14:13.6948107+01:00",
"DateModification": "2025-12-12T19:14:13.6948107+01:00"
}
application/xml, text/xml
<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-12-12T19:14:13.6948107+01:00</DateCreation> <DateModification>2025-12-12T19:14:13.6948107+01:00</DateModification> <Default>true</Default> <Desrciption>sample string 2</Desrciption> <Id>1</Id> </PriceGroup>