Skip to main content

Import Receipts

Create Receipt

REST APIdocsApi/createRecipt

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

ParametersDescriptionParameter Options/valueDefault
flagwarningsA flag indicating whether to display warningstrue / falsetrue
main_info
Required
stock-
(object name contains data)
See table below
pay_types
Required
Payment methods - 'cheque', 'cash', 'backDeposit', 'credit'See tables below

JSON Body Example

{
"rows": {
"flagwarnings": true,
"main_info": {
...
},
"pay_types": {
"cheque": {
"chequesArr": [
{
...
}
]
},
"cash": {
...
},
"bankDeposit": {
...
},
"credit": {
...
}
}
}
}

Receipts Data

The following parameters should be included in a main-info object (see example below)

Name-transTypeDescriptionתיאורDefault
stockidInteger numberמזהה טבלת stock.
כאשר מעדכנים מסמך, חייבים להעביר מזהה
ID in the stock table. Required when updating an existing document.0
doccurr
Required
string max (5)
values
מטבעCurrency From company definition
accountkey
Required
string max(15)מפתח חשבוןAccount key
fullnamestring max(50)שם חשבוןAccount fullname From account definition
addressstring max(50)כתובתAddress From account definition
citystring max(50)עירCity From account definition
phonestring max(30)טלפוןPhone From account definition
remarkstring max(250)הערותRemarks""
DocNumberInteger numberמספר המסמך. הספרור של מסמכים בעלי ספרור קשיח נקבע בעת ההפקהDocument number. When the document numeration isunchangeable, the number is determined when the document is issued. From company definition
documentid
Required
Integer numberסוג מסמך
(לפי הגדרות בטבלת DocumentsDef)
Document type (according to the DocumentDef table)
contactstring max(30)איש קשרcontact""
emailstring max(200)כתובת דוא"ל
שידור כתובת מייל אומר שליחת מקור למייל לא משנה מה מוגדר בחשבון (הפקה לא דיגיטלית או שליחה במייל לאחר תצוגה)
E-Mail address
Sending an email address means the source will be sent to it regardless of what is defined the account (non-digital production or sending by email after display)
""
costcodestring max(8)קוד תמחיר קייםExisting cost center code""
issueStockbooleanהפקת המסמךIssue the documentTRUE
CopiesInteger numberמספר עותקים להדפסהNumber of print copiesFrom company definition
PrintStyleInteger numberמזהה פורמט הדפסהPrint format IDFrom company definition

Payment Methods

The following parameters should be included in a pay_types object (see example below)

Cash

The following parameters should be included in a cash object (see example below)

Name-transTypeDescriptionתיאורDefault
suf
Required
Float numberהסכום שהתקבלThe amount received
sufDlrFloat numberסכום משוערךReevaluated amount0
currencyDlr
Required for foreign
currency documents
string max(5)
values
מטבע השיערוךThe revaluation currency From company definition
detailsstring max(20)פרטיםdetails""
customerId
Required
string max(20)ת.ז לקוחcustomer Id
JSON Example for a cash payment
{
"rows": {
"flagwarnings": true,
"main_info": {
"accountKey": "30002",
"documentid": "31",
"issueStock": true
},
"pay_types": {
"cash": {
"suf": "10"
}
}
}
}

Credit

Manual Credit Payment

The following parameters should be included in a credit object (see example below)

Name-transTypeDescriptionתיאורDefault
maunualcreditflagbooleanדגל המציין האם אשראי ידני / רגיל: 1= ידני 0= רגילA flag indicating whether the credit is manual or regular: 1= manual 0=regular0
masofidsmallintמספר מסוףmasof (terminal) idManual/default terminal
suf
Required
float numberסכוםsum0
fstarstotalfloat numberסכום כוכבים /מיילים /נקודות0
typestring max(50)סוג תשלוםType of paymentDefault
paymentssmallintמספר תשלומיםNumber of paymentsDefined by card type
firstpaymentfloat numberתשלום ראשוןFirst PaymentCalculated based on number of payments
paymentssumfloat numberתשלום קבועFixed paymentCalculated based on number of payments
fvoucher
Required
string max(7)מספר אישורconfirmation number
fshovarinteger numberמספר שוברshovar number0
creditfirmstring max(50)חברת אשראיcredit CompanyDefault
last4dig
Required
string max(4)4 ספרות אחרונותLast 4 digits
fvalidmonthstring max(2)תוקף חודשvalid monthCurrent month
fvalidyearstring max(2)תוקף שנהvalid yearCurrent year
fidstring max(60)ת.ז (באשראי ידני)""
detailsstring max(250)פרטיםdetails""
sufdlrfloat numberסכום משוערךReevaluated amount0
currencydlr
Required for foreign currency documents
string max(5)
values
מטבע השערוךThe revaluation currency From company definition
istokenbooleanהפקה ללא חלון תשלוםif true, make a transaction without a payment window
read more about Tokenization
false
JSON Example for a credit payment
{
"rows": {
"flagwarnings": true,
"main_info": {
"accountKey": "30002",
"documentid": "31",
"issueStock": true
},
"pay_types": {
"credit": {
"maunualcreditflag": 1,
"suF": 100,
"fvoucher": 3659,
"last4dig": "6598",
"payments": "3",
"type": "תשלומים",
"firstpayment": 30,
"paymentssum": 35,
"istoken": true
}
}
}
}

