API Definitions
Version Added: 21.1
includeHidden is an optional parameter that defaults to false.
Example Requests:
GET /definitions
GET /definitions?Offset=200
GET /definitions?Category=1
GET /definitions?Category=1&includeHidden=true
Example Response:
[
{
"DefNum": 293,
"ItemName": "Sales Tax",
"ItemValue": "+",
"Category": 1,
"category": "AdjTypes",
"isHidden": "false"
},
{
"DefNum": 8,
"ItemName": "Professional Discount",
"ItemValue": "-",
"Category": 1,
"category": "AdjTypes",
"isHidden": "false"
},
{
"DefNum": 9,
"ItemName": "Cash Discount",
"ItemValue": "-",
"Category": 1,
"category": "AdjTypes",
"isHidden": "false"
},
etc...
]
Version Added: 22.1
Creates a new Definition, attempts to set the Category (definition.Category) will be silently ignored.
ItemName: Required. Name of the definition.
category: Required. See the list of current Definitions for a valid definition.Category name.
ItemValue: Optional. Values will be validated differently for each Category.
isHidden: Optional. Defaults to "false".
{
"ItemName": "Interest Payment",
"category": "PaymentTypes"
}
{
"ItemName": "Cash Discount",
"ItemValue":"-",
"category": "AdjTypes",
"isHidden":"false"
}
Example Response:
{
"DefNum": 12,
"ItemName": "Cash Discount",
"ItemValue":"-",
"Category": 1,
"category":"AdjTypes",
"isHidden":"false"
}