Skip to main content

Import Sort Codes

Import Records by Sort Codes

Imports or updates records to the selected sort codes

REST APISortCodeApi/importSortCodes

ParametersDescriptionParameter 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-transTypeתיאורDescriptionDefault
AccSortCode
Required
String (max 9)קוד מיוןSort code
SortCodeNameString (max 50)שם קוד מיוןSort code namenull

Items Sort Codes Data

The following parameters should be included in a rows array if myindex=itmsort (see example below)

FieldName-transTypeתיאורDescriptionDefault
ItemSortCode
Required
String (max 9)קוד מיוןSort code---
SortCodeNameString (max 50)שם קוד מיוןSort code name---

JSON Example

{
"myindex": "itmsort",
"rows": [
{
"ItemSortCode": "123",
"SortCodeName": "מדפסות"
},
{
"ItemSortCode": "456",
"SortCodeName": "מחשבים"
},
{
"ItemSortCode": "789",
"SortCodeName": "שרות"
}
]
}

Sort Codes OutputData

NameOptions
statusCode200 – OK / 500 - Errors
status
errorsOK / Errors: "error description" / No Permission