Get Reason Codes

post

/config/sim/v2/setup/getReasonCodes

Gets all Reason Codes

Request

Supported Media Types
Body ()
The input body model that needs to be given.
Root Schema : schema
Type: object
Show Source
  • If specified, limits the data returned to these fields.
    Example: hierUnitId, objectNum, descriptorTypeNum
  • If this value is specified, the include parameter is ignored.
    Value Description
    basic Forces the response to include all fields except option string details
    detailed Forces the response to include all fields including option string details
    Example: detailed
  • If specified, limits translated strings returned
    Example: 1,2,3
  • If using paging, number of results returned in this page.
    Example: 100
  • Starting resource record index. Not required if paging parameters are not supported
    Example: 0
  • Sorts the response by the specified field name and sort order. Allowed fields are hierUnitId, objectNum, descriptorTypeNum and text.
    Example: hierUnitId:asc
  • If specified, returns records that match the criteria. Allowed fields are hierUnitId, objectNum, descriptorTypeNum and text.
    Example: where equals(hierUnitId, 7)
Back to Top

Response

Supported Media Types

200 Response

A collection of Reason Codes
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : items
Type: array
Reason Codes records.
Show Source
Nested Schema : ReasonCode
Type: object
Reason Code
Show Source
  • Descriptor type number of the reason code.

    Descriptor Type NameDescriptor Type NumMax Count
    Payment 30 32
    Loan 28 32
    Pickup 27 32
    Service total 29 32
    Void/Return/Waste 48 64
    Cash Management
    Adjust Starting Amount: 38
    Adjust Count: 39
    Adjust Paid-in: 40
    Adjust Paid-out: 41
    Transfer: 42
    Adjust Cash Deposit: 43
    Over/Short: 44
    Adjust Bank Deposit Reference: 45
    No Sale Reason: 49
    Example: 30
  • Unique reference of the hierarchy unit where the reason code is configured.
    Example: 7
  • Object Number of the Reason Code.
    Example: 2
  • A string value of 0s & 1s of length 16 indicating the use of Reasons for Voids/Returns and Waste.
    Example: 1100000000000000
  • optionsExt
    An object containing the descriptive options list associated with the Void/Return/Waste reasons.
  • text
    Name of the Reason Code.
Nested Schema : optionsExt
Type: object
An object containing the descriptive options list associated with the Void/Return/Waste reasons.
Show Source
  • Flag indicating the use of reason code for voids and return menu items.
    Example: false
  • Flag indicating the use of reason code for Waste menu items.
    Example: false
Nested Schema : text
Type: object
Maximum Length: 128
Name of the Reason Code.
Example:
{
    "1":"Inventory purchase",
    "2":"Inventory purchase",
    "3":"Inventory purchase"
}
Back to Top