Skip to main content
Version: 1.0.0

Import Tax Receipts

info

See Field Limits for accepted characters, field-length rules, and error behavior shared by every import endpoint.

Create Tax Receipt​

REST APIdocsApi/createInvRecipt

The following parameters should be included in a data 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
moves
Required
object array sub-transactionsSee table below
Payment
Required
Payment methods - 'cheque', 'cash', 'backDeposit', 'credit' See tables below

JSON Body Example​

{
"data": {
"main_info": {
...
},
"moves": [
{
...
}
],
"Payment": {
"cash": {
...
},
"credit": {
...
},
"bankDeposit": {
...
},
"cheque": {
"chequesArr": [
{
...
},
{
...
}
]
}
}
}
}

FieldName-stock​

info

documentid must be 2, 62 or 87.

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

FieldName-stockTypeDescriptionתיאורDefault
StockIDInteger numberמזהה טבלת stock.
כאשר מעדכנים מסמך, חייבים להעביר מזהה
ID in the stock table.
Required when updating an existing document.
0
DocumentID
Required
Integer numberסוג מסמך
(לפי הגדרות בטבלת DocumentsDef)
Document type
(according to the DocumentDef table)
DocNumberInteger number (max 2,147,483,647)מספר המסמך.
הספרור של מסמכים בעלי ספרור קשיח נקבע בעת ההפקה
Document number.
When the document numeration is unchangeable, the number is determined when the document is issued.
1
issueStockBooleanהפקת המסמךIssue the documenttrue
deleteTempBooleanאם נמצאו שגיאות, האם למחוק את המסמךIf errors found, should the document be deletedfalse
AccountKey
Required
String (max 15)מפתח חשבון (לקוח/ספק)The customer or supplier account key
AccountNameString (max 50)שם חשבוןAccount namenull
AddressString (max 100)כתובתAddressnull
CityString (max 50)עירCitynull
PhoneString (max 30)טלפוןPhonenull
ValueDateDate string –
yyyy-mm-dd
תאריךDatenull
DueDateDate string –
yyyy-mm-dd
תאריך ערךDue datenull
IssueDateDate string –
yyyy-mm-dd
תאריך הפקהIssue datenull
TransTypeString (max 3)קוד סוג תנועהTransaction type codenull
VatFreeTransTypeString (max 3)קוד סוג תנועה לשורות פטורות ממע"מTransaction type code for VAT-free linesnull
DiscountPrcFloat number (max 22 digits)אחוז הנחה כללית במסמך% of general discountnull
Tftal
Required
Float numberסכום כולל של מסמךTotal amount
Additional fields
SumDiscountFloat numberסכום ההנחה במסמךThe discount amountnull
Ref3Integer number (max 2,147,483,647)אסמכתא 3Reference-30
RemarksString (max 250)הערותRemarksnull
DetailsString (max 250)פרטיםdetailsnull
WarehouseInteger number (max 11 digits)מחסןWarehousenull
AgentInteger number (max 11 digits)סוכןSalespersonnull
CostCodeString (max 8)קוד תמחיר קייםExisting cost center codenull
QuantityFloat number (max 14 digits)כמותQuantity0
Osek874Digits only, max 9עוסק מורשהVAT registration numbernull
InterFlagBoolean (0 / 1 / true / false)קליטת נתונים בחנות וירטואליתImport data for virtual store0
EmailString (max 250). Several addresses separated by ";".כתובת דוא"ל E-Mail address null
TransAgentnumberהעברה בין מחסנים: סוכן מקורTransfer between warehouses: Source agent0
TransStorenumberהעברה בין מחסנים: מחסן מקורTransfer between warehouses: Source warehouse1
CurrencyCodestring(5)
values
מטבעcurrencynull
MainRatenumberשער למטבע המסמךcurrency ratenull
EvalCurrencyCodestring(5)
values
מטבע לשערוךThe revaluation currencynull
Ratenumberשער לשערוך בהנהח"ש Rate for revaluationnull
CopiesInteger number, greater than 0מספר עותקים להדפסהNumber of print copiesFrom company definition
PrintStyleInteger numberמזהה פורמט הדפסהPrint format IDFrom company definition
cancelvatbooleanביטול מע"מCancel VAT 0
new_roundnumeric (0-3)שיטת העיגול במסמך:
0 - ללא עיגול
1 - עיגול לעשרות אגורות
2 - עיגול לשקלים
3 - עיגול לעשרות שקלים
Rounding method in document:
0 – No rounding
1 – Round to the nearest tenth of a monetary unit
2 – Round to the nearest whole monetary unit
3 – Round to the nearest ten monetary units
0
change_tnumeric (1-3)1-מחשב סה"כ לפי %הנחה.
2-מחשב סה"כ לפי סכום הנחה.
3-מעדכן % הנחה לפי סה"כ במסך(Tftal).
1-Calculate total by % discount.
2-Calculate total by discount amount.
3-Updates % discount by total on screen(Tftal).
1
sourceTax Float numberסכום ניכוי במקור ע"י לקוחות בש"חWithholding tax amount by customers in NIS0
sourceTaxPrc Float numberאחוז ניכוי במקור ע"י לקוחותWithholding tax percent by customers0
taxSumDlr Float numberסכום ניכוי במקור ע"י לקוחות משוערךEstimated amount of withholding tax by customers0
sourceTaxRate Float numberשער ניכוי במקורWithholding tax rate0
note

