==========================================================================================- Token ==========================================================================================- https://app.caspitweb.biz/api/v1/token/?user=demo&pwd=demodemo&osekmorshe=123456789 800c73ea-0264-4bb8-9d94-6d44e951eff8 ==========================================================================================- Contacts ==========================================================================================- GET https://app.caspitweb.biz/api/v1/Contacts?page=0&token=[TOKEN] 0 15835.0000 15835.0000 אריה מזרחי 189398ed-d69a-4404-b4cf-716a938ea740 1 1 234567777 1 ביגוד מקצועי 3040 ... ... ... ... ... ... 7 1 ------------------------------------------------------------------------------------------ Fetch a single contact https://app.caspitweb.biz/api/v1/Contacts/[ContactId]?token=[TOKEN] https://app.caspitweb.biz/api/v1/Contacts/?osekmorshe=234567777&d=1&token=[TOKEN] <== NOTE THE d=1 PARAMETER 14335.0000 14335.0000 אריה מזרחי 1 189398ed-d69a-4404-b4cf-716a938ea740 1 234567777 1 ביגוד מקצועי 3040 ------------------------------------------------------------------------------------------ Create a contact POST https://app.caspitweb.biz/api/v1/contacts/?token=7f3cb728-9c15-4ec0-b727-213030526c6e HTTP/1.1 Accept: application/xml {"ContactId":"3899","ContactType":null,"Number":null,"BusinessName":"APC Inc.","OsekMorshe":null,"Name":null,"Address1":"45 West St.","Address2":"Suite 6276","City":"Lousiville, KT","PostalCode":"72789","Country":null,"Phone":null,"Mobile":null,"Fax":null,"Email":null,"TrxCodeNumber":null,"TrxCode":null,"OpenBalance":null,"Balance":null,"BalanceInvoiceIska":null,"PriceListNum":null,"Comments1":"","Comments2":"","Comments3":"","InvoiceComment":"","BankAcctNumber":"","BankAcctBranch":"","BankAcctBankId":null,"ChargeVAT":null,"AffiliateId":null} The expected response is 201 Created + A url to the contact in the Location header + The contact in message details in the message body: HTTP/1.1 201 Created Pragma: no-cache X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXGNvbnRhY3RzXA==?= Cache-Control: no-cache Date: Tue, 28 Oct 2014 09:00:02 GMT Location: https://app.caspitweb.biz/api/v1/Contacts/3899 Set-Cookie: ASP.NET_SessionId=l2d1gtzsuj30xeglffkadnkb; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET 45 West St.Suite 627600APC Inc.Lousiville, KT3899039727891 ------------------------------------------------------------------------------------------ Update a contact - Note if the contact does not exist Caspit will crteate a new contact. The response is always 200 (even if the contact was created and you would expect a 201) PUT https://app.caspitweb.buz/api/v1/contacts/3899?token=7f3cb728-9c15-4ec0-b727-213030526c6e HTTP/1.1 Accept: application/xml {"ContactId":"3899","ContactType":null,"Number":null,"BusinessName":"APC Inc.","OsekMorshe":null,"Name":null,"Address1":"45 West St.","Address2":"Suite 6276","City":"Lousiville, KT","PostalCode":"72789","Country":null,"Phone":null,"Mobile":null,"Fax":null,"Email":null,"TrxCodeNumber":null,"TrxCode":null,"OpenBalance":null,"Balance":null,"BalanceInvoiceIska":null,"PriceListNum":null,"Comments1":"This is a \"comment\"","Comments2":"","Comments3":"","InvoiceComment":"","BankAcctNumber":"","BankAcctBranch":"","BankAcctBankId":null,"ChargeVAT":null,"AffiliateId":null} The expected response is 200 OK: HTTP/1.1 200 OK Pragma: no-cache X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXGNvbnRhY3RzXDM4OTk=?= Cache-Control: no-cache Date: Tue, 28 Oct 2014 09:02:55 GMT Set-Cookie: ASP.NET_SessionId=trv1wjw0rxdhr2t5akni0upc; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET ------------------------------------------------------------------------------------------ Delete a contact DELETE /api/v1/Contacts/20899?token=66233d0a-fe24-4360-aeec-a8be03c3c29a The expected response is 200 OK ------------------------------------------------------------------------------------------ Contact => Documents https://app.caspitweb.biz/api/v1/Contacts/[ContactId]/Documents?d=1&token=[TOKEN] <== NOTE THE d=1 PARAMETER אילנות השרון 6 תמיר בנין בית מלאי da851e0c-da85-481e-a4a9-5d3433ef4aa3 999999999 2013-12-20T00:00:00
443c7c10-906b-45a2-b901-57e43a63afbb true
מעיל מפישתן ארוג וסרוג
3000.000000000000 1 d8d39559-7a5f-4444-9719-b4110f0ac37c מעיל פישתן 1.0000 1.0000 0.0000 3000.0000 540.0000 18.00
2013-12-20T00:00:00 01/10000 0.0000 0.00000000 0.0000 0.0000 1.0000 false AAAAAAAfAc4= 2 0.0000 0.00000000 3540.0000 3000.0000 3000.0000 0.0000 0.0000 0.00000000 הכנסות/מכירות 3 1 540.0000 18.00 ... ... ... ... ... ... ... ==========================================================================================- Expenses ==========================================================================================- GET https://app.caspitweb.biz/api/v1/Contacts/[ContactId]/Expenses?d=1&token=[TOKEN] <== NOTE THE d=1 PARAMETER GET https://app.caspitweb.biz/api/v1/Expenses?page=0&startDate=2010-12-1&token=[TOKEN] GET https://app.caspitweb.biz/api/v1/Expenses?page=0&endDate=2014-12-1&token=[TOKEN] 0 https://app.caspitweb.biz/api/v1/Expenses?page=1&token=7721bbf6-98fa-4ca3-9f82-1dd95f4e7bef&startDate=1900-01-01&endDate=2100-12-31 2013-12-19T00:00:00
2 234567777 2013-12-16T00:00:00 500.0000 0 189398ed-d69a-4404-b4cf-716a938ea740 אריה מזרחי 500.0000 423.7300 ביגוד מקצועי 3040 76.2700 18.0000 ... 55 2 ==========================================================================================- Documents ==========================================================================================- GET https://app.caspitweb.biz/api/v1/Documents?token=[TOKEN] GET https://app.caspitweb.biz/api/v1/Documents?token=[TOKEN]&trxTypeId=1 GET https://app.caspitweb.biz/api/v1/Documents?token=[TOKEN]&CustomerId=da851e0c-da85-481e-a4a9-5d3433ef4aa3 GET http://localhost:50005//api/v1/documents/?token=477c3c95-15f4-4372-a970-f87678eba25e&trxTypeId=1&onlyOpenDocuments=true GET http://localhost:50005//api/v1/documents/?token=477c3c95-15f4-4372-a970-f87678eba25e&trxTypeId=1&Number=01/10216 0 אילנות השרון 6 תמיר בנין בית מלאי da851e0c-da85-481e-a4a9-5d3433ef4aa3 999999999 2013-12-20T00:00:00
7f8e7e04-61a4-44c1-9522-3aba811de2e2 true
מעיל מפישתן ארוג וסרוג
3000.000000000000 1 d8d39559-7a5f-4444-9719-b4110f0ac37c מעיל פישתן 1.0000 1.0000 0.0000 3000.0000 540.0000 18.00
true
4500.000000000000 2 635ffa33-e771-4a6f-9331-009bf2f84c4b שטיח פרסי 1.0000 1.0000 500.0000 5000.0000 810.0000 18.00
2013-12-20T00:00:00 01/10001 0.0000 0.00000000 0.0000 0.0000 1.0000 false AAAAAAAfAdc= 0 0.0000 0.00000000 8850.0000 7500.0000 7500.0000 0.0000 0.0000 0.00000000 הכנסות/מכירות 3 1 1350.0000 18.00 ... ... ... ... ... ... ... ... ... ... 12 1 ------------------------------------------------------------------------------------------ Fetch a single Document GET https://app.caspitweb.biz/api/v1/Documents?token=[TOKEN]&Number=01/100302 GER https://app.caspitweb.biz/api/v1/Documents/[DocumentId]?token=[TOKEN] This XML file does not appear to have any style information associated with it. The document tree is shown below. אילנות השרון 6 תמיר בנין בית מלאי da851e0c-da85-481e-a4a9-5d3433ef4aa3 999999999 2013-12-20T00:00:00
443c7c10-906b-45a2-b901-57e43a63afbb true
מעיל מפישתן ארוג וסרוג
3000.000000000000 1 d8d39559-7a5f-4444-9719-b4110f0ac37c מעיל פישתן 1.0000 1.0000 0.0000 3000.0000 540.0000 0.00
2013-12-20T00:00:00 01/10000 0.0000 0.00000000 0.0000 0.0000 1.0000 false AAAAAAAfAc4= 2 0.0000 0.00000000 3540.0000 3000.0000 3000.0000 0.0000 0.0000 0.00000000 הכנסות/מכירות 3 1 540.0000 18.00 ------------------------------------------------------------------------------------------ Fetch only "open" documents = מסמכים שיש להם יתרה לשלום -- בדוגמה הבאה נשלפות רק חשבוניות מס GET http://localhost:50005//api/v1/documents/?token=477c3c95-15f4-4372-a970-f87678eba25e&trxTypeId=1&onlyOpenDocuments=true {"CurrentPage":0,"TotalCount":4,"TotalPages":1.0,"PrevPageUrl":"","NextPageUrl":"", "Results":[ {"DocumentId":"חשבונית_10216","DocumentNumberBranch":1,"TrxTypeId":1,"Number":"01/10216","Date":"2016-05-18T00:00:00", "CustomerId":"b761b681-9c12-4d83-9825-dc89066a1531","CustomerBusinessName":"תמך - מרכז אמירקאי ישראלי לקידום הכלכלה והתעסוקה בישראל - ע\"ר", "CustomerOsekMorshe":null,"CustomerContactName":"","CustomerAddress1":null,"CustomerAddress2":null,"CustomerCity":null,"CustomerPostalCode":null, "CustomerEmail":null,"MobilePhone":null,"Details":null,"Comments":null,"TotalLinesChargeVAT":500.0000,"Rebate":0.0000,"RebatePercent":0.00000, "RountTotal":false,"RebateRounding":0.0000,"TotalBeforeVAT":500.0000,"TotalBeforeVATChargeVAT":500.0000,"TotalNoChargeVat":0.0000,"Vat":85.0000, "Total":585.0000,"EffectiveTotal":585.0000,"VatRate":17.00,"Payment":0.0000,"TaxDeduction":0.0000,"TotalPayment":0.0000,"ReceiptCurrencySymbol":"₪", "ReceiptRate":1.0000,"TaxDeductionNIS":0.00000000,"PaymentNIS":0.00000000,"TotalPaymentNIS":0.00000000, "DocumentLines":[{"Number":1,"ProductId":null,"ProductName":null,"Details":"הרצאה עצמאיות ניהול כלכלי","UnitPrice":500.0000,"Qty":1.0000,"CurrencySymbol":"₪", "Rate":1.0000,"Rebate":0.0000,"ExtendedPrice":500.000000000000,"ChargeVAT":true,"VATRate":17.00,"VAT":85.0000}],"ReceiptLines":[], "TrxCode":"הכנסות/מכירות","TrxCodeNumber":3,"Status":2,"DueDate":"2016-07-31T00:00:00","RowVersion":"AAAAAACyQNE=", "LinkToPdf":"http://localhost:50005/api/v1/Pdf/%D7%97%D7%A9%D7%91%D7%95%D7%A0%D7%99%D7%AA_10216?token=_REPLACE_WITH_YOUR_TOKEN_","ViewUrl":null, "PaymentUrl":null}, ... }]} ------------------------------------------------------------------------------------------ Create a document Response: HTTP/1.1 201 Created Pragma: no-cache X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXGRvY3VtZW50c1xhNThhZWJlOC1lYjRmLTRkYjctOTlkMC02ZDljNThmNTQyMjk=?= Cache-Control: no-cache Date: Sun, 22 Dec 2013 20:45:53 GMT Location: https://app.caspitweb.biz/api/v1/documents/a58aebe8-eb4f-4db7-99d0-6d9c58f54229 Set-Cookie: ASP.NET_SessionId=zzgf2wntrgsxypmxwb5spwwi; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET {"DocumentLines":[{"Number":1,"ProductId":"d8d39559-7a5f-4444-9719-b4110f0ac37c","ProductName":"מעיל פישתן","Details":" מעיל מפישתן ארוג וסרוג","UnitPrice":3000.00,"Qty":1.00, "CurrencySymbol":"₪","Rate":1.00,"Rebate":0.00,"ExtendedPrice":3000.000000,"ChargeVAT":true,"VATRate":18.00,"VAT":540.00000000}, {"Number":2,"ProductId":"635ffa33-e771-4a6f-9331-009bf2f84c4b","ProductName":"שטיח פרסי","Details":"","UnitPrice":6000.00,"Qty":1.00,"CurrencySymbol":"₪","Rate":1.00, "Rebate":500.00,"ExtendedPrice":5500.000000,"ChargeVAT":true,"VATRate":18.00,"VAT":990.00000000}],"DocumentId":"a58aebe8-eb4f-4db7-99d0-6d9c58f54229","TrxTypeId":1, "Number":"98/10001","Date":"2013-12-20T00:00:00","CustomerId":"da851e0c-da85-481e-a4a9-5d3433ef4aa3","CustomerBusinessName":"תמיר בנין","CustomerOsekMorshe":"999999999", "CustomerContactName":"","CustomerAddress1":"אילנות השרון 6","CustomerAddress2":"","CustomerCity":"בית מלאי","CustomerPostalCode":"","CustomerEmail":null,"Details":"", "Comments":"","TotalLinesChargeVAT":8500.000000,"Rebate":0.00,"RountTotal":false,"RebateRounding":0.00,"TotalBeforeVATChargeVAT":8500.000000,"TotalNoChargeVat":0.00, "Vat":1530.00000000,"Total":10030.00000000,"VatRate":18.00,"Payment":0.0,"TaxDeduction":0.00,"TotalPayment":0.00,"ReceiptCurrencySymbol":"₪","ReceiptRate":1.00, "TaxDeductionNIS":0.0000,"PaymentNIS":0.00,"TotalPaymentNIS":0.0000,"ReceiptLines":[],"TrxCode":"","TrxCodeNumber":3,"Status":0,"DueDate":"2013-12-20T00:00:00", "RowVersion":""} ------------------------------------------------------------------------------------------ Create a Receipt - TrxTypeId = 2 (קבלה), TrxCodeNumber = 2 (קבלות) POST https://app.caspitweb.biz/api/v1/documents/R-3009?token=0df968d5-8786-415e-bab7-de840dc4d2c3 HTTP/1.1 Content-Type: application/json; charset=utf-8; Content-Disposition: Accept: application/xml {"DocumentLines":[],"DocumentId":"R-3009","TrxTypeId":2,"Number":null,"Date":"2014-12-22T00:00:00","CustomerId":"","CustomerBusinessName":"בית יציקה הלחמי", "CustomerOsekMorshe":"829076542","CustomerContactName":"יחיאל הלחמי","CustomerAddress1":"","CustomerAddress2":"","CustomerCity":"אשקלון","CustomerPostalCode":"", "CustomerEmail":null,"Details":"","Comments":"","TotalLinesChargeVAT":0.0,"Rebate":0.0,"RountTotal":false,"RebateRounding":null,"TotalBeforeVATChargeVAT":null, "TotalNoChargeVat":null,"Vat":0.0,"Total":null,"VatRate":null,"Payment":null,"TaxDeduction":500.0,"TotalPayment":null,"ReceiptCurrencySymbol":"","ReceiptRate":5.40, "TaxDeductionNIS":2700.00,"PaymentNIS":null,"TotalPaymentNIS":null,"ReceiptLines":[{"Number":1,"PaymentTypeId":1,"AccountNumber":"","BranchOrValidTo":"","BankId":null, "CheckNumber":"","PaymentDate":null,"Payment":1200.0},{"Number":2,"PaymentTypeId":2,"AccountNumber":"1111111","BranchOrValidTo":"22","BankId":11,"CheckNumber":"30001", "PaymentDate":"2014-12-24T00:00:00","Payment":1000.0}],"TrxCode":null,"TrxCodeNumber":2,"Status":null,"DueDate":null,"RowVersion":""} ------------------------------------------------------------------------------------------ Create a Invoice/Receipt - TrxTypeId = 7 (חש/קבלה), TrxCodeNumber = 2 (קבלות) POST https://app.caspitweb.biz/api/v1/documents/I-4049?token=09bdd479-f512-4110-8ac1-889f01068513 HTTP/1.1 Content-Type: application/json; charset=utf-8; Content-Disposition: Accept: application/xml {"DocumentLines":[{"Number":1,"ProductId":"ca74f15a-525e-403a-a67d-46b05fb210d2","ProductName":null,"Details":"","UnitPrice":12455.932,"Qty":1.0,"CurrencySymbol":"₪", "Rate":1.0,"Rebate":100.0,"ExtendedPrice":12355.932,"ChargeVAT":true,"VATRate":null,"VAT":null},null,null],"DocumentId":"I-4049","TrxTypeId":7,"Number":null,"Date":"2014-12-22T00:00:00", "CustomerId":"","CustomerBusinessName":"בית יציקה הלחמי","CustomerOsekMorshe":"829076542","CustomerContactName":"יחיאל הלחמי","CustomerAddress1":"","CustomerAddress2":"", "CustomerCity":"אשקלון","CustomerPostalCode":"","CustomerEmail":null,"Details":"","Comments":"","TotalLinesChargeVAT":0.0,"Rebate":0.00,"RountTotal":false,"RebateRounding":null, "TotalBeforeVATChargeVAT":null,"TotalNoChargeVat":null,"Vat":0.0,"Total":null,"VatRate":null,"Payment":null,"TaxDeduction":500.00,"TotalPayment":null,"ReceiptCurrencySymbol":"", "ReceiptRate":5.40,"TaxDeductionNIS":2700.0000,"PaymentNIS":null,"TotalPaymentNIS":null,"ReceiptLines":[{"Number":1,"PaymentTypeId":1,"AccountNumber":"", "BranchOrValidTo":"","BankId":null,"CheckNumber":"","PaymentDate":null,"Payment":1200.00},{"Number":2,"PaymentTypeId":2,"AccountNumber":"1111111", "BranchOrValidTo":"22","BankId":null,"CheckNumber":"30001","PaymentDate":"2014-12-24T00:00:00","Payment":1000.00}],"TrxCode":null,"TrxCodeNumber":2, "Status":null,"DueDate":null,"RowVersion":""} ------------------------------------------------------------------------------------------ Send via email an Invoice/Receipt - TrxTypeId = 7 (חש/קבלה), Number = "98/200002" EMAIL https://app.caspitweb.biz/api/v1/documents/?token=ae17acfc-76f9-44c6-b9d9-07e11edb35c1&DocumentNumber=98/200002&trxTypeId=7 HTTP/1.1 Content-Type: application/json; charset=utf-8; Content-Disposition: Accept: application/xml {"Subject":"מסמך לבדיקה","Body":"שלום ארי:\r\n\r\nהמסמך מוכן.\r\nנא אשר למשלוח.\r\n\r\nיעקב\r\n","To":"tcc_12@walla.com","CC":null,"BCC":null} ==========================================================================================- Currencies https://app.caspitweb.biz/api/v1/Currencies/?token=[TOKEN] 0 AUD AUD 3.3656 A$ EUR Euro 4.7667 USD USD 3.5320 $ NIS ש"ח 1.0000 4 1 ==========================================================================================- Products Get all the products https://app.caspitweb.biz/api/v1/Products/?token=4c6f4ec2-278e-4cda-b73f-dccfae282b5e {"CurrentPage":0,"TotalCount":2,"TotalPages":1.0,"PrevPageUrl":"","NextPageUrl":"","Results":[{"ProductId":"d8d39559-7a5f-4444-9719-b4110f0ac37c","Name":"מעיל פישתן","Description":"מעיל מפישתן ארוג וסרוג","NameEnglish":null,"DescriptionEnglish":null,"SerialNumber":null,"CatalogNumber":null,"SupplierCatalogNumber1":null,"SupplierCatalogNumber2":null,"SupplierCatalogNumber3":null,"Status":true,"Warranty":null,"PurchasePrice":0.0000,"SalePrice1":1.0000,"SalePrice2":null,"SalePrice3":null,"SalePrice4":null,"ChargeVat":false,"CurrencySymbol":"₪","QtyInStock":-2.00,"MinQtyInStock":0.0000,"MaxQtyInStock":0.0000,"UnitName":null,"Class":""},{"ProductId":"635ffa33-e771-4a6f-9331-009bf2f84c4b","Name":"שטיח פרסי","Description":"","NameEnglish":null,"DescriptionEnglish":null,"SerialNumber":null,"CatalogNumber":null,"SupplierCatalogNumber1":null,"SupplierCatalogNumber2":null,"SupplierCatalogNumber3":null,"Status":true,"Warranty":null,"PurchasePrice":0.0000,"SalePrice1":5000.0000,"SalePrice2":null,"SalePrice3":null,"SalePrice4":null,"ChargeVat":false,"CurrencySymbol":"₪","QtyInStock":-1.00,"MinQtyInStock":0.0000,"MaxQtyInStock":0.0000,"UnitName":null,"Class":""}]} 0 false מעיל מפישתן ארוג וסרוג 0.0000 0.0000 מעיל פישתן d8d39559-7a5f-4444-9719-b4110f0ac37c 0.0000 -2.00 1.0000 true ... 2 1 ---------------------------------------------------------------------------------------------- Get a single product by its product id https://app.caspitweb.biz/api/v1/Products/d8d39559-7a5f-4444-9719-b4110f0ac37c?token=4c6f4ec2-278e-4cda-b73f-dccfae282b5e Response - json {"ProductId":"d8d39559-7a5f-4444-9719-b4110f0ac37c","Name":"מעיל פישתן","Description":"מעיל מפישתן ארוג וסרוג","NameEnglish":null,"DescriptionEnglish":null,"SerialNumber":null,"CatalogNumber":null,"SupplierCatalogNumber1":null,"SupplierCatalogNumber2":null,"SupplierCatalogNumber3":null,"Status":true,"Warranty":null,"PurchasePrice":0.0000,"SalePrice1":1.0000,"SalePrice2":null,"SalePrice3":null,"SalePrice4":null,"ChargeVat":false,"CurrencySymbol":"₪","QtyInStock":-2.00,"MinQtyInStock":0.0000,"MaxQtyInStock":0.0000,"UnitName":null,"Class":""} Response - XML false מעיל מפישתן ארוג וסרוג 0.0000 0.0000 מעיל פישתן d8d39559-7a5f-4444-9719-b4110f0ac37c 0.0000 -2.00 1.0000 true ------------------------------------------------------------------------------------------ Get products by catalog number - Caspit performs LIKE '%XXX%' https://app.caspitweb.buz/api/v1/products/?token=965b3ed2-6510-47c1-bff3-3245ea77e680&catalognumber=63678 0 63678 falseתנורים תנורים מקצועיים פרטלי אונופרי fratelli onofri REGENCY 100 תנור אפיה מפוצל משולב מפואר 100 ס"מ בעיצוב כפרי FRATELLI ONOFRI בגימורים ובעיצוב מיוחד תא האפייה הגדול מולטי סיסטם MULTY FUNCTION אפיה רגילה, טורבו, טורבו+גריל, גריל תא האפייה הקטן אפיה רגילה+ גריל+גריל מסתובבfalse 0.00002.0000Fratelli Onofri תנור משולב5000.000069.0025000.0000 2000.00002000.00002000.0000true כולל הדרכה והפעלה ראשונה בבית הלקוח ע"י "מילטון אלקטרוניקה" 63678-העתק falseתנורים תנורים מקצועיים פרטלי אונופרי fratelli onofri REGENCY 100 תנור אפיה מפוצל משולב מפואר 100 ס"מ בעיצוב כפרי FRATELLI ONOFRI בגימורים ובעיצוב מיוחד תא האפייה הגדול מולטי סיסטם MULTY FUNCTION אפיה רגילה, טורבו, טורבו+גריל, גריל תא האפייה הקטן אפיה רגילה+ גריל+גריל מסתובבfalse0.00002.0000Fratelli Onofri תנור משולב-העתק 9c89d6cc-bd7b-43cc-b847-c6723a8534425000.0000-68.001000.00002000.00003000.00004000.0000trueכולל הדרכה והפעלה ראשונה בבית הלקוח ע"י "מילטון אלקטרוניקה" 21 ------------------------------------------------------------------------------------------ Create a new product - missing values Request: POST /api/v1/Products/?token=dd7fb53b-7131-4e85-beca-84b80c9d174b HTTP/1.1 {"ProductId":"","Name":"","Description":"","NameEnglish":null,"DescriptionEnglish":null,"SerialNumber":null,"CatalogNumber":"","SupplierCatalogNumber1":null,"SupplierCatalogNumber2":null,"SupplierCatalogNumber3":null,"Status":false,"Warranty":null,"PurchasePrice":null,"SalePrice1":null,"SalePrice2":null,"SalePrice3":null,"SalePrice4":null,"ChargeVat":null,"CurrencySymbol":"","QtyInStock":null,"MinQtyInStock":null,"MaxQtyInStock":null,"UnitName":null,"Class":""} Response: HTTP/1.1 400 Bad data Pragma: no-cache X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXHByb2R1Y3RzXA==?= Cache-Control: no-cache Date: Sun, 22 Dec 2013 13:38:14 GMT Set-Cookie: ASP.NET_SessionId=5ssbfskz4jsnbcbs2t3m42vd; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET The ProductId field is required. ------------------------------------------------------------------------------------------ Delete a product DELETE /api/v1/Products/d8d39559-7a5f-4444-9719-b4110f0ac37c?token=66233d0a-fe24-4360-aeec-a8be03c3c29a ------------------------------------------------------------------------------------------ Update an existing product - Success Request: PUT /api/v1/documents/443c7c10-906b-45a2-b901-57e43a63afbb?token=f4b9f742-97fa-4bad-92ae-73e69a754eb8 HTTP/1.1 {"DocumentLines":[{"Number":1,"ProductId":"","ProductName":null,"Details":" מעיל מפישתן ארוג וסרוג","UnitPrice":3000.00,"Qty":1.00,"CurrencySymbol":"₪","Rate":1.00,"Rebate":0.00,"ExtendedPrice":3000.000000,"ChargeVAT":true,"VATRate":null,"VAT":null},null,null],"DocumentId":"443c7c10-906b-45a2-b901-57e43a63afbb","TrxTypeId":1,"Number":null,"Date":"2013-12-20T00:00:00","CustomerId":"da851e0c-da85-481e-a4a9-5d3433ef4aa3","CustomerBusinessName":"תמיר בנין","CustomerOsekMorshe":"999999999","CustomerContactName":"","CustomerAddress1":"אילנות השרון 6","CustomerAddress2":"","CustomerCity":"בית מלאי","CustomerPostalCode":"","CustomerEmail":null,"Details":"","Comments":"בדיקה 22-12-2013","TotalLinesChargeVAT":0.0,"Rebate":0.00,"RountTotal":false,"RebateRounding":null,"TotalBeforeVATChargeVAT":null,"TotalNoChargeVat":null,"Vat":0.0,"Total":null,"VatRate":null,"Payment":null,"TaxDeduction":0.00,"TotalPayment":null,"ReceiptCurrencySymbol":"","ReceiptRate":1.00,"TaxDeductionNIS":0.0000,"PaymentNIS":null,"TotalPaymentNIS":null,"ReceiptLines":[null,null],"TrxCode":null,"TrxCodeNumber":3,"Status":null,"DueDate":"2013-12-20T00:00:00","RowVersion":"AAAAAAAfAc4="} Response: HTTP/1.1 204 No Content Pragma: no-cache X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXGRvY3VtZW50c1wyMTEyMTMwMTMzdg==?= Cache-Control: no-cache Date: Sun, 22 Dec 2013 20:17:25 GMT Set-Cookie: ASP.NET_SessionId=bpsl1ud14xsdczcvahc4akyj; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET ------------------------------------------------------------------------------------------ Update an existing product - The document can not be updated Request: PUT /api/v1/documents/443c7c10-906b-45a2-b901-57e43a63afbb?token=f4b9f742-97fa-4bad-92ae-73e69a754eb8 HTTP/1.1 {"DocumentLines":[{"Number":1,"ProductId":"","ProductName":null,"Details":" מעיל מפישתן ארוג וסרוג","UnitPrice":3000.00,"Qty":1.00,"CurrencySymbol":"₪","Rate":1.00,"Rebate":0.00,"ExtendedPrice":3000.000000,"ChargeVAT":true,"VATRate":null,"VAT":null},null,null],"DocumentId":"443c7c10-906b-45a2-b901-57e43a63afbb","TrxTypeId":1,"Number":null,"Date":"2013-12-20T00:00:00","CustomerId":"da851e0c-da85-481e-a4a9-5d3433ef4aa3","CustomerBusinessName":"תמיר בנין","CustomerOsekMorshe":"999999999","CustomerContactName":"","CustomerAddress1":"אילנות השרון 6","CustomerAddress2":"","CustomerCity":"בית מלאי","CustomerPostalCode":"","CustomerEmail":null,"Details":"","Comments":"בדיקה 22-12-2013","TotalLinesChargeVAT":0.0,"Rebate":0.00,"RountTotal":false,"RebateRounding":null,"TotalBeforeVATChargeVAT":null,"TotalNoChargeVat":null,"Vat":0.0,"Total":null,"VatRate":null,"Payment":null,"TaxDeduction":0.00,"TotalPayment":null,"ReceiptCurrencySymbol":"","ReceiptRate":1.00,"TaxDeductionNIS":0.0000,"PaymentNIS":null,"TotalPaymentNIS":null,"ReceiptLines":[null,null],"TrxCode":null,"TrxCodeNumber":3,"Status":null,"DueDate":"2013-12-20T00:00:00","RowVersion":"AAAAAAAfAc4="} Response: HTTP/1.1 500 Caspit Exception Pragma: no-cache X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXGRvY3VtZW50c1w0NDNjN2MxMC05MDZiLTQ1YTItYjkwMS01N2U0M2E2M2FmYmI=?= Cache-Control: no-cache Date: Sun, 22 Dec 2013 17:27:19 GMT Set-Cookie: ASP.NET_SessionId=fb1tasdge4jctrvvxnfsd0dj; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET לא ניתן לעדכן את מסמך 443c7c10-906b-45a2-b901-57e43a63afbb משום שהסטטוס שלו: 'Printed' שונה מ-'חדש'. ========================================================================================== Using an invalid token https://app.caspitweb.biz/api/v1/Products/?token=7721bbf6-98fa-4ca3-9f82-1dd95f4e7bef HTTP/1.1 401 Invalid token Cache-Control: no-cache Pragma: no-cache Content-Length: 52 Content-Type: text/plain; charset=utf-8 Expires: -1 Server: Microsoft-IIS/8.0 WWW-Authenticate: CaspitToken X-AspNet-Version: 4.0.30319 X-SourceFiles: =?UTF-8?B?RDpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJUaWxlc1xDYXNwaXRXZWJUaWxlcy5XZWJcYXBpXHYxXFByb2R1Y3RzXA==?= X-Powered-By: ASP.NET Date: Sun, 22 Dec 2013 11:38:55 GMT Invalid token = 7721bbf6-98fa-4ca3-9f82-1dd95f4e7bef ========================================================================================== Get Vat -- all the rates https://app.caspitweb.buz/api/v1/vatrate/?token=58e87cf0-61b4-49e3-9549-e6f5d7632a54 01900-01-01T00:00:000.00 1976-07-01T00:00:008.00 1977-11-01T00:00:0012.00 1982-08-01T00:00:0015.00 1985-06-01T00:00:0016.00 1985-10-01T00:00:0015.00 1990-03-01T00:00:0016.00 1991-01-01T00:00:0018.00 1993-01-01T00:00:0017.00 2002-06-05T00:00:0018.00 2004-03-01T00:00:0017.00 2005-09-01T00:00:0016.50 2006-07-01T00:00:0015.50 2009-07-01T00:00:0016.50 2010-01-01T00:00:0016.00 2012-09-01T00:00:0017.00 2013-06-02T00:00:0018.00 17 1 JSON Response {"CurrentPage":0,"TotalCount":18,"TotalPages":1.0,"PrevPageUrl":null,"NextPageUrl":null,"Results":[{"StartDate":"1900-01-01T00:00:00","VatRatePercent":0.00},{"StartDate":"1976-07-01T00:00:00","VatRatePercent":8.00},{"StartDate":"1977-11-01T00:00:00","VatRatePercent":12.00},{"StartDate":"1982-08-01T00:00:00","VatRatePercent":15.00},{"StartDate":"1985-06-01T00:00:00","VatRatePercent":16.00},{"StartDate":"1985-10-01T00:00:00","VatRatePercent":15.00},{"StartDate":"1990-03-01T00:00:00","VatRatePercent":16.00},{"StartDate":"1991-01-01T00:00:00","VatRatePercent":18.00},{"StartDate":"1993-01-01T00:00:00","VatRatePercent":17.00},{"StartDate":"2002-06-05T00:00:00","VatRatePercent":18.00},{"StartDate":"2004-03-01T00:00:00","VatRatePercent":17.00},{"StartDate":"2005-09-01T00:00:00","VatRatePercent":16.50},{"StartDate":"2006-07-01T00:00:00","VatRatePercent":15.50},{"StartDate":"2009-07-01T00:00:00","VatRatePercent":16.50},{"StartDate":"2010-01-01T00:00:00","VatRatePercent":16.00},{"StartDate":"2012-09-01T00:00:00","VatRatePercent":17.00},{"StartDate":"2013-06-02T00:00:00","VatRatePercent":18.00},{"StartDate":"2015-10-01T00:00:00","VatRatePercent":17.00}]} ----------------------------------------------------------------------------------------- Get the vat rate for a specific date GET http://app.caspit.biz/api/v1/vatrate/?token=8399f961-ea99-48e6-a037-2488b7b52781&date=2014-10-31 Response: 0 2013-06-02T00:00:00 18.00 11 ========================================================================================= Get the Log -- Get a log of your calls to Caspit GET http://app.caspit.biz/api/v1/Log/?token=8399f961-ea99-48e6-a037-2488b7b52781&startDate=2014-10-31&endDate=2014-11-25 ========================================================================================= Get the PDF -- Get the PDF file for a given document GET http://app.caspit.biz/api/v1/Pdf/doc52526?token=8399f961-ea99-48e6-a037-2488b7b52781 ========================================================================================= Get the last documents that were created in Caspit Last == The document with the Max(id) id == Caspit's internal id which is an int. GET https://app.caspitweb.biz/api/v1/LastDocumentsNumbers?token=a1fb1e12-a49a-40e9-8485-940038e4b8be Response: { "DateCreated": "2017-01-31T11:00:01.6784206+02:00", "LastNumbers": [ { "TrxTypeId": 1, "DocumentId": "3c17ec8c-2ebe-427d-aa82-b8d7561ba8cb", "Number": "17/100002", "Date": "2017-01-29T00:00:00" }, { "TrxTypeId": 2, "DocumentId": "docid-c45d7fec-f617-47a6-87e2-ea0afafce3a2", "Number": "98/300279", "Date": "2017-01-31T10:55:58.807" }, { "TrxTypeId": 4, "DocumentId": "2cf82f44-5d75-4791-a29f-bd9b00ef2ffa", "Number": "99/0", "Date": "2016-12-06T00:00:00" }, { "TrxTypeId": 6, "DocumentId": "d7708545-7868-4245-b5fe-4cec3a3ba967", "Number": "05/500040", "Date": "2017-01-03T00:00:00" }, { "TrxTypeId": 7, "DocumentId": "docid-45ceccbc-fae1-43ee-9f13-22c9d93c43c6", "Number": "98/200109", "Date": "2017-01-25T11:19:10.927" }, { "TrxTypeId": 9, "DocumentId": "docid-76118293-4698-4132-af44-dc6e23cbd22c", "Number": "98/600024", "Date": "2017-01-25T11:19:31.737" }, { "TrxTypeId": 11, "DocumentId": "23979a23-c2d0-4a71-8a32-24c8dcc45673", "Number": "05/32454", "Date": "2010-02-13T00:00:00" }, { "TrxTypeId": 12, "DocumentId": "786b3148-d285-469d-bf87-8845fdce0e73", "Number": "00/2046", "Date": "2016-09-07T00:00:00" }, { "TrxTypeId": 13, "DocumentId": "docid-b292e28d-dfc9-4825-880a-7063ae0749d8", "Number": "98/800022", "Date": "2017-01-25T11:21:21.25" }, { "TrxTypeId": 14, "DocumentId": "4ae6da8b-52ba-4f0e-a882-8e9c1274aee8", "Number": "17/400003", "Date": "2017-01-29T10:57:07.933" }, { "TrxTypeId": 15, "DocumentId": "3eb1726f-a08f-4c63-804b-d151ed85f825", "Number": "17/700000", "Date": "2017-01-29T12:42:00" }, { "TrxTypeId": 16, "DocumentId": "0f18e171-080d-49b9-ab96-aa2e9bf07845", "Number": "05/900054", "Date": "2017-01-02T00:00:00" } ] } ==========================================================================================- Get a token for a Creditcard If your account is connected to a creditcard gateway (e.g. Cardcom or Z-Credit) you can get a token for a creditcard number. You can later use the token to charge the card ==========================================================================================- POST http://localhost:50005/api/v1/CreditCard?token=bdfd3b6c-5cd5-4878-95a8-559c102b5422 HTTP/1.1 Content-Type: application/json; charset=utf-8; Content-Disposition: Accept: application/xml {"CCNumber":"4580458045804580","CCNumberToken":null,"CCHolderTZ":"123456789","CCExpDate":"1222","CVV":"123"} Response: HTTP/1.1 201 Created Pragma: no-cache X-SourceFiles: =?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxDcmVkaXRDYXJk?= Cache-Control: no-cache Date: Mon, 24 Apr 2017 10:02:05 GMT Set-Cookie: ASP.NET_SessionId=c0dieiksybcummdynju02bir; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET 12221234567894580efa45802-f22a-40d8-a37a-9a2a86e8b0e4123 Response in JSON format: {"CCNumber":"4580","CCNumberToken":"8e8f20e5-51bc-4f14-b5da-15170e9d4893","CCHolderTZ":"123456789","CCExpDate":"1222","CVV":"123"} ==========================================================================================- Charge a credit card If your account is connected to a creditcard gateway (e.g. Cardcom or Z-Credit) you can get a charge a credit card using the credit card number or a token ==========================================================================================- POST http://localhost:50005/api/v1/ChargeCreditCard?token=c44929d8-0878-467e-a78a-5045f3d1b35f HTTP/1.1 Content-Type: application/json; charset=utf-8; Content-Disposition: Accept: application/xml {"CCNumber":null,"CCNumberToken":"5294c056-990e-4e21-b878-675bbf6f5e1d","CCHolderTZ":"012345678","CCExpDate":"1220","CVV":"123","Amount":5.67,"CurrencySymbol":"₪","CreditType":1,"NumPayments":1,"IsRefund":false} Response: HTTP/1.1 200 OK Pragma: no-cache X-SourceFiles: =?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxDaGFyZ2VDcmVkaXRDYXJk?= Cache-Control: no-cache Date: Mon, 24 Apr 2017 15:14:16 GMT Set-Cookie: ASP.NET_SessionId=dilw42x30dltgwj4ajxhno1d; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET 5.6700000004580458045804580 ========================= שובר עסקה בכרטיס אשראי עותק לקוח ========================= תאריך 24/04/2017 18:14:16 מספר כרטיס XXXX-4580 מספר שובר 24000019 מספר עסקה 10871312 סוג עסקה חובה אופן ביצוע טלפוני אשראי רגיל סכום 5.67 מטבע NIS תשלומים 1 סליקה מכספית בענן - - - - - - - - - - - - - - - - - - - - - - - - - - - - ========================= שובר עסקה בכרטיס אשראי עותק בית העסק ========================= תאריך 24/04/2017 18:14:16 מספר כרטיס XXXX-4580 מספר שובר 24000019 מספר עסקה 10871312 סוג עסקה חובה אופן ביצוע טלפוני אשראי רגיל סכום 5.67 מטבע NIS תשלומים 1 סליקה מכספית בענן חתימת הלקוח ___________ טלפון __________________ 1087131212205.67false1010871312true Response in JSON format: {"ShvaResponse":null,"TrxResult":true,"CCNumber":"4580458045804580","Token":null,"ExpDate":"1220","AmountCharged":5.67,"ChargeSlip":"\r\n =========================\r\n שובר עסקה בכרטיס אשראי\r\n עותק לקוח\r\n =========================\r\n\r\nתאריך 24/04/2017 20:44:04 \r\nמספר כרטיס XXXX-4580\r\n \r\nמספר שובר 24000038 \r\nמספר עסקה 10873429 \r\nסוג עסקה חובה\r\nאופן ביצוע טלפוני\r\nאשראי רגיל\r\nסכום 5.67 \r\nמטבע NIS\r\nתשלומים 1\r\n סליקה מכספית בענן \r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n\r\n =========================\r\n שובר עסקה בכרטיס אשראי\r\n עותק בית העסק\r\n =========================\r\n\r\nתאריך 24/04/2017 20:44:04 \r\nמספר כרטיס XXXX-4580\r\n \r\nמספר שובר 24000038 \r\nמספר עסקה 10873429 \r\nסוג עסקה חובה\r\nאופן ביצוע טלפוני\r\nאשראי רגיל\r\nסכום 5.67 \r\nמטבע NIS\r\nתשלומים 1\r\n סליקה מכספית בענן \r\n \r\n \r\nחתימת הלקוח ___________ \r\n \r\n \r\nטלפון __________________\r\n\r\n ","ReferenceNumber":"10873429","ChargeSlipNumber":"10873429","AuthNumber":"0000000","NumPayments":1,"FirstPayment":5.67,"OtherPayments":0.0,"ApprovalNumber":null,"IsRefund":false} -------------------------------------------------------------------------------- An error response: HTTP/1.1 400 Bad Request Pragma: no-cache X-SourceFiles: =?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxDaGFyZ2VDcmVkaXRDYXJk?= Cache-Control: no-cache Date: Mon, 24 Apr 2017 15:18:52 GMT Set-Cookie: ASP.NET_SessionId=0pwazl1x0o3yb2c3z1ysmw1x; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Bad data: התקבלה שגיאה מ-Z-Credit. מספר: 162, הודעה: תקרה 0 לסוג כרטיס זה בעסקת תשלומים. סכום: 5.67 NIS. מספר הכרטיס: XXXX-4580 -------------------------------------------------------------------------------- Example for refund POST http://localhost:50005/api/v1/ChargeCreditCard?token=c44929d8-0878-467e-a78a-5045f3d1b35f HTTP/1.1 Content-Type: application/json; charset=utf-8; Content-Disposition: Accept: application/xml {"CCNumber":null,"CCNumberToken":"f4fb2f08-6b99-4fe3-bd20-c8e74e819142","CCHolderTZ":"012345678","CCExpDate":"0220","CVV":"173","Amount":5.67,"CurrencySymbol":"₪","CreditType":8,"NumPayments":2,"IsRefund":true} Response: HTTP/1.1 200 OK Pragma: no-cache X-SourceFiles: =?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxDaGFyZ2VDcmVkaXRDYXJk?= Cache-Control: no-cache Date: Mon, 24 Apr 2017 15:22:04 GMT Set-Cookie: ASP.NET_SessionId=lztbec0dbne3ol52kiukhgoy; path=/; HttpOnly Server: Microsoft-IIS/8.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET 5.6700000004580120771961923 ========================= שובר עסקה בכרטיס אשראי עותק לקוח ========================= תאריך 24/04/2017 18:22:04 מספר כרטיס XXXX-1923 מספר שובר 24000024 מספר עסקה 10871436 סוג עסקה זכות אופן ביצוע טלפוני אשראי תשלומים סכום 5.67 מטבע NIS תשלומים 2 סליקה מכספית בענן - - - - - - - - - - - - - - - - - - - - - - - - - - - - ========================= שובר עסקה בכרטיס אשראי עותק בית העסק ========================= תאריך 24/04/2017 18:22:04 מספר כרטיס XXXX-1923 מספר שובר 24000024 מספר עסקה 10871436 סוג עסקה זכות אופן ביצוע טלפוני אשראי תשלומים סכום 5.67 מטבע NIS תשלומים 2 סליקה מכספית בענן חתימת הלקוח ___________ טלפון __________________ 1087143602202.83true22.8410871436true ---------------------------------------------------- JSON reposnse {"ShvaResponse":null,"TrxResult":true,"CCNumber":"4580458045804580","Token":null,"ExpDate":"1220","AmountCharged":5.27,"ChargeSlip":"\r\n =========================\r\n שובר עסקה בכרטיס אשראי\r\n עותק לקוח\r\n =========================\r\n\r\nתאריך 24/04/2017 20:51:49 \r\nמספר כרטיס XXXX-4580\r\n \r\nמספר שובר 24000040 \r\nמספר עסקה 10873503 \r\nסוג עסקה זכות\r\nאופן ביצוע טלפוני\r\nאשראי רגיל\r\nסכום 5.27 \r\nמטבע NIS\r\nתשלומים 1\r\n סליקה מכספית בענן \r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n\r\n =========================\r\n שובר עסקה בכרטיס אשראי\r\n עותק בית העסק\r\n =========================\r\n\r\nתאריך 24/04/2017 20:51:49 \r\nמספר כרטיס XXXX-4580\r\n \r\nמספר שובר 24000040 \r\nמספר עסקה 10873503 \r\nסוג עסקה זכות\r\nאופן ביצוע טלפוני\r\nאשראי רגיל\r\nסכום 5.27 \r\nמטבע NIS\r\nתשלומים 1\r\n סליקה מכספית בענן \r\n \r\n \r\nחתימת הלקוח ___________ \r\n \r\n \r\nטלפון __________________\r\n\r\n ","ReferenceNumber":"10873503","ChargeSlipNumber":"10873503","AuthNumber":"0000000","NumPayments":1,"FirstPayment":5.27,"OtherPayments":0.0,"ApprovalNumber":null,"IsRefund":true} ---------------------------------------------------- Example for bad token: "Bad data: התקבלה שגיאה מ-Z-Credit. מספר: -110, הודעה: הטוקן שסופק לא קיים או שאינו חוקי סכום: 5.67 NIS. מספר הכרטיס: 1284c056-99ce-4e21-b878-675bbf6f5e1d " ========================================================================== Export to Hashavshevet ========================================================================== GET https://app.caspitweb.biz/api/v1/hashavshevet?token=4dd37988-2518-4b5d-88ac-bce6c74ca0b8&exportType=heshin Response: Cache-Control:no-cache Content-Disposition:attachment; filename=heshin.dat Content-Encoding:gzip Content-Type:text/plain; charset=windows-1255 Date:Wed, 26 Apr 2017 15:45:37 GMT Expires:-1 Pragma:no-cache Server:Microsoft-IIS/8.0 Set-Cookie:ASP.NET_SessionId=dwtupydojbsqo5k4q0myk54j; path=/; HttpOnly Transfer-Encoding:chunked Vary:Accept-Encoding X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET X-SourceFiles:=?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxoYXNoYXZzaGV2ZXQ=?= 600002 Žƒ†Ž —”‘ - 13 Supplier 2 - 260417 600022 sbojlla 13 Supplier 22 - 260417 600033 .dtL erawtfoS tipsaC 13 615 .ƒ.š ˆ‰’„ „’˜76543 Customer 33 - 260417 600017 naddaS rorD 13 11 ts tiyaH diraS niE69700 12347890 Customer 71 - 260417 600024 eerfragus 13 3232323 Supplier 42 - 260417 -------------------------------------------------------------------------- https://app.caspitweb.biz/api/v1/hashavshevet?token=932b6146-ed15-4acd-ad71-be1c1368a762&startDate=2017-1-1&endDate=1/31/2017&exportType=movein Response: Cache-Control:no-cache Content-Disposition:attachment; filename=movein.dat Content-Encoding:gzip Content-Type:text/plain; charset=windows-1255 Date:Wed, 26 Apr 2017 17:13:53 GMT Expires:-1 Pragma:no-cache Server:Microsoft-IIS/8.0 Transfer-Encoding:chunked Vary:Accept-Encoding X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET X-SourceFiles:=?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxoYXNoYXZzaGV2ZXQ=?= 0 TAV10025080117 080117 2Ž‰ —‰–‰€ 06/10025 ™‡ 600006 ‹„ 801+ 22230+ 0+ 19000+ 3230+ 0+ 0+ 0+ 0 TAV10026080117 080117 2 ˜…˜ƒ 06/10026 ™‡ 600028 ‹„ 801+ 105300+ 0+ 90000+ 15300+ 0+ 0+ 0+ 0 TAV10027080117 080117 2˜ˆ…” Œ€‰˜€ 06/10027 ™‡ 600019 ‹„ 801+ 2309800+ 0+ 1974188+ 335612+ 0+ 0+ 0+ 0 TAV10028110117 110117 2addaS rorD 06/10028 ™‡ 600017 ‹„ 801+ 240000+ 0+ 205128+ 34872+ 0+ 0+ 0+ 0 TAV10029110117 110117 2 ˜…‚ Œ‰‚ 06/10029 ™‡ 600016 ‹„ 801+ 160000+ 0+ 136752+ 23248+ 0+ 0+ 0+ 0 TAV10030110117 110117 2 ˜…˜ƒ 06/10030 ™‡ 600028 ‹„ 801+ 354500+ 0+ 302991+ 51509+ 0+ 0+ 0+ 0 TAV10031110117 110117 2˜ˆ…” Œ€‰˜€ 06/10031 ™‡ 600019 ‹„ 801+ 30000+ 0+ 25641+ 4359+ 0+ 0+ 0+ 0 TAV10032180117 180117 2 ˜™ ‰€ 06/10032 ™‡ 600013 ‹„ 801+ 84800+ 0+ 72479+ 12321+ 0+ 0+ 0+ 0 TAV10033180117 180117 2 ˜™ ‰€ 06/10033 ™‡ 600013 ‹„ 801+ 943100+ 0+ 806068+ 137032+ 0+ 0+ 0+ 0 TAV10034180117 180117 2˜ˆ…” Œ€‰˜€ 06/10034 ™‡ 600019 ‹„ 801+ 27800+ 0+ 23761+ 4039+ 0+ 0+ 0+ 0 TAV10035190117 190117 2 —‰–‰€ 06/10035 ™‡ 600004 9 801+ 100000+ 0+ 85470+ 14530+ 0+ 0+ 0+ 0 TAV10036190117 190117 2 ˜…˜ƒ 06/10036 ™‡ 600028 ‹„ 801+ 4680+ 0+ 4000+ 680+ 0+ 0+ 0+ 0 TAV10037190117 190117 2 —‰–‰€ 06/10037 ™‡ 600004 9 801+ 64900+ 0+ 55470+ 9430+ 0+ 0+ 0+ 0 TAV10038190117 190117 2 ˜™ ‰€ 06/10038 ™‡ 600013 ‹„ 801+ 14600+ 0+ 12479+ 2121+ 0+ 0+ 0+ 0 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 -------------------------------------------------------------------------- Errors GET https://app.caspitweb.biz/api/v1/hashavshevet?token=56987b00-4f67-46b8-9495-9412003e58d7&exportType=movein5 Cache-Control:no-cache Content-Length:65 Content-Type:text/plain; charset=utf-8 Date:Wed, 26 Apr 2017 16:55:19 GMT Expires:-1 Pragma:no-cache Server:Microsoft-IIS/8.0 Set-Cookie:.ASPXAUTH=1A7F9CBC3B2F059CA3FC95B306FC8A03115D51B66DBEE3FD99F38FDA8A3253B381C2725E579E1B72AB293475B9AFD16B3BEB8FF7041AE2DFF74F6D372C78DD0AC7AD2CE3865274932E1D8E4D4557ECE5CA8D69D4697EA0B8F71D944951FA0F81; path=/; HttpOnly X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET X-SourceFiles:=?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxoYXNoYXZzaGV2ZXQ=?= Unsupported exportType: movein5. Supported values: movein, heshin ------------------------------------------------------------------------- ========================================================================== ========================================================================== ========================================================================== Kupa ========================================================================== http://localhost:50005/api/v1/Kupa?token=48ac5b84-ac63-4ebb-80d4-f968592b17e2&startDate=2017-1-1&endDate=2017-12-31&deposited=true Response - JSON: {"CurrentPage":0,"TotalCount":17,"TotalPages":1.0,"PrevPageUrl":"","NextPageUrl":"","Results":[{"CaspitKupaLineId":"6341688d-7d82-4488-b443-bb4091115701-1","Date":"2017-07-12T00:00:00","TrxTypeId":7,"DocumentNumber":"06/200000","AccountNumber":null,"BranchOrValidTo":null,"BankId":null,"CheckNumber":null,"PaymentDate":null,"Payment":1000.0000,"CurrencySymbol":"₪","Rate":1.0000,"BankDepositNumber":"06/1","BankDepositDate":"2017-08-12T10:31:01.117","BankAccountName":"מדר מסחרי"},{"CaspitKupaLineId":"db1af8aa-5796-424d-8aa2-faec2e43b70e-1","Date":"2017-09-24T00:00:00","TrxTypeId":2,"DocumentNumber":"06/300000","AccountNumber":null,"BranchOrValidTo":null,"BankId":null,"CheckNumber":null,"PaymentDate":null,"Payment":2000.0000,"CurrencySymbol":"₪","Rate":1.0000,"BankDepositNumber":"06/1","BankDepositDate":"2017-08-12T10:31:01.117","BankAccountName":"מדר מסחרי"},{"CaspitKupaLineId":"522d055b-decb-46ac-b2ef-2701e77b990a-1","Date":"2017-09-25T00:00:00","TrxTypeId":2,"DocumentNumber":"06/300001","AccountNumber":null,"BranchOrValidTo":null,"BankId":null,"CheckNumber":null,"PaymentDate":null,"Payment":300.0000,"CurrencySymbol":"₪","Rate":1.0000,"BankDepositNumber":"06/1","BankDepositDate":"2017-08-12T10:31:01.117","BankAccountName":"מדר מסחרי"},------------------------------------------------------------------------- ------------------------------------------------------------------------ Response - XML: 0 מדר מסחרי2017-08-12T10:31:01.11706/1 6341688d-7d82-4488-b443-bb4091115701-1 2017-07-12T00:00:0006/200000 1000.00001.00007 מדר מסחרי2017-08-12T10:31:01.117 06/1 db1af8aa-5796-424d-8aa2-faec2e43b70e-1 2017-09-24T00:00:0006/3000002000.0000 1.00002 מדר מסחרי2017-08-12T10:31:01.11706/1 522d055b-decb-46ac-b2ef-2701e77b990a-1 2017-09-25T00:00:0006/300001300.00001.00002מדר מסחרי2017-09-28T08:49:17.41306/3a9772195-281f-4f5b-81db-6e1fb6ee2490-12017-09-25T00:00:0006/300002100.00001.0000253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-15£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-16£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-17£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-18£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-19£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-20£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-43£2017-09-28T00:00:0006/300006400.00005.9443253536מדר מסחרי2017-09-28T08:49:17.41306/3148294e1ded2b-6a1b-4b1b-9902-4c50c0c46bf5-50£2017-09-28T00:00:0006/300006400.00005.9443243423מדר מסחרי2017-09-27T10:31:21.48706/2443d56a016-8329-43ad-ac37-c7363a559bc5-45042017-09-25T00:00:0006/30000350.00002017-08-09T00:00:001.0000272728מדר מסחרי2017-09-28T08:49:17.41306/3398896c2e5254-e2c8-457c-837a-8e458adf81ca-1$2017-09-27T00:00:0006/2000103000.00002017-08-29T00:00:003.6720743423מדר מסחרי2017-09-27T10:31:21.48706/2443d56a016-8329-43ad-ac37-c7363a559bc5-55052017-09-25T00:00:0006/30000350.00002017-09-09T00:00:001.0000243423מדר מסחרי2017-09-27T10:31:21.48706/2443d56a016-8329-43ad-ac37-c7363a559bc5-65062017-09-25T00:00:0006/30000350.00002017-10-09T00:00:001.0000210001מדר מסחרי2017-09-28T08:49:17.41306/3122226284f833-cd40-457d-93ae-5c9ecc0d55fa-490042017-09-27T00:00:0006/200009942.44002017-12-01T00:00:001.00007 171 ========================================================================== ExpensePayments ========================================================================== GET http://app.caspitweb.biz/api/v1/ExpensePayments?token=48ac5b84-ac63-4ebb-80d4-f968592b17e2 GET http://app.caspitweb.biz/api/v1/ExpensePayments/?token=5ec430ea-f5ba-4e60-b40f-55d1d5dfd878&startDate=2017-01-31&endDate=2017-12-31 HTTP/1.1 Response: {"CurrentPage":0,"TotalCount":4,"TotalPages":1.0,"PrevPageUrl":"","NextPageUrl":"", "Results":[{"ExpensePaymentId":"1051_160197","PaymentDate":"2017-05-17T00:00:00","PaymentDetails":"הוראת קבע","TotalPaid":58.5000,"PaymentMethodNumber":null, "BankAccountId":"78e711f4-c7a5-4b56-8c0d-d45b5e491eb3","ExpenseNumber":1,"PortionNumber":0,"ExpenseDate":"0001-01-01T00:00:00","ContactBusinessName":"חשמל", "TrxCodeNumber":3160},{"ExpensePaymentId":"1051_160198","PaymentDate":"2017-05-17T00:00:00","PaymentDetails":"שיק","TotalPaid":1168.8300, "PaymentMethodNumber":"5356","BankAccountId":"78e711f4-c7a5-4b56-8c0d-d45b5e491eb3","ExpenseNumber":2,"PortionNumber":0,"ExpenseDate":"0001-01-01T00:00:00", "ContactBusinessName":"אגד","TrxCodeNumber":4501},{"ExpensePaymentId":"1051_160199","PaymentDate":"2017-05-17T00:00:00","PaymentDetails":null, "TotalPaid":1000.0000,"PaymentMethodNumber":null,"BankAccountId":"fcfef032-5a28-4991-a636-c29046c5aa56","ExpenseNumber":3,"PortionNumber":0, "ExpenseDate":"0001-01-01T00:00:00","ContactBusinessName":"טבת","TrxCodeNumber":4501},{"ExpensePaymentId":"1051_160200","PaymentDate":"2017-09-30T00:00:00", "PaymentDetails":"הוראת קבע באשראי","TotalPaid":3000.0000,"PaymentMethodNumber":null,"BankAccountId":"492bdda0-6b09-4bdd-a862-4b832f0116c0","ExpenseNumber":4,"PortionNumber":0,"ExpenseDate":"0001-01-01T00:00:00","ContactBusinessName":"ורד הגר","TrxCodeNumber":3010}]} ------------------------------------------------------------------------ Status Code: 200 pragma: no-cache date: Sun, 01 Oct 2017 14:57:55 GMT server: Microsoft-IIS/8.0 x-aspnet-version: 4.0.30319 x-powered-by: ASP.NET content-type: application/xml; charset=utf-8 cache-control: no-cache x-sourcefiles: =?UTF-8?B?QzpcQ2FzcGl0RGV2XFdlYlxDYXNwaXRXZWJcQ2FzcGl0V2ViVGlsZXMuV2ViXGFwaVx2MVxFeHBlbnNlUGF5bWVudHM=?= content-length: 2405 expires: -1 0 78e711f4-c7a5-4b56-8c0d-d45b5e491eb3 חשמל 0001-01-01T00:00:00 1 1051_160197 2017-05-17T00:00:00 הוראת קבע 0 58.5000 3160 78e711f4-c7a5-4b56-8c0d-d45b5e491eb3אגד0001-01-01T00:00:0021051_1601982017-05-17T00:00:00שיק535601168.83004501fcfef032-5a28-4991-a636-c29046c5aa56טבת0001-01-01T00:00:0031051_1601992017-05-17T00:00:0001000.00004501492bdda0-6b09-4bdd-a862-4b832f0116c0ורד הגר0001-01-01T00:00:0041051_1602002017-09-30T00:00:00הוראת קבע באשראי03000.00003010 4 1