It allows you:
to get list of defined Discount Schemas
Columns that can be used as filters:
Organization
DiscountType
Name
ValidFrom - Range
Active
Actions can be done:
list
URL: https://api.socratecloud.com/webapi/rest/discount_schema/list/0?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Available filter parameters:
Organization
DiscountType
Name
ValidFrom - Range
Active
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2014-10-13 11:04:02+0300",
"CreatedBy": "Robert Hindli",
"Updated": "2014-10-13 14:39:36+0300",
"UpdatedBy": "Robert Hindli",
"Active": true,
"Name": "Discount 20%",
"Description": null,
"DiscountType": "Flat Percent",
"ValidFrom": "2014-09-01 00:00:00+0300",
"FlatDiscount": 20,
"IsUseBPartnerFlatDiscount": false,
"CumulativeLevel": null,
"IsQuantityBased": false
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/discount_schema/full/list/0?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Available filter parameters:
Organization
DiscountType
Name
ValidFrom - Range
Active
Only details from discount type "Breaks".
Return: JSON object with next format:
{
"data": [
{
"Organization": "*",
"Created": "2014-01-10 15:40:12+0200",
"CreatedBy": "Admin",
"Updated": "2015-02-24 09:56:06+0200",
"UpdatedBy": "User",
"Active": true,
"Name": "Standard",
"Description": null,
"DiscountType": "Breaks",
"ValidFrom": "2010-01-01 00:00:00+0200",
"FlatDiscount": null,
"IsUseBPartnerFlatDiscount": false,
"CumulativeLevel": "Line",
"IsQuantityBased": true,
"Breaks": [
{
"Organization": "*",
"Created": "2016-10-25 11:35:29+0300",
"CreatedBy": "Admin",
"Updated": "2016-10-25 11:35:29+0300",
"UpdatedBy": "Admin",
"Active": true,
"SeqNo": 10,
"ProductCategory": "null",
"Product": null,
"ProductName": null,
"BreakValue": 1,
"BreakDiscount": 1,
"IsBPartnerFlatDiscount": false,
"ProductSubcategory": "Other",
"FamilyType": null,
"ProductFamily": null
}
]
}
],
"totalRows": 1
}