Remarks and Details (max 250 each) are free text. A rejected character fails the request with numError 237 and a message naming the field. See Field Limits.

Sub-transactions for each stock ID​

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

Sub-transactionsTypeDescriptionתיאורDefault
StockIDInteger numberמזהה טבלת stockID in the stock table0
MoveIDInteger numberמזהה טבלת stockmovesID in the stockmoves table0
ItemKey
Required
String (max 20)מפתח פריטItem key
ItemNameString (max 100)שם פריטItem namenull
PriceFloat number (max 14 digits)מחירPricenull
Quantity
Required
Float number (max 14 digits)כמותQuantity
TftalFloat numberסה"כ בשורהTotal amount of the linenull
Additional fields
DiscountPrcFloat number (max 22 digits)% הנחה% discountnull
RateFloat number (max 22 digits)שערCurrency ratenull
CurrencyCodeString(max 5)
values
מטבעCurrencynull
CommitionPrcFloat number% עמלה% commissionnull
LineNoForSortingInteger numberמספור שורהLine IDnull
AgentInteger numberסוכןSalespersonnull
WarehouseInteger numberמחסןWarehousenull
DetailsString(max 100)הערותRemarksnull
costcodeString (max 8)קוד תמחיר קייםExisting cost center codenull
Counternull
ReferenceInteger number (max 2,147,483,647)אסמ2Reference-20
packsFloat numberאריזותPacksnull
alternumString (max 25)מספר חליפיAlter numnull
DUEDATEDate string –
yyyy-mm-dd
תאריך ערךDue datenull
unitString(max 5)יחידת מידהUnitnull
ExtraText1String(max 50)הערה נוספת 1Extra text 1null
ExtraText2String(max 50)הערה נוספת 2Extra text 2null
ExtraSum1Float number (max 12 digits)סכום נוסף 1Extra sum 1null
ExtraSum2Float number (max 12 digits)סכום נוסף 2Extra sum 2null
ExtraDate1Date string –
yyyy-mm-dd
תאריך נוסף 1Extra date 1null
ExtraDate2Date string –
yyyy-mm-dd
תאריך נוסף 2Extra date 2null
BaseMoveIdnumberמזהה שורת פריט במסמכי בסיסid base stockmoves0

Payment Methods​

