Add Reason Codes
post
/config/sim/v2/setup/reasonCodes
Adds a Reason Code. Operation is supported only for Cash Management Reasons
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
Reason Codes insert request body
Root Schema : schema
Type:
Show Source
object
-
descriptorTypeNum(required):
integer
Descriptor type number of the reason code.
Descriptor Type Name Descriptor Type Num Max 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
-
hierUnitId(required):
integer
Unique reference of the hierarchy unit where the reason code is configured.Example:
7
-
objectNum(required):
integer
Object Number of the Reason Code.Example:
2
-
text(required):
object text
Name of the Reason Code.
Nested Schema : text
Type:
object
Maximum Length:
128
Name of the Reason Code.
Example:
{
"1":"Inventory purchase",
"2":"Inventory purchase",
"3":"Inventory purchase"
}
Response
Supported Media Types
- application/json
200 Response
Reason Code Added.
Root Schema : schema
Type:
Show Source
object
-
descriptorTypeNum:
integer
Descriptor type number of the reason code.Example:
30
-
hierUnitId:
integer
Unique reference of the hierarchy unit where the reason code is configured.Example:
7
-
objectNum:
integer
Object number of the reason code.Example:
2