Skip to main content

Import Trans Types

Import New Trans Types

Imports new trans types only

REST APITransTypesApi/importTransTypes
ParametersDescriptionParameter Options/value
rows trans object array See table below

Trans Types Data

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

FieldName-transTypeDescriptionתיאורDefault
TransTypeCode
Required
String (max 3)קוד סוג תנועהTrans type code
TransTypeNameString (max 15)שם סוג תנועהTrans type namenull
DescriptionString (max 50)פרטיםDescriptionnull
TFtalPrecent
Required
Float numberסה"כ אחוזTotal precent
MainDebitAcc
Required
String (max 15)חשבון חובה ראשי (חייב להיות קיים במערכת)Main debit account (existing account key)
MainCreditAcc
Required
String (max 15)חשבון זכות ראשי (חייב להיות קיים במערכת)Main credit account (existing account key)
moves
Required
trans object array See table below

JSON Body Example

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

Sub-transactions for each Trans Type

The following parameters should be included in a moves array (see example below)

Sub-transactionsTypeDescriptionתיאור
TransType
Required
String (max 3)קוד סוג תנועהTrans type code
AccountKey
Required
String (max 15)מפתח חשבון (חייב להיות קיים במערכת)Account key (existing account key)
DebitCredit
Required
0/1דגל לציון חובה או זכות
1- חובה
0- זכות
Debit or credit transactions
1- debit
0- credit
PercenF
Required
Float numberאחוזPercent
Main
Required
0/1יש להגדיר חשבון ראשי בצד הזכות והחובה.
1- חשבון ראשי
Must set up main account on the debit and credit side
1- Main account

JSON Example

{
"rows": [
{
"TransTypeCode": "חל",
"TransTypeName": "חן חייבת במעמ",
"Description": "חשבונית לקוח חייבת במעמ",
"TFtalPrecent": 117,
"MainDebitAcc": "?",
"MainCreditAcc": "40001",
"moves": [
{
"TransType": "חל",
"AccountKey": "?",
"DebitCredit": "1",
"PercenF": 117,
"Main": "1"
},
{
"TransType": "חל",
"AccountKey": "40001",
"DebitCredit": "0",
"PercenF": 100,
"Main": "1"
},
{
"TransType": "חל",
"AccountKey": "60001",
"DebitCredit": "0",
"PercenF": 17,
"Main": "0"
}
]
},
{
"TransTypeCode": "חלפ",
"TransTypeName": "חשבונית פטורה",
"Description": "חשבונית לקוח פטור",
"TFtalPrecent": 100,
"MainDebitAcc": "?",
"MainCreditAcc": "45001",
"moves": [
{
"TransType": "חלפ",
"AccountKey": "?",
"DebitCredit": "1",
"PercenF": 100,
"Main": "1"
},
{
"TransType": "חלפ",
"AccountKey": "45001",
"DebitCredit": "0",
"PercenF": 100,
"Main": "1"
}
]
}
]
}

Trans Types OutputData

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