Import Extra Data
Import Records
Imports Extra data records to the selected index
REST API | ExtraDataApi/importExtraData |
Parameters | Description | Parameter Options/value | Default |
---|---|---|---|
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-trans | Type | Description | תיאור | 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 note | null |
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
Name | Options |
---|---|
statusCode | 200 – OK / 500 - Errors |
status | |
errors | OK / Errors: "error description" / No Permission |