Import Extra Data Names
Import Records
Imports Extra data names records to the selected index
REST API | ExtraDataNameApi/importExtraData |
Parameters | Description | Parameter Options/value |
---|---|---|
myindex Required | acc- for accounts itm- for items | 'acc' 'itm' |
rows Required | extra data object array | See table below |
JSON Body Example
{
...
"rows": [
{
...
},
{
...
}
]
}
Extra data names 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) | שם | Name | ||
EnName | String (max 50) | שם בלועזי | English name | null | Only allowed if myindex='itm' |
IShowFlag | 0/1 | להציג בחנות | Show in store | 0 | |
ISortFlag | 0/1 | לאפשר מיון | Enable sort | 0 | Only allowed if myindex='itm' and 'IShowFlag=1' |
IFilterFlag | 0/1 | לאפשר סינון | Enable filter | 0 | |
ITopFlag | 0/1 | תצוגה בכותרת | View in top | 0 | |
IDetFlag | 0/1 | תצוגה בפרטים | View in detail | 0 |
JSON Examples
Example for itm index
{
"myindex": "itm",
"rows": [
{
"TypeExtraData": "Dates",
"Name": "תאריך לידה",
"EnName": "birth-day",
"IShowFlag": 1,
"ISortFlag": 0,
"IFilterFlag": 0,
"ITopFlag": 0,
"IDetFlag": 1
},
{
"TypeExtraData": "Notes",
"Name": "יצרן",
"EnName": "Manufacturer"
}
]
}
Example for acc index
{
"myindex": "acc",
"rows": [
{
"TypeExtraData": "Dates",
"Name": "תאריך לידה"
},
{
"TypeExtraData": "Notes",
"Name": "יצרן"
}
]
}
Extra data OutputData
Name | Options |
---|---|
statusCode | 200 – OK / 500 - Errors |
status | |
errors | OK / Errors: "error description" / No Permission |