Skip to main content

Import Extra Data

Import Records

Imports Extra data records to the selected index

REST API ExtraDataApi/importExtraData

ParametersDescriptionParameter Options/valueDefault
myindex
Required
acc- for accounts
itm- for items
'acc'
'itm'
insertNewExtraName Allow inserting new Extra Data Names records. true
false
false
updexist Allow updates to the records value. true
false
false
rows
Required
See table below extra data names object array

JSON Body Example

{
...
"rows":
[
{
...
},
{
...
}
]
}

Extra data Data

The following parameters should be included in a rows array (see examples below)

FieldName-transTypeDescriptionתיאורDefault
TypeExtraData
Required
Sums- for sums name
Dates- for dates name
Notes- for notes name
סוג נתוניםType Extra Data
Name
Required
String (max 50)שם הכותרתExtra data Name
Key
Required
String (max 15)מפתח חשבון/פריטAccount/item key
Value
Required
Number/ date/ stringערך השדה- סכום, מחיר, תאריךExtra data value
EnNote
Only allowed if myindex='itm'
String (max 50)הערה לועזיתEnglish notenull

JSON Examples

Example for itm index


{
"myindex": "itm",
"insertNewExtraName": false,
"updexist": false,
"rows":
[
{
"TypeExtraData": "Dates",
"Name": "תאריך לידה",
"key": "1010",
"value": "12/02/1999"
},
{
"TypeExtraData": "Notes",
"Name": "יצרן",
"key":"1010",
"value":"דוד",
"EnNote": "david"
}
]
}


Example for acc index


{
"myindex": "acc",
"insertNewExtraName": true,
"updexist": true,
"rows":
[
{
"TypeExtraData": "Dates",
"Name": "פג תוקף",
"key": "גילי",
"value": "01/01/2020"
}
]
}

Extra data OutputData

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