The following parameters should be included in a Payment 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""
customerIdDigits only, max 9, with a valid check digit. Not required: taken from the account.ת.ז לקוחcustomer Id
JSON Example for a cash payment
{
"data": {
"flagwarnings": "0",
"main_info": {
"issueStock": "1",
"deleteTemp": "false",
"DocumentID": "2",
"AccountKey": "30001",
"AccountName": "name acc 111",
"Osek874": "003683208",
"DiscountPrc": "0",
"Tftal":"234"
},
"moves": [
{
"ItemKey": "101",
"ItemName": "name item 11",
"Price": "100",
"Quantity": "2",
"Tftal": "200",
"Details": "my details 11"
}
],
"Payment": {
"cash": {
"suf": "24"
}
}
}
}

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
creditarr
see example below
array of objectsמערך אובייקטי אשראי לתשלום במספר כרטיסי אשראי; לכל פריט אותם שדות כמו בשורות הבאות בטבלה (למשל suf/suF, last4dig, payments וכו׳)When paying with multiple credit cards, include this array of manual credit objects inside credit; each element uses the same parameters as a single manual credit payment in this table.
masofidsmallintמספר מסוףmasof (terminal) idManual/default terminal
suf
Required
float numberסכוםsum
fstarstotalfloat numberסכום כוכבים /מיילים /נקודות0
typestring max(50). Must be an existing payment type.סוג תשלום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 string max(7)מספר אישורconfirmation number
fshovarinteger numberמספר שוברshovar number0
creditfirmstring max(50)חברת אשראיcredit CompanyDefault
last4dig string max(4)4 ספרות אחרונותLast 4 digits
fvalidmonthDigits, max 2תוקף חודשvalid monthCurrent month
fvalidyearDigits, max 2תוקף שנהvalid yearCurrent year
fidstring max(60)ת.ז (באשראי ידני)""
detailsstring max(20)פרטים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
{
"data": {
"flagwarnings": "0",
"main_info": {
"issueStock": "1",
"deleteTemp": "false",
"DocumentID": "2",
"AccountKey": "30001",
"AccountName": "name acc 111",
"Osek874": "003683208",
"DiscountPrc": "0",
"Tftal":"234"
},
"moves": [
{
"ItemKey": "101",
"ItemName": "name item 11",
"Price": "100",
"Quantity": "2",
"Tftal": "200",
"Details": "my details 11"
}
],
"Payment": {
"credit": {
"maunualcreditflag": 1,
"suF": 100.00,
"fvoucher": 3659,
"last4dig": "6598",
"payments": 4,
"firstPayment": "25",
"paymentsSum": "25",
"type": "תשלומים",
"istoken": true
}
}
}
}
JSON Example for payment with multiple credit cards
{
"data": {
"flagwarnings": "0",
"main_info": {
"issueStock": "1",
"deleteTemp": "false",
"DocumentID": "2",
"AccountKey": "30001",
"AccountName": "name acc 111",
"Osek874": "003683208",
"DiscountPrc": "0",
"Tftal": "234"
},
"moves": [
{
"ItemKey": "101",
"ItemName": "name item 11",
"Price": "100",
"Quantity": "2",
"Tftal": "200",
"Details": "my details 11"
}
],
"Payment": {
"credit": {
"maunualcreditflag": 1,
"creditarr": [
{
"maunualcreditflag": 1,
"suf": 50,
"type": "רגיל",
"last4dig": "5678"
},
{
"maunualcreditflag": 1,
"suf": 15,
"type": "רגיל",
"last4dig": "1234"
},
{
"maunualcreditflag": 1,
"suF": 100.00,
"fvoucher": 3659,
"last4dig": "6598",
"payments": 4,
"firstPayment": "25",
"paymentsSum": "25",
"type": "תשלומים"
}
]
}
}
}
}

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 (max 2,147,483,647)מספר שקcheque number
banknumber
Required
string max(2)מספר בנקbank number
branch
Required
Digits only, max 5סניףbranch
bankaccnum
Required
Digits only, 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""
customeridDigits only, max 9, with a valid check digitת.ז. לקוחcustomer id From account definition
JSON Example for a cheque payment
{
"data": {
"flagwarnings": "0",
"main_info": {
"issueStock": "1",
"deleteTemp": "false",
"DocumentID": "2",
"AccountKey": "30001",
"AccountName": "name acc 111",
"Osek874": "003683208",
"DiscountPrc": "0",
"Tftal":"234"
},
"moves": [
{
"ItemKey": "101",
"ItemName": "name item 11",
"Price": "100",
"Quantity": "2",
"Tftal": "200",
"Details": "my details 11"
}
],
"Payment": {
"cheque": {
"pikadonFlag": "true",
"chequesArr": [
{
"CheqNumber": "125545",
"BankNumber": "12",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2021-01-02",
"Suf": "60",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
},
{
"CheqNumber": "127545",
"BankNumber": "17",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2021-01-02",
"Suf": "40",
"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סכוםsum
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
duedateDate string – yyyy-mm-ddתאריך ערךdue dateCurrent date
detailsstring max(20)פרטיםdetails""
JSON Example for a bank deposit payment
{
"data": {
"flagwarnings": "0",
"main_info": {
"issueStock": "1",
"deleteTemp": "false",
"DocumentID": "2",
"AccountKey": "30001",
"AccountName": "name acc 111",
"Osek874": "003683208",
"DiscountPrc": "0",
"Tftal":"234"
},
"moves": [
{
"ItemKey": "101",
"ItemName": "name item 11",
"Price": "100",
"Quantity": "2",
"Tftal": "200",
"Details": "my details 11"
}
],
"Payment": {
"bankDeposit": {
"suf": "10",
"bankAcc": "10001"
}
}
}
}

JSON Example​

{
"data": {
"flagwarnings": "0",
"main_info": {
"issueStock": "1",
"deleteTemp": "false",
"DocumentID": "2",
"AccountKey": "30001",
"AccountName": "name acc 111",
"Osek874": "003683208",
"DiscountPrc": "0",
"Tftal":"234"
},
"moves": [
{
"ItemKey": "101",
"ItemName": "name item 11",
"Price": "100",
"Quantity": "2",
"Tftal": "200",
"Details": "my details 11"
}
],
"Payment": {
"cash": {
"suf": "24"
},
"credit": {
"maunualcreditflag": 1,
"suF": 100.00,
"fvoucher": 3659,
"last4dig": "6598",
"payments": 4,
"firstPayment": "25",
"paymentsSum": "25",
"type": "תשלומים"
},
"bankDeposit": {
"suf": "10",
"bankAcc": "10001"
},
"cheque": {
"pikadonFlag": "true",
"chequesArr": [
{
"CheqNumber": "125545",
"BankNumber": "12",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2021-01-02",
"Suf": "60",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
},
{
"CheqNumber": "127545",
"BankNumber": "17",
"Branch": "5",
"BankAccNum": "785",
"ValueDate": "2021-01-02",
"Suf": "40",
"SufDlr": "3.56",
"CurrencyDlr": "$",
"Details": ""
}
]
}
}
}
}

Receipts OutputData​

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

JSON Exmaple​


{
"statusCode": 200,
"stockid": 22772,
"docUrl": ".../HTM795A_wizdb7n197_22772_934416539.pdf",
"tax": "ok",
"data": [
[
{
"StockID": 22772,
"DocumentID": 62,
"DocNumber": 1154,
"status": 1,
"AccountKey": "30002",
"accountname": "tourist's name",
"Address": "toursit's adrress",
"City": "toursit's city",
"Phone": "toursit's phone",
"batch": 9999,
"ValueDate": "2024-06-20",
"duedate": "2024-06-20",
"paydate": "1990-01-01",
"copies": 2,
"DiscountPrc": 0,
"Tftal": 200,
"vatprc": 0,
"tftalvatfree": 0,
"tftalvat": 200,
"reference": null,
"remarks": null,
"printstyle": 1,
"Details": null,
"Agent": 3,
"currency": "$",
"rate": 3.375,
"mainrate": 3.375,
"issuedate": "2024-06-20"
}
],
[
{
"StockID": 22772,
"moveid": 34763,
"itemkey": "1202",
"itemname": "name item 11",
"Warehouse": 1,
"Agent": 3,
"Details": "my details 11",
"duedate": "2024-06-20",
"status": 1,
"CurrencyCode": "אירו",
"rate": 3.375,
"Price": 100,
"Quantity": 2,
"Tftal": 200,
"DiscountPrc": 0
}
]
]
}