getReasonCodes

Get a list of reason codes.

Input parameters

Parameter name Description Possible value Required
purpose Possible values: "WRITEOFF" - Inventory Write-off, "RETURN" - Return, "DISCOUNT" - Discount, "REGISTRATION" - Inventory registration, "EOD_VARIANCE" - End-of-Day variance, "TAX_EXEMPTION" - Tax exemption, "CASH_IN" - Cash In, "CASH_OUT" - Cash Out, "PROMOTION" - Promotion. String
recordsOnPage Number of records API should return. By default 20, at most 100. Integer
pageNo API returns at most recordsOnPage items at a time. To retrive the next recordsOnPage items, send a new request with pageNo incremented by one. By default, API returns "page 1". Integer

Response

Field name Type Description
reasonID Integer
name String
purpose String Possible values: "WRITEOFF" - Inventory Write-off, "RETURN" - Return, "DISCOUNT" - Discount, "REGISTRATION" - Inventory registration, "EOD_VARIANCE" - End-of-Day variance, "TAX_EXEMPTION" - Tax exemption, "CASH_IN" - Cash In, "CASH_OUT" - Cash Out, "PROMOTION" - Promotion.
manualDiscountDisablesPromotionTiers Array of integers Reason codes with "DISCOUNT" purpose can disable some promotion tiers from being applied to shopping cart row.
added Unix timestamp Creation time.
lastModified Unix timestamp Last modification time.
code String Reason code