Import Sort Codes
Import Records by Sort Codes
Imports or updates records to the selected sort codes
REST API | SortCodeApi/importSortCodes |
Parameters | Description | Parameter Options/value |
---|---|---|
myindex Required | accsort - for accounts itmsort - for items | 'accsort' 'itmsort' |
rows Required | sort codes object array | See table below |
JSON Body Example
{
...
"rows": [
{
...
},
{
...
}
]
}
Accounts Sort Codes Data
The following parameters should be included in a rows
array if myindex=accsort
(see example below)
FieldName-trans | Type | תיאור | Description | Default |
---|---|---|---|---|
AccSortCode Required | String (max 9) | קוד מיון | Sort code | |
SortCodeName | String (max 50) | שם קוד מיון | Sort code name | null |
Items Sort Codes Data
The following parameters should be included in a rows
array if myindex=itmsort
(see example below)
FieldName-trans | Type | תיאור | Description | Default |
---|---|---|---|---|
ItemSortCode Required | String (max 9) | קוד מיון | Sort code | --- |
SortCodeName | String (max 50) | שם קוד מיון | Sort code name | --- |
JSON Example
{
"myindex": "itmsort",
"rows": [
{
"ItemSortCode": "123",
"SortCodeName": "מדפסות"
},
{
"ItemSortCode": "456",
"SortCodeName": "מחשבים"
},
{
"ItemSortCode": "789",
"SortCodeName": "שרות"
}
]
}
Sort Codes OutputData
Name | Options |
---|---|
statusCode | 200 – OK / 500 - Errors |
status | |
errors | OK / Errors: "error description" / No Permission |