Skip to main content

Import Tax Receipts

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

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מספר המסמך.
הספרור של מסמכים בעלי ספרור קשיח נקבע בעת ההפקה
Document number.
When the document numeration is unchangeable, the number is determined when the document is issued.
1
issueStockBooleanהפקת המסמךIssue the documentfalse
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
DiscountPrcFloat numberאחוז הנחה כללית במסמך% of general discountnull
Tftal
Required
Float numberסכום כולל של מסמךTotal amount
Additional fields
SumDiscountFloat numberסכום ההנחה במסמךThe discount amountnull
Ref3Integer numberאסמכתא 3Reference-30
RemarksString (max 250)הערותRemarksnull
DetailsString (max 250)פרטיםdetailsnull
WarehouseInteger numberמחסןWarehousenull
AgentInteger numberסוכןSalespersonnull
CostCodeString (max 8)קוד תמחיר קייםExisting cost center codenull
QuantityFloat numberכמותQuantity0
Osek874String (max 9)עוסק מורשהVAT registration numbernull
InterFlagInteger numberקליטת נתונים בחנות וירטואליתImport data for virtual store0
EmailString (max 45)כתובת דוא"לE-Mail addressnull
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מספר עותקים להדפסהNumber of print copiesFrom company definition
PrintStyleInteger numberמזהה פורמט הדפסהPrint format IDFrom company definition

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מחירPricenull
Quantity
Required
Float numberכמותQuantity
TftalFloat numberסה"כ בשורהTotal amount of the linenull
Additional fields
DiscountPrcFloat number% הנחה% discountnull
RateFloat numberשערCurrency ratenull
CurrencyCodeString(max 5)
values
מטבעCurrencynull
CommitionPrcFloat number% עמלה% commissionnull
LineNoForSortingInteger numberמספור שורהLine IDnull
AgentInteger numberסוכןSalespersonnull
WarehouseInteger numberמחסןWarehousenull
DetailsString(max 20)הערותRemarksnull
costcodeString (max 8)קוד תמחיר קייםExisting cost center codenull
Counternull
ReferenceInteger numberאסמ2Reference-20
packsFloat numberאריזותPacksnull
alternumString (max 18)מספר חליפי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סכום נוסף 1Extra sum 1null
ExtraSum2Float numberסכום נוסף 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""
customerId
Required
string max(20)ת.ז לקוח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": "87",
"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
masofidsmallintמספר מסוףmasof (terminal) idManual/default terminal
suf
Required
float numberסכוםsum
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
{
"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": "87",
"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
}
}
}
}

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
{
"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": "87",
"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
duedatedatetimeתאריך ערךdue dateCurrent date
detailsstring max(40)פרטים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": "87",
"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": "87",
"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