Discount Group
Configure discount groups and rules in VARIO Cloud with the API, including percentage or fixed discounts, quantities, price groups and currencies.
the Discount Group API
an identifier
successful operation
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Discount group name.
Discount group description.
Type.
Resource with given ID was not found
GET /erp/product-types/discount-groups/{id} HTTP/1.1
Host: api.example.com
Accept: */*
{
"version": "text",
"info": {
"createdAt": "2026-01-01T00:00:00.000Z",
"createdFrom": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedFrom": "text"
},
"id": "text",
"label": "text",
"description": "text",
"type": "DISCOUNT",
"rules": []
}an identifier
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Discount group name.
Discount group description.
Type.
successful operation
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Discount group name.
Discount group description.
Type.
Resource was not found
Resource was not valid to process
PUT /erp/product-types/discount-groups/{id} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"version": "text",
"info": {},
"id": "text",
"label": "text",
"description": "text",
"type": "DISCOUNT",
"rules": []
}{
"version": "text",
"info": {
"createdAt": "2026-01-01T00:00:00.000Z",
"createdFrom": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedFrom": "text"
},
"id": "text",
"label": "text",
"description": "text",
"type": "DISCOUNT",
"rules": []
}an identifier
successful operation
message context
message
Resource was not found
unable to delete Resource, due to constraints, existing references or internal state
DELETE /erp/product-types/discount-groups/{id} HTTP/1.1
Host: api.example.com
Accept: */*
{
"context": "text",
"messageValue": "text"
}Discount group identifier.
Discount group rule identifier.
OK
List of discount group rules
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Rule name.
Discount value.
Value type.
From this quantity.
GET /erp/product-types/discount-groups/{id}/rules/{ruleId} HTTP/1.1
Host: api.example.com
Accept: */*
OK
{
"version": "text",
"info": {
"createdAt": "2026-01-01T00:00:00.000Z",
"createdFrom": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedFrom": "text"
},
"id": "text",
"name": "text",
"value": 1,
"valueType": "PERCENT",
"fromQuantity": 1,
"priceGroupRef": {
"id": "text",
"label": "text",
"description": "text",
"active": true
},
"currencyRef": {
"id": 1,
"isoAlpha3": "text",
"label": "text",
"symbol": "text"
}
}Discount group identifier.
Discount group rule identifier.
List of discount group rules
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Rule name.
Discount value.
Value type.
From this quantity.
OK
List of discount group rules
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Rule name.
Discount value.
Value type.
From this quantity.
PUT /erp/product-types/discount-groups/{id}/rules/{ruleId} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 175
{
"version": "text",
"info": {},
"id": "text",
"name": "text",
"value": 1,
"valueType": "PERCENT",
"fromQuantity": 1,
"priceGroupRef": {
"id": "text"
},
"currencyRef": {
"id": 1,
"isoAlpha3": "text"
}
}OK
{
"version": "text",
"info": {
"createdAt": "2026-01-01T00:00:00.000Z",
"createdFrom": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedFrom": "text"
},
"id": "text",
"name": "text",
"value": 1,
"valueType": "PERCENT",
"fromQuantity": 1,
"priceGroupRef": {
"id": "text",
"label": "text",
"description": "text",
"active": true
},
"currencyRef": {
"id": 1,
"isoAlpha3": "text",
"label": "text",
"symbol": "text"
}
}Discount group identifier.
Discount group rule identifier.
OK
message context
message
DELETE /erp/product-types/discount-groups/{id}/rules/{ruleId} HTTP/1.1
Host: api.example.com
Accept: */*
OK
{
"context": "text",
"messageValue": "text"
}Version Identifier for this Object (for PUT)
Unique identifier of the Object
Discount group name.
Discount group description.
Type.
successful operation
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Discount group name.
Discount group description.
Type.
Resource was not valid to process
POST /erp/product-types/discount-groups HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"version": "text",
"info": {},
"id": "text",
"label": "text",
"description": "text",
"type": "DISCOUNT",
"rules": []
}{
"version": "text",
"info": {
"createdAt": "2026-01-01T00:00:00.000Z",
"createdFrom": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedFrom": "text"
},
"id": "text",
"label": "text",
"description": "text",
"type": "DISCOUNT",
"rules": []
}Discount group identifier.
OK
List of discount group rules
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Rule name.
Discount value.
Value type.
From this quantity.
GET /erp/product-types/discount-groups/{id}/rules HTTP/1.1
Host: api.example.com
Accept: */*
OK
[]Discount group identifier.
List of discount group rules
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Rule name.
Discount value.
Value type.
From this quantity.
OK
List of discount group rules
Version Identifier for this Object (for PUT)
Unique identifier of the Object
Rule name.
Discount value.
Value type.
From this quantity.
POST /erp/product-types/discount-groups/{id}/rules HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 175
{
"version": "text",
"info": {},
"id": "text",
"name": "text",
"value": 1,
"valueType": "PERCENT",
"fromQuantity": 1,
"priceGroupRef": {
"id": "text"
},
"currencyRef": {
"id": 1,
"isoAlpha3": "text"
}
}OK
{
"version": "text",
"info": {
"createdAt": "2026-01-01T00:00:00.000Z",
"createdFrom": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedFrom": "text"
},
"id": "text",
"name": "text",
"value": 1,
"valueType": "PERCENT",
"fromQuantity": 1,
"priceGroupRef": {
"id": "text",
"label": "text",
"description": "text",
"active": true
},
"currencyRef": {
"id": 1,
"isoAlpha3": "text",
"label": "text",
"symbol": "text"
}
}Last updated
Was this helpful?