Cheque

The following parameters should be included in a cheque object (see example below)

Name-transTypeDescriptionתיאורDefault
pikadonFlagboolזיכוי קופת שיקים לפיקדון במקום קופת שיקים ברירת מחדל Use deposit instead of regular registryfalse
chequesArr
Required
See table belowמערך של שיקיםArray of cheques

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

Name-transTypeDescriptionתיאורDefault
cheqnumber
Required
integer numberמספר שקcheque number
banknumber
Required
string max(2)מספר בנקbank number
branch
Required
string max(3)סניףbranch
bankaccnum
Required
string max(20)מספר חשבון בנקBank account number
valuedatedatetimeתאריךdateתאריך נוכחי
suf
Required
float numberסכוםsum
sufdlrfloat numberסכום משוערךReevaluated amount0
CurrencyDlrstring max(5)
values
מטבעcurrency From account definition
detailsstring max(20)פרטיםsdetails""
customeridstring max(11)ת.ז. לקוחcustomer id From account definition
JSON Example for a cheque payment
{
"rows": {
"flagwarnings": true,
"main_info": {
"accountKey": "30002",
"documentid": "31",
"issueStock": true
},
"pay_types": {
"cheque": {
"chequesArr": [
{
"CheqNumber": "125545",
"BankNumber": "12",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2020-01-02",
"Suf": "60",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
},
{
"CheqNumber": "125547",
"BankNumber": "12",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2020-01-02",
"Suf": "100",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
}
]
}
}
}
}

Bank Deposit

The following parameters should be included in a bankDeposit object (see example below)

Name-transTypeDescriptionתיאורDefault
suf
Required
float numberסכוםsum0
sufdlrfloat numberסכום משוערךReevaluated amount0
currencydlr
Required for foreign
currency documents
string max(5)
values
מטבע השערוךThe revaluation currency From account definition
bankacc
Required
string max(15)מספר חשבון בנקBank accoun
duedatedatetimeתאריך ערךdue dateCurrent date
detailsstring max(40)פרטיםdetails""
JSON Example for a bank deposit payment
{
"rows": {
"flagwarnings": true,
"main_info": {
"accountKey": "30002",
"documentid": "31",
"issueStock": true
},
"pay_types": {
"bankDeposit": {
"suf": "14",
"bankAcc": "10002"
}
}
}
}

JSON Example

{
"rows": {
"flagwarnings": true,
"main_info": {
"accountKey": "30002",
"documentid": "31",
"issueStock": true
},
"pay_types": {
"cheque": {
"chequesArr": [
{
"CheqNumber": "125545",
"BankNumber": "12",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2020-01-02",
"Suf": "60",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
},
{
"CheqNumber": "125547",
"BankNumber": "12",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2020-01-02",
"Suf": "100",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
},
{
"CheqNumber": "127545",
"BankNumber": "17",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2020-01-02",
"Suf": "40",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
}
]
},
"cash": {
"suf": "10"
},
"bankDeposit": {
"suf": "14",
"bankAcc": "10002"
},
"credit": {
"maunualcreditflag": 1,
"suF": 100,
"fvoucher": 3659,
"last4dig": "6598",
"payments": "3",
"type": "תשלומים",
"firstpayment": 30,
"paymentssum": 35
}
}
}
}

Receipts OutputData

NameOptions
stockidNew stockid
statusCode200 (OK) / 500 (error)
statusFor errors only: “error”
messageError Message / "הקבלה עודכנה למאגר זמני"
docUrldocument url