For a complete and up-to-date API reference open the following link:
https://e-racuni.com/obracuni/ApiDocumentation
Check articles below for examples on how to use the API:
AdvanceInvoiceGet | Get advance invoice by document number, or by combination of document number and date. |
AdvanceInvoiceGetPDF | Get PDF file for advance invoice by document number, or by combination of document number and date. |
AdvanceInvoiceCreate | Create new advance invoice. |
AdvanceInvoiceImport | Import advance invoice issued in other IS. |
AdvanceInvoiceUpdate | Update existing advance invoice. |
AdvanceInvoiceDelete | Delete advance invoice. |
AdvanceInvoiceCancel | Cancel advance invoice. |
AdvanceInvoiceList | Get list of advance invoices for specified criteria |
AdvanceInvoiceSendByEmail | Sends document by email to the recipient(s). |
AdvanceInvoiceAttachmentAdd | Add attachment to advance invoice. |
AdvanceInvoiceAttachmentSetDefault | Add attachment to advance invoice and set is as default. |
AdvanceInvoiceAttachmentGet | Get default attachment of advance invoice. |
AdvanceInvoiceAttachmentList | Get all attachments of advance invoice. |
Get advance invoice by document number, or by combination of document number and date.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
(For internal "XML" format)
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceGet">
<parameter name="number" value="1/2013" />
<parameter name="date" type="Date" value="2013-02-15" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<AdvanceInvoice>
<businessYear>2010</businessYear>
<buyerCode>123456</buyerCode> <!-- (Optional). If buyer code is specified, other buyer parameters bellow are not needed as the buyer data is taken from database. If any additional parameter is specified, it will override master buyer data in document
<buyerCity>RADOVLJICA</buyerCity>
<buyerCountry>SI</buyerCountry>
<buyerName>5 FIVER d.o.o.</buyerName>
<buyerPostalCode>4240</buyerPostalCode>
<buyerStreet>ULICA 22</buyerStreet>
<buyerTaxNumber>75882442</buyerTaxNumber>
<buyerVatRegistration>None</buyerVatRegistration>
<city>Beograd</city>
<costPosition>1</costPosition>
<cashRegisterCode>0001</cashRegisterCode> <!-- This property must be set for fiscalization
<businessUnit>0001</businessUnit> <!-- This property must be set for fiscalization
<orderReference>123</orderReference> <!-- (Optional)
<date>2010-02-19</date>
<dateOfSupplyFrom>2010-02-19</dateOfSupplyFrom>
<prepaymentDate>2010-03-06</prepaymentDate>
<invoicePricingType>retail</invoicePricingType>
<vatTransactionType>0</vatTransactionType>
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause>
<status>issuedInvoice</status>
<totalAmount>90.000</totalAmount>
<totalCurrency>EUR</totalCurrency>
<totalDiscount>8.33</totalDiscount>
<totalNetAmount>75.00</totalNetAmount>
<totalVatAmountFlatRate>0.00</totalVatAmountFlatRate>
<totalVatAmountNormalRate>0.00</totalVatAmountNormalRate>
<totalVatAmountLowerRate>0.00</totalVatAmountLowerRate>
<totalVatAmountZeroRate>0.0</totalVatAmountZeroRate>
<totalVatBaseAmountFlatRate>0.00</totalVatBaseAmountFlatRate>
<totalVatBaseAmountNormalRate>0.00</totalVatBaseAmountNormalRate>
<totalVatBaseAmountLowerRate>0.00</totalVatBaseAmountLowerRate>
<totalVatBaseAmountZeroRate>1.55</totalVatBaseAmountZeroRate>
<reference>05 11290</reference> <!-- generated reference number
<salesInvoicesRef>2014-00001, 2014-00002, 2014-00003</salesInvoicesRef> <!-- references to sales invoices
<deliveryNotesRef>2014-00004, 2014-00005, 2014-00006</deliveryNotesRef> <!-- references to delivery notes
<creditNotesRef>2014-00004</creditNotesRef> <!-- references to credit notes
<cancelledDocumentRef>2012-00015</cancelledDocumentRef> <-- Reference to cancelled document
<eor>34facd65-622b-745d-a541-30ab1f9d3ac1</eor> <!-- generated by FURS
<zoi>a7e5f55e1dbb48b799268e1a6d8618a3</zoi> <!-- generated when issuing document if it is for fiscalization
<fiscalNumber>1</fiscalNumber> <!-- fiscal sequential number for fiscal numbering of document
<introductionText>introduction text</introductionText>
<Items>
<Item>
<position>1</position>
<amount>75.00</amount>
<amountWithoutDiscount>83.33</amountWithoutDiscount>
<currency>EUR</currency>
<description>Prevoz robe</description>
<discountAmount>8.33</discountAmount>
<discountPercentage>10.0000</discountPercentage>
<netPrice>83.33333</netPrice>
<netPriceInDocumentCurrency>83.33333</netPriceInDocumentCurrency>
<quantity>1.000</quantity>
<price>100.00000</price>
<priceInDocumentCurrency>100.00000</priceInDocumentCurrency>
<vatAmount>15.00</vatAmount>
<vatPercentage>20.0</vatPercentage>
<vatTransactionType>0</vatTransactionType>
<costPosition>1</costPosition>
</Item>
</Items>
</AdvanceInvoice>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="document could not be found"><error/>
</response>
Get PDF for advance invoice by document number, or by combination of document number and date. Response (on OK) returns binary record for PDF file coded with Base64 coding.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
markDocumentAsSent | Marks document as sent. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceGetPDF">
<parameter name="number" value="2" />
<parameter name="date" type="Date" value="2010-02-22" />
<parameter name="markDocumentAsSent" />
</method>
</request>
Response
<response status="ok">
<number>2</number>
<date>2010-02-22</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find advance invoice for number: 2 and date: 2010-02-22">
</error>
</response>
Create new advance invoice.
Document item can be specified with: productCode, quantity, discountPercentage, or can be specified with: description, currency, quantity, price (retail price including VAT for retail document) or netPrice (gross price without VAT for gross document). Default document type is gross. Additional optional item fields are: discountPercentage, unit, vatPercentage, vatTransactionType. Supported values for vatTransactionType are:
0 - Taxable domestic transactions of goods and services // Obdavčen promet blaga in storitev v Sloveniji
4 - Zero-rated transaction - supply of goods within the EU // Oproščen promet - dobava blaga znotraj EU
104 - Vat free transaction - supply of goods in EU by customs procedure 42 and 63 // Oproščen promet - dobava blaga znotraj EU po carinskih postopkih 42 in 63
6 - Zero-rated transaction - tripartite supplies of goods within the EU // Oproščen promet - tristranske dobave blaga znotraj EU
11 - Sales of services in the EU, VAT reverse charge // Oproščen promet - storitve v EU, od katerih plača DDV prejemnik
103 - Vat free transaction - supply of goods in EU by call-of-stock arrangement // Oproščen promet - dobava blaga znotraj EU po skladiščenju na odpoklic
1 - Zero-rated transaction - exports of commodity outside the EU // Oproščen promet - izvoz blaga izven EU
3 - Zero-rated transaction with the right to deduct input VAT // Oproščen promet - s pravico do odbitka vstopnega DDV
2 - Zero-rated transaction - without the right to deduct input VAT // Oproščen promet - brez pravice do odbitka vstopnega DDV
9 - Transactions exempt from VAT with the right of input VAT deduction (transactions outside SLO) // Neobdavčljiv promet s pravico do odbitka vstopnega DDV (prometi izven SLO)
7 - not subject to VAT // Neobdavčen promet - ne gre v DDV evidence
12 - Nontaxable suply - other taxes or duties other than VAT // Neobdavčen promet - ostali davki oziroma dajatve (razen DDV)
105 - Not subject to VAT – supply of goods outside EU // Neobdavčen promet - dobava blaga zunaj Unije (tretje države)
10 - Supply of goods and services in Slovenia, VAT reverse charged by the recipient // Dobava blaga in storitev v SLO, DDV obračuna prejemnik (76.a člen)
5 - Zero-rated transaction - assembly in the EU // Oproščen promet - montaža v EU (obračun tujega DDV)
8 - Distance selling in the EU surpassing annual sales threshold (foreign VAT) // Oproščen promet - prodaja blaga na daljavo (obračun tujega DDV)
101 - Special vat margin calculation for used goods // Posebna ureditev za rabljeno blago
102 - Special vat margin calculation for used goods - tax free // Posebna ureditev za rabljeno blago - oproščen promet
13 - Special vat margin calculation for travel agencies - price difference taxed // Obdavčen promet - posebni postopek obdavčitve razlike v ceni za potovalne agencije (98. člen)
14 - VAT exempt transactions for travel agencies // Oproščen promet za potovalne agencije (99. člen)
100 - Electronic services in other EU member countries (OSS) // Prodaja elektronskih storitev v drugih članicah EU (OSS)
106 - Distance sales of goods to EU consumers (OSS) // Prodaja blaga na daljavo končnim potrošnikom v EU (OSS)
107 - Supply of services to EU consumers (OSS) // Prodaja storitev končnim potrošnikom v EU (OSS)
108 - Distance sales of imported goods to EU consumers (IOSS) // Prodaja na daljavo iz tretjih držav uvoženega blaga končnim potrošnikom v EU (IOSS)
120 - Supply of services from EU to third country consumers (foreign VAT) // Izvoz storitev iz EU končnim potrošnikom v državi izven EU (obračun tujega DDV)
121 - Distance sales of goods to consumers outside EU (foreign VAT) // Prodaja blaga na daljavo končnim potrošnikom v državi izven EU (obračun tujega DDV)
Before using vat transaction types for OSS and IOSS, you must set up registration for OSS and IOSS in company settings under foreign VAT registrations. |
Parameters
AdvanceInvoice | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceCreate">
<parameter name="AdvanceInvoice">
<date>2010-01-13</date> <!-- document date
<dateOfSupplyFrom>2010-02-19</dateOfSupplyFrom>
<prepaymentDate>2010-03-06</prepaymentDate>
<city>Beograd</city>
<customerContactPerson></customerContactPerson> <!-- (Optional)
<type>Retail</type> <!-- (Optional) Type of pricing - default is "Gross"
<status>issuedInvoice</status> <!-- (Optional) Possible values: issuedInvoice, draft - default is issuedInvoice
<isReccurringInvoice>false</isReccurringInvoice>
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause> <!-- (Optional and only for invoices with taBookingRef) Possible values: RegisteredTourismLawPart47, RegisteredTourismLawPart31, RegisteredTourismLawPart47And31
<costPosition>120</costPosition> <!-- (Optional)
<cashRegisterCode>0001</cashRegisterCode> <!-- Mandatory for fiscalization
<businessUnit>0001</businessUnit> <!-- Mandatory for fiscalization
<deliveryMethod>Delivery method</deliveryMethod> <!-- (Optional)
<superDiscountPercentage>5</superDiscountPercentage> <!-- (Optional)
<remarks>Remark on Advance invoice</remarks> <!-- (Optional)
<introductionText>introduction text</introductionText> <!-- (Optional)
<buyerCode>123456</buyerCode> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerDocumentID>60:123456</buyerDocumentID> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerName>Micka Kovac</buyerName>
<buyerTaxNumber>02169711</buyerTaxNumber> <!-- (Optional)
<buyerVatRegistration>None</buyerVatRegistration> <!-- (Unkown, None, Registered)
<buyerEMail>micka@kovac.com</buyerEMail> <!-- (Optional)
<buyerStreet>Iztokova 22</buyerStreet> <!-- (Optional)
<buyerPostalCode>2000</buyerPostalCode> <!-- (Optional)
<buyerCity>Maribor</buyerCity> <!-- (Optional)
<buyerCountry>SI</buyerCountry> <!-- (Optional) ISO-2 country code
<methodOfPayment>bankTransfer</methodOfPayment> <!-- Possible ways of payment: Unknown, BankTransfer, Cash, Cheques, EurocardMastercard, Visa, Karanta, Amex, Diners, Activa, BA, CashOnDelivery, Moneta, CreditCard, PayPal, DirectDebit, SetOff, Coupon, Compensation, GoCrypto
<documentLanguage>Slovene</documentLanguage> <!-- (Optional) Possible document language: Slovene, English, German, Croatian, Italian, Hungarian, Czech, Slovak, Serbian, Polish and Bulgarian
<printingTemplate>Predloga2</printingTemplate> <!-- (Optional) Setting printing template for document, posible values is code of uploaded templates in web app
<salesInvoiceRef>2014-00001</salesInvoiceRef> <!-- (Optional) Setting reference to advance invoice
<salesQuoteRef>2014-00001</salesQuoteRef> <!-- (Optional) Setting reference to sales quote
<salesOrderRef>2014-00001</salesOrderRef> <!-- (Optional) Setting reference to sales order
<taBookingRef>2014-00001</taBookingRef> <!-- (Optional) Setting reference to tourist agency booking
<Items>
<Item> <!-- item specified with ref to product
<position>1</position> <!-- position of item
<productCode>020</productCode> <!-- product code
<quantity>100</quantity>
<discountPercentage>10</discountPercentage>
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<costPosition>1</costPosition>
</Item>
<Item> <!-- Item specified for good or service
<position>2</position> <!-- position of item
<description>Transport of goods</description>
<price>11.00</price> <!-- price (retail price including VAT for retail document) or netPrice (gross price without VAT for gross document). Default document type is "gross" so use <netPrice> tag in this case or <price> tag in case of document type "retail"
<discountPercentage>2</discountPercentage> <!-- (Optional)
<vatPercentage>10</vatPercentage> <!-- (Optional)
<currency>EUR</currency> <!-- (Optional)
<quantity>10</quantity> <!-- (Optional) default 0
<unit>km</unit> <!-- (Optional)
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<costPosition>1</costPosition>
</Item>
...
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2/2013</number> <!-- created document ID or number
<date>2013-01-13</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Import advance invoice issued in other IS. Parameter 'importType' can be used to specify type of import. If parameter is not specified, "createOrUpdate" is used as default. For updating advance invoices with this api call, advance invoices's data must contain code as unique identifier.
Parameters
importType | Flag for the type of import |
AdvanceInvoice | Advance invoice data in xml substructure. |
dataFormat | In case some other data format is used for import, this parameter should be used. Possible values are defaul data format "eracuniXML" and "ESLOG". If this parameter is not included in XML, import from default data format is used. |
base64data | This parameter is mandatory in case using dataFormat "ESLOG". Content of this parameter should be eSlog XML encoded into base64 string. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="AdvanceInvoice">
<!-- structure of elements is the same as in AdvanceInvoiceCreate only tag <number> is mandatory here
<parameter/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0001-1206-2014</number>
<date>2013-06-12</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Property <number> is required."><error/> <!-- missing number
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Advance invoice for number: 0001-1206-2013 already exists!"></error> <!-- Advance Invoice for number already exists
</response>
(Using ESLOG data format)
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="dataFormat" value="ESLOG" />
<parameter name="base64data">JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+Cn...
<!-- eSlog XML encoded into base64 string
<parameter/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0001-1206-2014</number>
<date>2021-06-12</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Parameter <base64data>: cannot parse contents"></error> <!-- Error when decoding XML from base64 string
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Error parsing XML file due to invalid syntax"></error> <!-- Error when parsing XML
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Document can not be overwritten because it is already posted."></error> <!-- There are several different error messages possible.
</response>
Update existing advance invoice.Data must contain advance invoice number to be able to identify document which is to be updated.
Parameters
AdvanceInvoice | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceUpdate">
<parameter name="AdvanceInvoice">
<number>12</number> <!-- document number is mandatory in UPDATE (Can use sequential document number (example: 12), or formatted number (example: 12/2011))
<!-- Parameters are identical to the parameters in SalesInvoiceCreate api
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2/2013</number> <!-- updated document ID or number
<date>2013-01-13</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Delete advance invoice. Must specify parameter/s (number, number+date) to identify document for deleting. It is possible to delete only last advance invoice.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceDelete">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2016-01-13" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Cancel advance invoice. Must specify parameter/s (number, number+date) to identify document for canceling.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
status | Status of cancelation document (draft, issuedInvoice). By Default status is issuedInvoice. |
cancellationDocNumber | Number of cancellation document (mandatory and works only for imported documents). |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceCancel">
<parameter name="number" value="2013-00014" />
<parameter name="cancellationDocNumber" value="2013-00014" /> <!-- Works only when canceling imported documents where this number is mandatory
<parameter name="date" type="Date" value="2013-03-26" />
<parameter name="status" value="draft" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel advance invoice for arguments number: 2013-00014 date: 2013-03-26"><error/> <!-- document could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find advance invoice for number
Can not cancel. Found X advance invoices
Found X advance invoices X. You can only cancel one advance invoice at a time
Can not cancel advance invoice X
Get list of advance invoices for criteria which is specified by API parameters. Mixing different types of dates in search criteria is not supported - date parameters can be combined only as follows: dateFrom/dateTo, prepaymentDateFrom/prepaymentDateTo or dateOfSupplyFrom/dateOfSupplyUntil.
Parameters
number | Document number |
dateFrom | The date which is used to select advance invoices whose date is following it |
dateTo | The date which is used to select advance invoices whose date is preceding it |
prepaymentDateFrom | The date which is used to select advance invoices whose date of prepayment is following it |
prepaymentDateTo | The date which is used to select advance invoices whose date of prepayment is preceding it |
dateOfSupplyFrom | The date which is used to select advance invoices whose date of supply/performance is following it |
dateOfSupplyUntil | The date which is used to select advance invoices whose date of supply/performance is preceding it |
deliveryAddress | Delivery address of the buyer |
buyer | Buyer code, or buyer name |
costPosition | Cost position code |
totalAmount | Total amount of the advance invoices |
totalCurrency | Currency used in advance invoice |
article | Product code, or product name |
status | Possible values: Draft, IssuedInvoice, NotBooked, Booked, CanceledCreditInvoice, OpenedClaim, ClosedClaim, OpenedDueClaim, DocumentSentAlready, DocumentNotYetSent, DocumentSentByEMail, DocumentNotSentByEMail, CancellationDocument, CancelledDocument, HasOpenAmountForSalesInvoice, HasNoOpenAmountForSalesInvoice, AccountingEntryOrImportedInvoice, DocumentNotSentOrPrinted, NotCancellationOrCancelledDocument, VatReportDone, VatReportOpen. |
issuer | Issuer of document, search is done by username |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceList">
<parameter name="status" value="issuedInvoice" />
<parameter name="dateFrom" type="Date" value="2010-02-19" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<AdvanceInvoices>
<AdvanceInvoice>
<!-- structure of elements is the same as in AdvanceInvoiceGet
</AdvanceInvoice>
...
</AdvanceInvoices>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
Sends document by email to the recipient(s).
Parameters
number | Document number |
date | Document date (optional additional document identification) |
sender | Email sender (Optional) |
recipient | Comma delimited list of recipient(s) emails |
cc | CC email (Optional) |
bcc | BCC email (Optional) |
subject | Mail subject (Optional) |
message | Message text (Optional) |
useHtmlMessage | Send message text as HTML (Optional) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceSendByEmail">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2010-01-13" />
<parameter name="sender" value="micka@kovac.com"/>
<parameter name="recipient" value="zoran@kovac.com,zlatko@kovac.com"/>
<parameter name="cc" value=""/>
<parameter name="bcc" value=""/>
<parameter name="subject" value="TEST d.o.o.: Sales invoice nr. 0002/2010"/>
<parameter name="message" value="Message text"/>
<parameter name="useHtmlMessage" value="true"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges, mail sending failed
</response>
Add image/attachment to advance invoice.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to advance invoice 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find advance invoice for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to advance invoice and set is as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to advance invoice 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find advance invoice for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of advance invoice.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<AdvanceInvoice>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</AdvanceInvoice>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find advance invoice for number: 2020-00001 advance invoice does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="AdvanceInvoiceAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<AdvanceInvoice>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</AdvanceInvoice>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find advance invoice for number: 2020-00001 advance invoice does not have attachemnts.
</response>
BillOfMaterialsGet | Get bill of materials by number. |
BillOfMaterialsCreate | Create new bill of materials. |
BillOfMaterialsUpdate | Update existing bill of materials. |
BillOfMaterialsDelete | Delete bill of materials. |
BillOfMaterialsList | Get list of bills of materials for specified criteria. |
Get bill of materials by number.
Parameters
number | Number of bill of materials. |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BillOfMaterialsGet">
<parameter name="number" value="055/11" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<BillOfMaterials>
<date>2015-05-06</date>
<number>055/11</number>
<productCode>055</productCode>
<productQuantity>10.000000</productQuantity>
<status>Active</status>
<MaterialItems>
<MaterialItem>
<itemProductCode>000011</itemProductCode>
<position>1</position>
<quantity>5.000000</quantity>
</MaterialItem>
<MaterialItem>
<itemProductCode>000001</itemProductCode>
<position>2</position>
<quantity>1.000000</quantity>
</MaterialItem>
</MaterialItems>
<WorkingHours>
<WorkingHour>
<description>consulting</description>
<hoursPlanned>6.0000</hoursPlanned>
<position>1</position>
<workTask>consulting</workTask>
</WorkingHour>
<WorkingHour>
<description>Programiranje</description>
<hoursPlanned>8.0000</hoursPlanned>
<position>2</position>
<workTask>consulting</workTask>
</WorkingHour>
<WorkingHour>
<description>Testiranje</description>
<hoursPlanned>2.0000</hoursPlanned>
<position>3</position>
<workTask>consulting</workTask>
</WorkingHour>
</WorkingHours>
</BillOfMaterials>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find bill of materials number: 055/11,
</response>
Create new bill of materials.
Parameters
BillOfMaterials | Bill of materials's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BillOfMaterialsCreate">
<parameter name="BillOfMaterials">
<date>2015-05-06</date> <!-- Mandatory
<productCode>055</productCode> <!-- Mandatory
<productQuantity>10.000000</productQuantity> <!-- Mandatory
<status>Active</status> <!-- Mandatory possible values: Draft, Active, Inactive
<MaterialItems>
<MaterialItem>
<itemProductCode>000011</itemProductCode> <!-- Mandatory
<position>1</position> <!-- Optional
<quantity>5.000000</quantity> <!-- Mandatory
</MaterialItem>
</MaterialItems>
<WorkingHours>
<WorkingHour>
<description>test working hour</description> <!-- Mandatory
<hoursPlanned>6.0000</hoursPlanned> <!-- Mandatory
<position>1</position> <!-- Optional
<workTask>consulting</workTask> <!-- Mandatory
</WorkingHour>
</WorkingHours>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Bill of materials for number: 055/11 already exists!><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" must be specified., missing mandatory attributes, invalid values, no privileges, Error creating bill of materials
</response>
Update existing bill of materials.
Parameters
BillOfMaterials | Product's data in xml substructure |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BillOfMaterialsUpdate">
<parameter name="BillOfMaterials">
<date>2015-05-06</date> <!-- Mandatory
<number>055/11</number> <!-- Mandatory
<productCode>055</productCode> <!-- Mandatory
<productQuantity>10.000000</productQuantity> <!-- Mandatory
<status>Active</status> <!-- Mandatory possible values: Draft, Active, Inactive
<MaterialItems>
<MaterialItem>
<itemProductCode>000011</itemProductCode> <!-- Mandatory
<position>1</position> <!-- Optional
<quantity>9.000000</quantity> <!-- Mandatory
</MaterialItem>
</MaterialItems>
<WorkingHours>
<WorkingHour>
<description>test working hour</description> <!-- Mandatory
<hoursPlanned>7.0000</hoursPlanned> <!-- Mandatory
<position>1</position> <!-- Optional
<workTask>consulting</workTask> <!-- Mandatory
</WorkingHour>
</WorkingHours>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<productCode>PA2521U-2AC3</productCode>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find bill of materials for number: 055/11, missing mandatory attributes, invalid values, no privileges,
</response>
Delete bill of materials.
Parameters
number | Unique identifier for bill of materials. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BillOfMaterialsDelete">
<parameter name="number" value="055/11" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find bill of materials for number: 055/11, Can not delete. Found 3 bill of materials with number 055,
</response>
Get list of bills of materials for specified criteria.
Parameters
number | BillOfMaterials number. |
dateFrom | Search by bill of materials date range. |
dateTo | Search by bill of materials date range. |
article | Search by material. |
status | Usage status (Active, Inactive, Draft) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BillOfMaterialsList">
<parameter name="number" value="123456" />
<parameter name="status" value="active"/>
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BillOfMaterialsList">
<parameter name="dateFrom" value="2015-05-01" />
<parameter name="dateTo" value="2015-05-26" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<BillOfMaterials>
<!-- structure of bill of materials data is the same as in BillOfMaterialsGet
</BillOfMaterials>
<BillOfMaterials>
<!-- structure of bill of materials data is the same as in BillOfMaterialsGet
</BillOfMaterials>
...
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Access denied. User account does not have sufficient privileges for the given request, Invalid search keys, invalid values, no privileges,
</response>
CreditNoteGet | Get credit note by document number, or by combination of document number and date. |
CreditNoteGetPDF | Get PDF file for credit note by document number, or by combination of document number and date. |
CreditNoteCreate | Create new credit note. |
CreditNoteImport | Import credit note issued in other IS. |
CreditNoteUpdate | Update existing credit note. |
CreditNoteDelete | Delete credit note. |
CreditNoteCancel | Cancel credit note. |
CreditNoteList | Get list of credit notes for specified criteria |
CreditNoteSendByEmail | Sends document by email to the recipient(s). |
CreditNoteAttachmentAdd | Add attachment to credit note. |
CreditNoteAttachmentSetDefault | Add attachment to credit note and set is as default. |
CreditNoteAttachmentGet | Get default attachment of credit note. |
CreditNoteAttachmentList | Get all attachments of credit note. |
Get credit note by document number, or by combination of document number and date.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
(For internal "XML" format)
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteGet">
<parameter name="number" value="1/2013" />
<parameter name="date" type="Date" value="2013-02-15" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<CreditNote>
<businessYear>2010</businessYear>
<buyerCode>123456</buyerCode> <!-- (Optional). If buyer code is specified, other buyer parameters bellow are not needed as the buyer data is taken from database. If any additional parameter is specified, it will override master buyer data in document
<buyerCity>RADOVLJICA</buyerCity>
<buyerCountry>SI</buyerCountry>
<buyerName>5 FIVER d.o.o.</buyerName>
<buyerPostalCode>4240</buyerPostalCode>
<buyerStreet>ULICA 22</buyerStreet>
<buyerTaxNumber>75882442</buyerTaxNumber>
<buyerVatRegistration>None</buyerVatRegistration>
<city>Beograd</city>
<costPosition>1</costPosition>
<cashRegisterCode>0001</cashRegisterCode> <!-- This property must be set for fiscalization
<businessUnit>0001</businessUnit> <!-- This property must be set for fiscalization
<methodOfPayment>bankTransfer</methodOfPayment> <!-- This property must be set for fiscalization
<orderReference>123</orderReference> <!-- (Optional)
<date>2010-02-19</date>
<dateOfSupplyFrom>2010-02-19</dateOfSupplyFrom>
<paymentDueDate>2010-03-06</paymentDueDate>
<invoicePricingType>retail</invoicePricingType>
<number>2010-00002</number> <!-- document number optional AUTO numbering
<vatTransactionType>0</vatTransactionType>
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause>
<status>issuedInvoice</status>
<totalAmount>90.000</totalAmount>
<totalCurrency>EUR</totalCurrency>
<totalDiscount>8.33</totalDiscount>
<totalNetAmount>75.00</totalNetAmount>
<totalVatAmountFlatRate>0.00</totalVatAmountFlatRate>
<totalVatAmountNormalRate>0.00</totalVatAmountNormalRate>
<totalVatAmountLowerRate>0.00</totalVatAmountLowerRate>
<totalVatAmountZeroRate>0.0</totalVatAmountZeroRate>
<totalVatBaseAmountFlatRate>0.00</totalVatBaseAmountFlatRate>
<totalVatBaseAmountNormalRate>0.00</totalVatBaseAmountNormalRate>
<totalVatBaseAmountLowerRate>0.00</totalVatBaseAmountLowerRate>
<totalVatBaseAmountZeroRate>1.55</totalVatBaseAmountZeroRate>
<reference>05 11290</reference> <!-- generated reference number
<cancelledDocumentRef>2012-00015</cancelledDocumentRef> <-- Reference to cancelled document
<eor>34facd65-622b-745d-a541-30ab1f9d3ac1</eor> <!-- generated by FURS
<zoi>a7e5f55e1dbb48b799268e1a6d8618a3</zoi> <!-- generated when issuing document if it is for fiscalization
<fiscalNumber>1</fiscalNumber> <!-- fiscal sequential number for fiscal numbering of document
<introductionText>introduction text</introductionText>
<vatCountryIsoCode>HR</vatCountryIsoCode>
<Address> <!-- (Optional) Setting delivery address on document and partner buyer if it doesn't exists
<city>Celje</city>
<country>SI</country>
<postalCode>3000</postalCode>
<street>Ulica 10</street>
<type>Delivery</type>
<firstAddressLine>Delivery address</firstAddressLine>
</Address>
<Items>
<Item>
<position>1</position>
<amount>75.00</amount>
<amountWithoutDiscount>83.33</amountWithoutDiscount>
<currency>EUR</currency>
<description>Prevoz robe</description>
<discountAmount>8.33</discountAmount>
<discountPercentage>10.0000</discountPercentage>
<netPrice>83.33333</netPrice>
<netPriceInDocumentCurrency>83.33333</netPriceInDocumentCurrency>
<quantity>1.000</quantity>
<price>100.00000</price>
<priceInDocumentCurrency>100.00000</priceInDocumentCurrency>
<vatAmount>15.00</vatAmount>
<vatPercentage>20.0</vatPercentage>
<vatTransactionType>0</vatTransactionType>
<costPosition>1</costPosition>
</Item>
</Items>
</CreditNote>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="document could not be found"><error/>
</response>
Get PDF for credit note by document number, or by combination of document number and date. Response (on OK) returns binary record for PDF file coded with Base64 coding.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
markDocumentAsSent | Marks document as sent. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteGetPDF">
<parameter name="number" value="2" />
<parameter name="date" type="Date" value="2010-02-22" />
<parameter name="markDocumentAsSent" />
</method>
</request>
Response
<response status="ok">
<number>2</number>
<date>2010-02-22</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find credit note for number: 2 and date: 2010-02-22">
</error>
</response>
Create new credit note.
Document item can be specified with: productCode, quantity, discountPercentage, or can be specified with: description, currency, quantity, price (retail price including VAT for retail document) or netPrice (gross price without VAT for gross document). Default document type is gross. Additional optional item fields are: discountPercentage, unit, vatPercentage, vatTransactionType. Supported values for vatTransactionType are:
0 - Taxable domestic transactions of goods and services // Obdavčen promet blaga in storitev v Sloveniji
4 - Zero-rated transaction - supply of goods within the EU // Oproščen promet - dobava blaga znotraj EU
104 - Vat free transaction - supply of goods in EU by customs procedure 42 and 63 // Oproščen promet - dobava blaga znotraj EU po carinskih postopkih 42 in 63
6 - Zero-rated transaction - tripartite supplies of goods within the EU // Oproščen promet - tristranske dobave blaga znotraj EU
11 - Sales of services in the EU, VAT reverse charge // Oproščen promet - storitve v EU, od katerih plača DDV prejemnik
103 - Vat free transaction - supply of goods in EU by call-of-stock arrangement // Oproščen promet - dobava blaga znotraj EU po skladiščenju na odpoklic
1 - Zero-rated transaction - exports of commodity outside the EU // Oproščen promet - izvoz blaga izven EU
3 - Zero-rated transaction with the right to deduct input VAT // Oproščen promet - s pravico do odbitka vstopnega DDV
2 - Zero-rated transaction - without the right to deduct input VAT // Oproščen promet - brez pravice do odbitka vstopnega DDV
9 - Transactions exempt from VAT with the right of input VAT deduction (transactions outside SLO) // Neobdavčljiv promet s pravico do odbitka vstopnega DDV (prometi izven SLO)
7 - not subject to VAT // Neobdavčen promet - ne gre v DDV evidence
12 - Nontaxable suply - other taxes or duties other than VAT // Neobdavčen promet - ostali davki oziroma dajatve (razen DDV)
105 - Not subject to VAT – supply of goods outside EU // Neobdavčen promet - dobava blaga zunaj Unije (tretje države)
10 - Supply of goods and services in Slovenia, VAT reverse charged by the recipient // Dobava blaga in storitev v SLO, DDV obračuna prejemnik (76.a člen)
5 - Zero-rated transaction - assembly in the EU // Oproščen promet - montaža v EU (obračun tujega DDV)
8 - Distance selling in the EU surpassing annual sales threshold (foreign VAT) // Oproščen promet - prodaja blaga na daljavo (obračun tujega DDV)
101 - Special vat margin calculation for used goods // Posebna ureditev za rabljeno blago
102 - Special vat margin calculation for used goods - tax free // Posebna ureditev za rabljeno blago - oproščen promet
13 - Special vat margin calculation for travel agencies - price difference taxed // Obdavčen promet - posebni postopek obdavčitve razlike v ceni za potovalne agencije (98. člen)
14 - VAT exempt transactions for travel agencies // Oproščen promet za potovalne agencije (99. člen)
100 - Electronic services in other EU member countries (OSS) // Prodaja elektronskih storitev v drugih članicah EU (OSS)
106 - Distance sales of goods to EU consumers (OSS) // Prodaja blaga na daljavo končnim potrošnikom v EU (OSS)
107 - Supply of services to EU consumers (OSS) // Prodaja storitev končnim potrošnikom v EU (OSS)
108 - Distance sales of imported goods to EU consumers (IOSS) // Prodaja na daljavo iz tretjih držav uvoženega blaga končnim potrošnikom v EU (IOSS)
120 - Supply of services from EU to third country consumers (foreign VAT) // Izvoz storitev iz EU končnim potrošnikom v državi izven EU (obračun tujega DDV)
121 - Distance sales of goods to consumers outside EU (foreign VAT) // Prodaja blaga na daljavo končnim potrošnikom v državi izven EU (obračun tujega DDV)
Number of credit note which is created from this web service is automatically set if parameter status is set to "issuedInvoice".
Before using vat transaction types for OSS and IOSS, you must set up registration for OSS and IOSS in company settings under foreign VAT registrations. |
Parameters
CreditNote | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteCreate">
<parameter name="CreditNote">
<date>2010-01-13</date> <!-- document date
<dateOfSupplyFrom>2010-02-19</dateOfSupplyFrom>
<paymentDueDate>2010-03-06</paymentDueDate>
<city>Beograd</city>
<customerContactPerson></customerContactPerson> <!-- (Optional)
<type>Retail</type> <!-- (Optional) Type of pricing - default is "Gross"
<status>issuedInvoice</status> <!-- (Optional) Possible values: issuedInvoice, draft - default is issuedInvoice
<isReccurringInvoice>false</isReccurringInvoice>
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause> <!-- (Optional and only for invoices with taBookingRef) Possible values: RegisteredTourismLawPart47, RegisteredTourismLawPart31, RegisteredTourismLawPart47And31
<costPosition>120</costPosition> <!-- (Optional)
<cashRegisterCode>0001</cashRegisterCode> <!-- Mandatory for fiscalization
<businessUnit>0001</businessUnit> <!-- Mandatory for fiscalization
<deliveryMethod>Delivery method</deliveryMethod> <!-- (Optional)
<superDiscountPercentage>5</superDiscountPercentage> <!-- (Optional)
<remarks>Remark on Sales invoice</remarks> <!-- (Optional)
<introductionText>introduction text</introductionText> <!-- (Optional)
<buyerCode>123456</buyerCode> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerDocumentID>60:123456</buyerDocumentID> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerName>Micka Kovac</buyerName>
<buyerTaxNumber>02169711</buyerTaxNumber> <!-- (Optional)
<buyerVatRegistration>None</buyerVatRegistration> <!-- (Unkown, None, Registered)
<buyerEMail>micka@kovac.com</buyerEMail> <!-- (Optional)
<buyerStreet>Iztokova 22</buyerStreet> <!-- (Optional)
<buyerPostalCode>2000</buyerPostalCode> <!-- (Optional)
<buyerCity>Maribor</buyerCity> <!-- (Optional)
<buyerCountry>SI</buyerCountry> <!-- (Optional) ISO-2 country code
<documentLanguage>Slovene</documentLanguage> <!-- (Optional) Possible document language: Slovene, English, German, Croatian, Italian, Hungarian, Czech, Slovak, Serbian, Polish and Bulgarian
<printingTemplate>Predloga2</printingTemplate> <!-- (Optional) Setting printing template for document, posible values is code of uploaded templates in web app
<salesInvoiceRef>2014-00001</salesInvoiceRef> <!-- (Optional) Setting reference to sales invoice
<advanceInvoiceRef>2014-00001</advanceInvoiceRef> <!-- (Optional) Setting reference to advance invoice
<taBookingRef>2014-00001</taBookingRef> <!-- (Optional) Setting reference to tourist agency booking
<methodOfPayment>bankTransfer</methodOfPayment> <!-- Possible ways of payment: Unknown, BankTransfer, Cash, Cheques, EurocardMastercard, Visa, Karanta, Amex, Diners, Activa, BA, CashOnDelivery, Moneta, CreditCard, PayPal, DirectDebit, SetOff, Coupon, Compensation, GoCrypto
<vatCountryIsoCode>HR</vatCountryIsoCode> <!-- Mandatory if using vatTransactionTypes: 100, 8 and 5 and it determines that VAT procentages for specified country has to be taken
<Address> <!-- (Optional) Setting delivery address on document and partner buyer if it doesn't exists
<city>Celje</city>
<country>SI</country>
<postalCode>3000</postalCode>
<street>Ulica 10</street>
<type>Delivery</type>
<firstAddressLine>Delivery address</firstAddressLine>
</Address>
<Items>
<Item> <!-- item specified with ref to product
<position>1</position> <!-- position of item
<productCode>020</productCode> <!-- product code
<quantity>100</quantity>
<discountPercentage>10</discountPercentage>
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0. Foreign VAT transaction types (100, 8 and 5) can only be set on document level.
<costPosition>1</costPosition>
</Item>
<Item> <!-- Item specified for good or service
<position>2</position> <!-- position of item
<description>Transport of goods</description>
<price>11.00</price> <!-- price (retail price including VAT for retail document) or netPrice (gross price without VAT for gross document). Default document type is "gross" so use <netPrice> tag in this case or <price> tag in case of document type "retail"
<discountPercentage>2</discountPercentage> <!-- (Optional)
<vatPercentage>10</vatPercentage> <!-- (Optional)
<currency>EUR</currency> <!-- (Optional)
<quantity>10</quantity> <!-- (Optional) default 0
<unit>km</unit> <!-- (Optional)
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0. Foreign VAT transaction types (100, 8 and 5) can only be set on document level.
<costPosition>1</costPosition>
</Item>
...
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2/2013</number> <!-- created document ID or number
<date>2013-01-13</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Import Credit note issued in other IS. Parameter 'importType' can be used to specify type of import. If parameter is not specified, "createOrUpdate" is used as default. For updating Credit notes with this api call, Credit notes's data must contain code as unique identifier.
Parameters
importType | Flag for the type of import |
CreditNote | Sales invoice data in xml substructure. |
dataFormat | In case some other data format is used for import, this parameter should be used. Possible values are defaul data format "eracuniXML" and "ESLOG". If this parameter is not included in XML, import from default data format is used. |
base64data | This parameter is mandatory in case using dataFormat "ESLOG". Content of this parameter should be eSlog XML encoded into base64 string. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="CreditNote">
<!-- structure of elements is the same as in CreditNoteCreate only tag <number> is mandatory here
<parameter/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0001-1206-2014</number>
<date>2013-06-12</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Property <number> is required."><error/> <!-- missing number
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Credit note for number: 0001-1206-2013 already exists!"></error> <!-- Credit note for number already exists
</response>
(Using ESLOG data format)
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="dataFormat" value="ESLOG" />
<parameter name="base64data">JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+Cn...
<!-- eSlog XML encoded into base64 string
<parameter/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0001-1206-2014</number>
<date>2021-06-12</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Parameter <base64data>: cannot parse contents"></error> <!-- Error when decoding XML from base64 string
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Error parsing XML file due to invalid syntax"></error> <!-- Error when parsing XML
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Document can not be overwritten because it is already posted."></error> <!-- There are several different error messages possible.
</response>
Update existing credit note.Data must contain credit note number to be able to identify document which is to be updated.
Parameters
CreditNote | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteUpdate">
<parameter name="CreditNote">
<number>12</number> <!-- document number is mandatory in UPDATE (Can use sequential document number (example: 12), or formatted number (example: 12/2011))
<!-- Parameters are identical to the parameters in SalesInvoiceCreate api
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2/2013</number> <!-- updated document ID or number
<date>2013-01-13</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Delete credit note. Must specify parameter/s (number, number+date) to identify document for deleting. It is possible to delete only last credit note.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteDelete">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2016-01-13" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Cancel credit note. Must specify parameter/s (number, number+date) to identify document for cancelling.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
status | Status of cancelation document (draft, issuedInvoice). By Default status is issuedInvoice. |
cancellationDocNumber | Number of cancellation document (mandatory and works only for imported documents). |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteCancel">
<parameter name="number" value="2013-00014" />
<parameter name="cancellationDocNumber" value="2013-00014" /> <!-- Works only when canceling imported documents where this number is mandatory
<parameter name="date" type="Date" value="2013-03-26" />
<parameter name="status" value="draft" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel credit note for arguments number: 2013-00014 date: 2013-03-26"><error/> <!-- document could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find credit note for number
Can not cancel. Found X credit notes
Found X credit notes X. You can only cancel one credit note at a time
Can not cancel credit note X
Get list of credit notes for criteria which is specified by API parameters. Mixing different types of dates in search criteria is not supported - date parameters can be combined only as follows: dateFrom/dateTo, paymentDueDateFrom/paymentDueDateTo or dateOfSupplyFrom/dateOfSupplyUntil.
Parameters
number | Document number |
dateFrom | The date which is used to select credit notes whose date is following it |
dateTo | The date which is used to select credit notes whose date is preceding it |
paymentDueDateFrom | The date which is used to select credit notes whose payment due date is following it |
paymentDueDateTo | The date which is used to select credit notes whose payment due date is preceding it |
dateOfSupplyFrom | The date which is used to select credit notes whose date of supply/performance is following it |
dateOfSupplyUntil | The date which is used to select credit notes whose date of supply/performance is preceding it |
deliveryAddress | Delivery address of the buyer |
buyer | Buyer code, or buyer name |
costPosition | Cost position code |
totalAmount | Total amount of the credit notes |
totalCurrency | Currency used in credit note |
article | Product code, or product name |
status | Possible values: Draft, IssuedInvoice, NotBooked, Booked, CanceledCreditInvoice, OpenedClaim, ClosedClaim, OpenedDueClaim, DocumentSentAlready, DocumentNotYetSent, DocumentSentByEMail, DocumentNotSentByEMail, WithInvoiceReference, WithoutInvoiceReference, CancellationDocument, CancelledDocument, AccountingEntryOrImportedInvoice, DocumentNotSentOrPrinted, NotCancellationOrCancelledDocument, VatReportDone, VatReportOpen |
issuer | Issuer of document, search is done by username |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteList">
<parameter name="status" value="issuedInvoice" />
<parameter name="dateFrom" type="Date" value="2010-02-19" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<CreditNotes>
<CreditNote>
<!-- structure of elements is the same as in CreditNoteGet
</CreditNote>
...
</CreditNotes>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
Sends document by email to the recipient(s).
Parameters
number | Document number |
date | Document date (optional additional document identification) |
sender | Email sender (Optional) |
recipient | Comma delimited list of recipient(s) emails |
cc | CC email (Optional) |
bcc | BCC email (Optional) |
subject | Mail subject (Optional) |
message | Message text (Optional) |
useHtmlMessage | Send message text as HTML (Optional) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteSendByEmail">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2010-01-13" />
<parameter name="sender" value="micka@kovac.com"/>
<parameter name="recipient" value="zoran@kovac.com,zlatko@kovac.com"/>
<parameter name="cc" value=""/>
<parameter name="bcc" value=""/>
<parameter name="subject" value="TEST d.o.o.: Sales invoice nr. 0002/2010"/>
<parameter name="message" value="Message text"/>
<parameter name="useHtmlMessage" value="true"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges, mail sending failed
</response>
Add image/attachment to credit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to credit note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find credit note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to credit note and set is as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to credit note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find credit note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of credit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<CreditNote>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</CreditNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find credit note for number: 2020-00001 Credit note does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="CreditNoteAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<CreditNote>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</CreditNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find credit note for number: 2020-00001 Credit note does not have attachemnts.
</response>
DebitNoteGet | Get debit note by document number, or by combination of document number and date. |
DebitNoteGetPDF | Get PDF file for debit note by document number, or by combination of document number and date. |
DebitNoteCreate | Create new debit note. |
DebitNoteImport | Import debit note issued in other IS. |
DebitNoteUpdate | Update existing debit note. |
DebitNoteDelete | Delete debit note. |
DebitNoteCancel | Cancel debit note. |
DebitNoteList | Get list of debit notes for specified criteria |
DebitNoteSendByEmail | Sends document by email to the recipient(s). |
DebitNoteAttachmentAdd | Add attachment to debit note. |
DebitNoteAttachmentSetDefault | Add attachment to debit note and set is as default. |
DebitNoteAttachmentGet | Get default attachment of debit note. |
DebitNoteAttachmentList | Get all attachments of debit note. |
Get debit note by document number, or by combination of document number and date.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
(For internal "XML" format)
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteGet">
<parameter name="number" value="1/2013" />
<parameter name="date" type="Date" value="2013-02-15" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<DebitNote>
<businessYear>2010</businessYear>
<buyerCode>123456</buyerCode> <!-- (Optional). If buyer code is specified, other buyer parameters bellow are not needed as the buyer data is taken from database. If any additional parameter is specified, it will override master buyer data in document
<buyerCity>RADOVLJICA</buyerCity>
<buyerCountry>SI</buyerCountry>
<buyerName>5 FIVER d.o.o.</buyerName>
<buyerPostalCode>4240</buyerPostalCode>
<buyerStreet>ULICA 22</buyerStreet>
<buyerTaxNumber>75882442</buyerTaxNumber>
<buyerVatRegistration>None</buyerVatRegistration>
<city>Beograd</city>
<costPosition>1</costPosition>
<cashRegisterCode>0001</cashRegisterCode> <!-- This property must be set for fiscalization
<businessUnit>0001</businessUnit> <!-- This property must be set for fiscalization
<orderReference>123</orderReference> <!-- (Optional)
<date>2010-02-19</date>
<dateOfSupplyFrom>2010-02-19</dateOfSupplyFrom>
<paymentDueDate>2010-03-06</paymentDueDate>
<invoicePricingType>retail</invoicePricingType>
<number>2010-00002</number> <!-- document number optional AUTO numbering
<vatTransactionType>0</vatTransactionType>
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause>
<status>issuedInvoice</status>
<totalAmount>90.000</totalAmount>
<totalCurrency>EUR</totalCurrency>
<totalDiscount>8.33</totalDiscount>
<totalNetAmount>75.00</totalNetAmount>
<totalVatAmountFlatRate>0.00</totalVatAmountFlatRate>
<totalVatAmountNormalRate>0.00</totalVatAmountNormalRate>
<totalVatAmountLowerRate>0.00</totalVatAmountLowerRate>
<totalVatAmountZeroRate>0.0</totalVatAmountZeroRate>
<totalVatBaseAmountFlatRate>0.00</totalVatBaseAmountFlatRate>
<totalVatBaseAmountNormalRate>0.00</totalVatBaseAmountNormalRate>
<totalVatBaseAmountLowerRate>0.00</totalVatBaseAmountLowerRate>
<totalVatBaseAmountZeroRate>1.55</totalVatBaseAmountZeroRate>
<reference>05 11290</reference> <!-- generated reference number
<cancelledDocumentRef>2012-00015</cancelledDocumentRef> <-- Reference to cancelled document
<eor>34facd65-622b-745d-a541-30ab1f9d3ac1</eor> <!-- generated by FURS
<zoi>a7e5f55e1dbb48b799268e1a6d8618a3</zoi> <!-- generated when issuing document if it is for fiscalization
<fiscalNumber>1</fiscalNumber> <!-- fiscal sequential number for fiscal numbering of document
<introductionText>introduction text</introductionText>
<vatCountryIsoCode>HR</vatCountryIsoCode>
<Address> <!-- (Optional) Setting delivery address on document and partner buyer if it doesn't exists
<city>Celje</city>
<country>SI</country>
<postalCode>3000</postalCode>
<street>Ulica 10</street>
<type>Delivery</type>
<firstAddressLine>Delivery address</firstAddressLine>
</Address>
<Items>
<Item>
<position>1</position>
<amount>75.00</amount>
<amountWithoutDiscount>83.33</amountWithoutDiscount>
<currency>EUR</currency>
<description>Prevoz robe</description>
<discountAmount>8.33</discountAmount>
<discountPercentage>10.0000</discountPercentage>
<netPrice>83.33333</netPrice>
<netPriceInDocumentCurrency>83.33333</netPriceInDocumentCurrency>
<quantity>1.000</quantity>
<price>100.00000</price>
<priceInDocumentCurrency>100.00000</priceInDocumentCurrency>
<vatAmount>15.00</vatAmount>
<vatPercentage>20.0</vatPercentage>
<vatTransactionType>0</vatTransactionType>
<costPosition>1</costPosition>
</Item>
</Items>
</DebitNote>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="document could not be found"><error/>
</response>
Get PDF for debit note by document number, or by combination of document number and date. Response (on OK) returns binary record for PDF file coded with Base64 coding.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
markDocumentAsSent | Marks document as sent. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteGetPDF">
<parameter name="number" value="2" />
<parameter name="date" type="Date" value="2010-02-22" />
<parameter name="markDocumentAsSent" />
</method>
</request>
Response
<response status="ok">
<number>2</number>
<date>2010-02-22</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find debit note for number: 2 and date: 2010-02-22">
</error>
</response>
Create new debit note.
Document item can be specified with: productCode, quantity, discountPercentage, or can be specified with: description, currency, quantity, price (retail price including VAT for retail document) or netPrice (gross price without VAT for gross document). Default document type is gross. Additional optional item fields are: discountPercentage, unit, vatPercentage, vatTransactionType. Supported values for vatTransactionType are:
0 - Taxable transactions of goods and services in Slovenia //Obdavčen promet blaga in storitev v Sloveniji
1 - Zero-rated transaction - exports of goods outside the EU //Oproščen promet - izvoz blaga izven EU
2 - Zero-rated transaction - without the right to deduct input VAT //Oproščen promet - brez pravice do odbitka vstopnega DDV
3 - Zero-rated transaction - with the right to deduct input VAT //Oproščen promet - s pravico do odbitka vstopnega DDV
4 - Zero-rated transaction - supply of goods within the EU //Oproščen promet - dobava blaga znotraj EU
5 - Zero-rated transaction - assembly in the EU //Oproščen promet - montaža v EU (obračun tujega DDV)
6 - Zero-rated transaction - tripartite supplies of goods within the EU //Oproščen promet - tristranske dobave blaga znotraj EU
7 - Transactions exempt from VAT - not for VAT records //Neobdavčen promet - ne gre v DDV evidence
8 - Zero-rated transaction - remote sales of goods //Oproščen promet - prodaja blaga na daljavo (obračun tujega DDV)
9 - Transactions exempt from VAT with the right of input VAT deduction (transactions outside SLO) //Neobdavčljiv promet s pravico do odbitka vstopnega DDV (prometi izven SLO)
10- Supply of goods and services in SLO, VAT charged by the recipient //Dobava blaga in storitev v SLO, DDV obračuna prejemnik (76.a člen)
11- Sales of services in the EU, VAT paid by the recipient //Oproščen promet - storitve v EU, od katerih plača DDV prejemnik
100- Sales of electronic services taxed in other EU country //
101- Special vat margin calculation for used goods//Posebna ureditev za rabljeno blago
102- Special vat margin calculation for used goods - tax free //Posebna ureditev za rabljeno blago - oproščen promet
103- Vat free transaction - supply of goods in EU by call-of-stock arrangement //Oproščen promet - dobava blaga znotraj EU po skladiščenju na odpoklic
104- Vat free transaction - supply of goods in EU by customs procedure 42 and 63 //Oproščen promet - dobava blaga znotraj EU po carinskih postopkih 42 in 63
105- Not subject to VAT – supply of goods outside EU //Neobdavčen promet - dobava blaga zunaj Unije (tretje države)
106- Distance sales of goods to EU consumers (OSS) //Prodaja blaga na daljavo končnim potrošnikom v EU (OSS)
107- Supply of services to EU consumers (OSS) //Prodaja storitev končnim potrošnikom v EU (OSS)
109- Distance sales of goods to domestic consumers (OSS) //Prodaja blaga na daljavo končnim potrošnikom v SLO (OSS)
108- Distance sales of imported goods to EU consumers (IOSS) //Prodaja na daljavo iz tretjih držav uvoženega blaga končnim potrošnikom v EU (IOSS)
110- Distance sales of imported goods to domestic consumers (IOSS)//Prodaja na daljavo iz tretjih držav uvoženega blaga končnim potrošnikom v SLO (IOSS)
120- Supply of services from EU to third country consumers (foreign VAT) //Izvoz storitev iz EU končnim potrošnikom v državi izven EU (obračun tujega DDV)
Number of debit note which is created from this web service is automatically set if parameter status is set to "issuedInvoice".
Before using vat transaction types for OSS and IOSS, you must set up registration for OSS and IOSS in company settings under foreign VAT registrations. |
Parameters
DebitNote | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteCreate">
<parameter name="DebitNote">
<date>2010-01-13</date> <!-- document date
<dateOfSupplyFrom>2010-02-19</dateOfSupplyFrom>
<paymentDueDate>2010-03-06</paymentDueDate>
<city>Beograd</city>
<customerContactPerson></customerContactPerson> <!-- (Optional)
<type>Retail</type> <!-- (Optional) Type of pricing - default is "Gross"
<status>issuedInvoice</status> <!-- (Optional) Possible values: issuedInvoice, draft - default is issuedInvoice
<isReccurringInvoice>false</isReccurringInvoice>
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause> <!-- (Optional) Possible values: Registered, NotRegistered, RegisteredTourismLawPart47, RegisteredTourismLawPart31, RegisteredTourismLawPart47And31
<costPosition>120</costPosition> <!-- (Optional)
<cashRegisterCode>0001</cashRegisterCode> <!-- Mandatory for fiscalization
<businessUnit>0001</businessUnit> <!-- Mandatory for fiscalization
<deliveryMethod>Delivery method</deliveryMethod> <!-- (Optional)
<superDiscountPercentage>5</superDiscountPercentage> <!-- (Optional)
<remarks>Remark on Sales invoice</remarks> <!-- (Optional)
<introductionText>introduction text</introductionText> <!-- (Optional)
<buyerCode>123456</buyerCode> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerDocumentID>60:123456</buyerDocumentID> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerName>Micka Kovac</buyerName>
<buyerTaxNumber>02169711</buyerTaxNumber> <!-- (Optional)
<buyerVatRegistration>None</buyerVatRegistration> <!-- (Unkown, None, Registered)
<buyerEMail>micka@kovac.com</buyerEMail> <!-- (Optional)
<buyerStreet>Iztokova 22</buyerStreet> <!-- (Optional)
<buyerPostalCode>2000</buyerPostalCode> <!-- (Optional)
<buyerCity>Maribor</buyerCity> <!-- (Optional)
<buyerCountry>SI</buyerCountry> <!-- (Optional) ISO-2 country code
<documentLanguage>Slovene</documentLanguage> <!-- (Optional) Possible document language: Slovene, English, German, Croatian, Italian, Hungarian, Czech, Slovak, Serbian, Polish and Bulgarian
<printingTemplate>Predloga2</printingTemplate> <!-- (Optional) Setting printing template for document, posible values is code of uploaded templates in web app
<salesInvoiceRef>2014-00001</salesInvoiceRef> <!-- (Optional) Setting reference to sales invoice
<vatCountryIsoCode>HR</vatCountryIsoCode> <!-- Mandatory if using vatTransactionTypes: 100, 8 and 5 and it determines that VAT procentages for specified country has to be taken
<Address> <!-- (Optional) Setting delivery address on document and partner buyer if it doesn't exists
<city>Celje</city>
<country>SI</country>
<postalCode>3000</postalCode>
<street>Ulica 10</street>
<type>Delivery</type>
<firstAddressLine>Delivery address</firstAddressLine>
</Address>
<Items>
<Item> <!-- item specified with ref to product
<position>1</position> <!-- position of item
<productCode>020</productCode> <!-- product code
<quantity>100</quantity>
<discountPercentage>10</discountPercentage>
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0. Foreign VAT transaction types (100, 8 and 5) can only be set on document level.
<costPosition>1</costPosition>
</Item>
<Item> <!-- Item specified for good or service
<position>2</position> <!-- position of item
<description>Transport of goods</description>
<price>11.00</price> <!-- price (retail price including VAT for retail document) or netPrice (gross price without VAT for gross document). Default document type is "gross" so use <netPrice> tag in this case or <price> tag in case of document type "retail"
<discountPercentage>2</discountPercentage> <!-- (Optional)
<vatPercentage>10</vatPercentage> <!-- (Optional)
<currency>EUR</currency> <!-- (Optional)
<quantity>10</quantity> <!-- (Optional) default 0
<unit>km</unit> <!-- (Optional)
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0. Foreign VAT transaction types (100, 8 and 5) can only be set on document level.
<costPosition>1</costPosition>
</Item>
...
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2/2013</number> <!-- created document ID or number
<date>2013-01-13</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Import Debit note issued in other IS. Parameter 'importType' can be used to specify type of import. If parameter is not specified, "createOrUpdate" is used as default. For updating Debit notes with this api call, Debit notes's data must contain code as unique identifier.
Parameters
importType | Flag for the type of import |
DebitNote | Sales invoice data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="DebitNote">
<!-- structure of elements is the same as in DebitNoteCreate only tag <number> is mandatory here
<parameter/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0001-1206-2014</number>
<date>2013-06-12</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Property <number> is required."><error/> <!-- missing number
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Debit note for number: 0001-1206-2013 already exists!"></error> <!-- Debit note for number already exists
</response>
Update existing debit note.Data must contain debit note number to be able to identify document which is to be updated.
Parameters
DebitNote | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteUpdate">
<parameter name="DebitNote">
<number>12</number> <!-- document number is mandatory in UPDATE (Can use sequential document number (example: 12), or formatted number (example: 12/2011))
<!-- Parameters are identical to the parameters in SalesInvoiceCreate api
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2/2013</number> <!-- updated document ID or number
<date>2013-01-13</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Delete debit note. Must specify parameter/s (number, number+date) to identify document for deleting. It is possible to delete only last debit note.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteDelete">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2016-01-13" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Cancel debit note. Must specify parameter/s (number, number+date) to identify document for cancelling.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
businessUnit | Business unit |
vatBook | Vat book |
status | Status of cancelation document (draft, issuedInvoice). By Default status is issuedInvoice. |
cancellationDocNumber | Number of cancellation document (mandatory and works only for imported documents). |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteCancel">
<parameter name="number" value="2013-00014" />
<parameter name="cancellationDocNumber" value="2013-00014" /> <!-- Works only when canceling imported documents where this number is mandatory
<parameter name="date" type="Date" value="2013-03-26" />
<parameter name="status" value="draft" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel debit note for arguments number: 2013-00014 date: 2013-03-26"><error/> <!-- document could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find debit note for number
Can not cancel. Found X debit notes
Found X debit notes X. You can only cancel one debit note at a time
Can not cancel debit note X
Get list of debit notes for criteria which is specified by API parameters. Mixing different types of dates in search criteria is not supported - date parameters can be combined only as follows: dateFrom/dateTo, paymentDueDateFrom/paymentDueDateTo or dateOfSupplyFrom/dateOfSupplyUntil.
Parameters
number | Document number |
dateFrom | The date which is used to select debit notes whose date is following it |
dateTo | The date which is used to select debit notes whose date is preceding it |
paymentDueDateFrom | The date which is used to select debit notes whose payment due date is following it |
paymentDueDateTo | The date which is used to select debit notes whose payment due date is preceding it |
dateOfSupplyFrom | The date which is used to select debit notes whose date of supply/performance is following it |
dateOfSupplyUntil | The date which is used to select debit notes whose date of supply/performance is preceding it |
deliveryAddress | Delivery address of the buyer |
buyer | Buyer code, or buyer name |
costPosition | Cost position code |
totalAmount | Total amount of the debit notes |
totalCurrency | Currency used in debit note |
article | Product code, or product name |
status | Possible values: Draft, IssuedInvoice, NotBooked, Booked, CanceledCreditInvoice, OpenedClaim, ClosedClaim, OpenedDueClaim, DocumentSentAlready, DocumentNotYetSent, DocumentSentByEMail, DocumentNotSentByEMail, CancellationDocument, CancelledDocument, AccountingEntryOrImportedInvoice, DocumentNotSentOrPrinted, NotCancellationOrCancelledDocument, VatReportDone, VatReportOpen |
issuer | Issuer of document, search is done by username |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteList">
<parameter name="status" value="issuedInvoice" />
<parameter name="dateFrom" type="Date" value="2010-02-19" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<DebitNotes>
<DebitNote>
<!-- structure of elements is the same as in DebitNoteGet
</DebitNote>
...
</DebitNotes>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
Sends document by email to the recipient(s).
Parameters
number | Document number |
date | Document date (optional additional document identification) |
sender | Email sender (Optional) |
recipient | Comma delimited list of recipient(s) emails |
cc | CC email (Optional) |
bcc | BCC email (Optional) |
subject | Mail subject (Optional) |
message | Message text (Optional) |
useHtmlMessage | Send message text as HTML (Optional) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteSendByEmail">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2010-01-13" />
<parameter name="sender" value="micka@kovac.com"/>
<parameter name="recipient" value="zoran@kovac.com,zlatko@kovac.com"/>
<parameter name="cc" value=""/>
<parameter name="bcc" value=""/>
<parameter name="subject" value="TEST d.o.o.: Sales invoice nr. 0002/2010"/>
<parameter name="message" value="Message text"/>
<parameter name="useHtmlMessage" value="true"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges, mail sending failed
</response>
Add image/attachment to debit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to debit note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find debit note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to debit note and set is as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to debit note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find debit note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of debit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<DebitNote>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</DebitNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find debit note for number: 2020-00001 Debit note does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DebitNoteAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<DebitNote>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</DebitNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find debit note for number: 2020-00001 Debit note does not have attachemnts.
</response>
DeliveryNoteGet | Get delivery notes by document number, or by combination of document number and date. |
DeliveryNoteGetPDF | Get PDF for delivery note by document number, or by combination of document number and date. |
DeliveryNoteCreate | Create new delivery note. |
DeliveryNoteUpdate | Update existing delivery note. |
DeliveryNoteDelete | Delete delivery note. |
DeliveryNoteCancel | Cancel delivery note. |
DeliveryNoteList | Get list of delivery notes for specified criteria |
DeliveryNoteSendByEmail | Sends document by email to the recipient(s). |
DeliveryNoteAttachmentAdd | Add attachment to delivery note. |
DeliveryNoteAttachmentSetDefault | Add attachment to delivery note and set is as default. |
DeliveryNoteAttachmentGet | Get default attachment of delivery note. |
DeliveryNoteAttachmentList | Get all attachments of delivery note. |
Get delivery note by document number, or by combination of document number and date.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
warehouse | Warehouse code |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteGet">
<parameter name="number" value="2012-00014" />
<parameter name="date" type="Date" value="2012-09-26" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 November 2012 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<DeliveryNote>
<businessUnit>0001</businessUnit>
<businessYear>2014</businessYear>
<buyerCity>Pivka</buyerCity>
<buyerCode>123456</buyerCode> <!-- (Optional). If buyer code is specified, other buyer parameters bellow are not needed as the buyer data is taken from database. If any additional parameter is specified, it will override master buyer data in document
<buyerCountry>SI</buyerCountry>
<buyerEMail>marjanbajc@hotmail.com</buyerEMail>
<buyerName>RRA Notranjsko-kra ke regije, d.o.o.</buyerName>
<buyerPostalCode>6257</buyerPostalCode>
<buyerStreet>Precna ulica 1</buyerStreet>
<buyerVatRegistration>None</buyerVatRegistration>
<cancelledDocumentRef>2012-00015</cancelledDocumentRef> <-- Reference to cancelled document
<orderReference>123</orderReference> <!-- (Optional)
<city>Maribor</city>
<costPosition>0001</costPosition>
<date>2014-03-18</date>
<dateOfSupply>2014-03-18</dateOfSupply>
<number>0019/2014</number>
<salesInvoiceRef>2014-00005</salesInvoiceRef>
<status>IssuedInvoice</status>
<totalCurrency>EUR</totalCurrency>
<totalDiscount>0.0</totalDiscount>
<totalNetAmount>78.62</totalNetAmount>
<totalVatAmountFlatRate>0.00</totalVatAmountFlatRate>
<totalVatAmountNormalRate>7.49</totalVatAmountNormalRate>
<totalVatAmountLowerRate>4.23</totalVatAmountLowerRate>
<totalVatAmountZeroRate>0.0</totalVatAmountZeroRate>
<totalVatBaseAmountFlatRate>0.00</totalVatBaseAmountFlatRate>
<totalVatBaseAmountNormalRate>34.05</totalVatBaseAmountNormalRate>
<totalVatBaseAmountLowerRate>44.57</totalVatBaseAmountLowerRate>
<totalVatBaseAmountZeroRate>0.00</totalVatBaseAmountZeroRate>
<vatTransactionType>0</vatTransactionType>
<warehouseCode>8956</warehouseCode>
<vatCountryIsoCode>HR</vatCountryIsoCode>
<Address> <!-- (Optional) Setting delivery address on document and partner buyer if it doesn't exists
<city>Celje</city>
<country>SI</country>
<postalCode>3000</postalCode>
<street>Ulica 10</street>
<type>Delivery</type>
<firstAddressLine>Delivery address</firstAddressLine>
</Address>
<Items>
<Item>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>-1.000000</calculationQuantity>
<costsDirectAmount>0.00000</costsDirectAmount>
<costsDirectPercentage>0.00</costsDirectPercentage>
<costsOfCustomsAmount>0.00000</costsOfCustomsAmount>
<costsOfCustomsPercentage>0.00</costsOfCustomsPercentage>
<costsOfTransportAmount>0.00000</costsOfTransportAmount>
<costsOfTransportPercentage>0.00</costsOfTransportPercentage>
<discountPercentage>0.0000</discountPercentage>
<grossMarginAmount>6.69000</grossMarginAmount>
<grossMarginPercentage>17.66</grossMarginPercentage>
<grossPrice>44.57000</grossPrice>
<inboundVatAmount>-3.60000</inboundVatAmount>
<inboundVatPercentage>9.50</inboundVatPercentage>
<inventoryAmount>-37.88000</inventoryAmount>
<inventoryPrice>37.88000</inventoryPrice>
<outgoingVatAmount>4.64000</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>2</position>
<productCode>000013</productCode>
<retailMarginAmount>10.96000</retailMarginAmount>
<retailMarginPercentage>28.93</retailMarginPercentage>
<retailPrice>48.84000</retailPrice>
<salesPrice>48.80415</salesPrice>
<salesPriceAmount>-48.80415</salesPriceAmount>
<supplierAmountInCalculationCurrency>-37.88000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>37.88000</supplierPrice>
<supplierPriceAmount>-37.88000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>37.88000</supplierPriceInCalculationCurrency>
<productName>Product 1</productName>
<description>this is product with code 000013</description>
<remarks>test 1. 2.</remarks>
</Item>
<Item>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>-2.000000</calculationQuantity>
<costsDirectAmount>0.00000</costsDirectAmount>
<costsDirectPercentage>0.00</costsDirectPercentage>
<costsOfCustomsAmount>0.00000</costsOfCustomsAmount>
<costsOfCustomsPercentage>0.00</costsOfCustomsPercentage>
<costsOfTransportAmount>0.00000</costsOfTransportAmount>
<costsOfTransportPercentage>0.00</costsOfTransportPercentage>
<discountPercentage>0.0000</discountPercentage>
<grossMarginAmount>17.02459</grossMarginAmount>
<grossMarginPercentage>0.00</grossMarginPercentage>
<grossPrice>17.02459</grossPrice>
<inboundVatAmount>0.00000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>0.00000</inventoryAmount>
<inventoryPrice>0.00000</inventoryPrice>
<outgoingVatAmount>3.75000</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<position>1</position>
<productCode>320003</productCode>
<retailMarginAmount>17.02000</retailMarginAmount>
<retailMarginPercentage>0.00</retailMarginPercentage>
<retailPrice>17.02000</retailPrice>
<salesPrice>20.77000</salesPrice>
<salesPriceAmount>-41.54000</salesPriceAmount>
<supplierAmountInCalculationCurrency>0.00000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>0.00000</supplierPrice>
<supplierPriceAmount>0.00000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>0.00000</supplierPriceInCalculationCurrency>
<productName>Product 1</productName>
<description>this is product with code 320003</description>
<remarks>test 1. 2.</remarks>
</Item>
</Items>
</DeliveryNote>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not find delivery note for number: XXX and date: XXX"><error/>
</response>
Error messages:
Parameter named "number" is required.
Can not find delivery note for number: XXX and date: XXX
Get PDF for delivery note by document number, or by combination of document number and date. User can also mark document as sent if the correct parameter is used. Response (on OK) returns binary record for PDF file coded with Base64 coding.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2014-00001) |
date | Document date |
costPosition | Cost position |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
markDocumentAsSent | Marks document as sent. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteGetPDF">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2009-12-15" />
<parameter name="markDocumentAsSent" />
</method>
</request>
Response
<response status="ok">
<number>2012-01293</number>
<date>2013-01-02</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find delivery note for number: 2013-01293 and date: 2013-01-02">
</error>
</response>
Create new delivery note.
Mandatory document attributes are: warehouseCode, dateOfSupply.Mandatory document item attribute is productCode. Other attributes are optional and web service will use default values and those from specified product. Default calculationQuantity is 1, default date is day of execution.
Additional optional item fields are: calculationQuantity, associatedSerialNumbers, lotNumber (optionali expirationDate can be defined for given LOT number), discountPercentage, salesPrice (retail price including VAT for retail document) or grossPrice (gross price without VAT for gross document), position, productName, description, remarks and vatTransactionType. Supported values for vatTransactionType are:
0 - Taxable transactions of goods and services in Slovenia,
1 - Zero-rated transaction - exports of goods outside the EU,
2 - Zero-rated transaction - without the right to deduct input VAT,
3 - Zero-rated transaction - with the right to deduct input VAT,
4 - Zero-rated transaction - supply of goods within the EU,
5 - Zero-rated transaction - assembly in the EU,
6 - Zero-rated transaction - tripartite supplies of goods within the EU,
7 - Transactions exempt from VAT - not for VAT records,
8 - Zero-rated transaction - remote sales of goods,
9 - Transactions exempt from VAT with the right of input VAT deduction (transactions outside SLO),
10- Supply of goods and services in SLO, VAT charged by the recipient,
11- Sales of services in the EU, VAT paid by the recipient.
100- Sales of electronic services taxed in other EU country.
Parameters
DeliveryNote | Complex parameter with data tags like: |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteCreate">
<parameter name="DeliveryNote">
<date>2014-03-26</date> <!-- document date
<dateOfSupply>2014-03-26</dateOfSupply> <!-- date of receival
<city>Ljubljana</city> <!-- (Optional)
<businessYear>2012</businessYear> <!-- (Optional)
<purchaseOrder>13</purchaseOrder> <!-- (Optional)
<warehouseCode>8956</warehouseCode> <!-- (Mandatory)
<status>issuedInvoice</status> <!-- (Optional) Possible values: issuedInvoice, draft - default is issuedInvoice
<costPosition>120</costPosition> <!-- (Optional)
<deliveryMethod>Delivery method</deliveryMethod> <!-- (Optional)
<buyerCode>123456</buyerCode> <!-- (Optional). If buyer code is specified, other buyer parameters bellow are not needed as the buyer data is taken from database. If any additional parameter is specified, it will override master buyer data in document
<buyerDocumentID>60:123456</buyerDocumentID> <!-- (Optional). If it is specified buyer parameters bellow are not needed as the buyer data is taken from database. If any parameter bellow is sepcified it will override master buyer data in document
<buyerCity>RADOVLJICA</buyerCity>
<buyerCountry>SI</buyerCountry>
<buyerName>5 FIVER d.o.o.</buyerName>
<buyerPostalCode>4240</buyerPostalCode>
<buyerStreet>ULICA 22</buyerStreet>
<buyerTaxNumber>75882442</buyerTaxNumber>
<buyerVatRegistration>none</buyerVatRegistration> <!-- (Unkown, None, Registered)
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause> <!-- (Optional) Possible values: Registered, NotRegistered, RegisteredTourismLawPart47, RegisteredTourismLawPart31, RegisteredTourismLawPart47And31
<remarks>Remark on delivery note</remarks> <!-- (Optional)
<salesInvoiceRef>2014-00001</salesInvoiceRef> <!-- (Optional) Setting reference to sales invoice
<advanceInvoiceRef>2014-00001</advanceInvoiceRef> <!-- (Optional) Setting reference to advanceinvoice
<salesQuoteRef>2014-00001</salesQuoteRef> <!-- (Optional) Setting reference to sales quote
<vatCountryIsoCode>HR</vatCountryIsoCode> <!-- Mandatory if using vatTransactionTypes: 100, 8 and 5 and it determines that VAT procentages for specified country has to be taken
<documentLanguage>Slovene</documentLanguage> <!-- (Optional) Possible document language: Slovene, English, German, Croatian, Italian, Hungarian, Czech, Slovak, Serbian, Polish and Bulgarian
<Address> <!-- (Optional) Setting delivery address on document and partner buyer if it doesn't exists
<city>Celje</city>
<country>SI</country>
<postalCode>3000</postalCode>
<street>Ulica 10</street>
<type>Delivery</type>
<firstAddressLine>Delivery address</firstAddressLine>
</Address>
<Items>
<Item> <!-- item specified with ref to product
<position>1</position> <!-- position of item
<productCode>666666</productCode> <!-- product code
<calculationQuantity>2</calculationQuantity> <!-- quantity (default is 1)
<discountPercentage>10</discountPercentage> <!-- discount percentage
<productName>Product name</productName> <!-- change product name if this is enabled on article
<description>this is product with code 666666</description> <!-- change product description if this is enabled on article
<remarks>test 1. 2.</remarks> <!-- remarks on delivery note item
<associatedSerialNumbers>111, 222</associatedSerialNumbers> <!-- serial numbers
<grossPrice>145,66</grossPrice> <!-- set gross price when document type is "gross" or use <salesPrice> for setting price when document type is "retail"
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0. Foreign VAT transaction types (100, 8 and 5) can only be set on document level.
</Item>
<Item>
<position>2</position>
<calculationQuantity>2.000</calculationQuantity>
<productCode>666666</productCode>
</Item>
<Item>
<position>3</position>
<productCode>666666</productCode>
<calculationQuantity>2.000</calculationQuantity>
</Item>
<Item> <!-- (default quantity is 1)
<position>4</position>
<productCode>666666</productCode>
</Item>
...
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2014-00014</number> <!-- created document ID or number
<date>2014-03-26</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/>
</response>
Generic error messages (not related to concrete property):
Access denied. User account does not have sufficient privileges for the given request
Parameter named DeliveryNote needed.
Error creating delivery note (descrition)
Error messages which are related to properties are formated in a a way: "Error nr: N #propertyName - error description"
warehouseCode - Missing warehouse code
warehouseCode - Warehouse does not exist
date - Entry is mandatory
date - Document cannot be issued retroactively because document with later date was already issued.
dateOfSupply - Entry is mandatory
Errors for document items data are formated like shown bellow (X is item sequence number)
ItemX_productCode - Entry is mandatory
ItemX_productCode - Can not find product for code:
ItemX_inboundVatPercentage - Entry is mandatory
Update existing delivery note.Data must contain delivery note number to be able to identify document which is to be updated.
Parameters
DeliveryNote | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteUpdate">
<parameter name="DeliveryNote">
<!-- Parameters are identical to the parameters in DeliveryNoteCreate api
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2012-00014</number> <!-- updated document ID or number
<date>2012-09-26</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Error messages are returned in format as described in DeliveryNoteCreate api
</response>
Delete delivery note. Must specify parameter/s (number, number+date) to identify document for deleting.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteDelete">
<parameter name="number" value="2013-00014" />
<parameter name="date" type="Date" value="2013-03-26" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find delivery note for number
Can not delete. Found X delivery notes
Data cannot be deleted because they are needed or referenced by other documents or data.
Cancel delivery note. Must specify parameter/s (number, number+date) to identify document for cancelling.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
status | Status of cancelation document (draft, issuedInvoice). By Default status is issuedInvoice. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteCancel">
<parameter name="number" value="2013-00014" />
<parameter name="date" type="Date" value="2013-03-26" />
<parameter name="status" value="draft" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel delivery note for arguments number: 2013-00014 date: 2013-03-26"><error/> <!-- document could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find delivery note for number
Can not cancel. Found X delivery notes
Found X delivery notes X. You can only cancel one delivery note at a time
Can not cancel credit note X
Get list of delivery notes for criteria which is specified by API parameters.
Parameters
number | Document number |
dateFrom | The date which is used to select delivery notes whose date is following it |
dateTo | The date which is used to select delivery notes whose date is preceding it |
warehouse | Warehouse code |
dateOfSupply | The date of receival |
orderReference | Purchase order number |
serialNumber | Product serial number |
supplier | Buyer code, or buyer name |
costPosition | Cost position code |
product | Product code, or product name |
status | Possible values: Draft, IssuedInvoice, NotBooked, Booked, WithSalesInvoiceReference, WithoutSalesInvoiceReference, Opened, Closed, DocumentSentAlready, DocumentNotYetSent, DocumentSentByEMail, DocumentNotSentByEMail, WithWorkOrderReference, WithoutWorkOrderReference, CancellationDocument, CancelledDocument, DocumentNotSentOrPrinted, NotCancellationOrCancelledDocument |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteList">
<parameter name="status" value="Issued" />
<parameter name="dateFrom" type="Date" value="2012-09-26" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<DeliveryNotes>
<DeliveryNote>
<!-- structure of elements is the same as in DeliveryNoteGet
</DeliveryNote>
...
</DeliveryNotes>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request.
Invalid search key!
Invalid search value: X
Sends document by email to the recipient(s).
Parameters
number | Document number |
date | Document date (optional additional document identification) |
sender | Email sender (Optional) |
recipient | Comma delimited list of recipient(s) emails |
cc | CC email (Optional) |
bcc | BCC email (Optional) |
subject | Mail subject (Optional) |
message | Message text (Optional) |
useHtmlMessage | Send message text as HTML (Optional) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteSendByEmail">
<parameter name="number" value="2012-00014" />
<parameter name="date" type="Date" value="2012-09-26" />
<parameter name="sender" value="micka@kovac.com"/>
<parameter name="recipient" value="zoran@kovac.com,zlatko@kovac.com"/>
<parameter name="cc" value=""/>
<parameter name="bcc" value=""/>
<parameter name="subject" value="TEST d.o.o.: delivery notes nr. 0002/2010"/>
<parameter name="message" value="Message text"/>
<parameter name="useHtmlMessage" value="true"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges, mail sending failed
</response>
Error messages
Access denied. User account does not have sufficient privileges for the given request.
number asp.error.MandatoryEntry
stDok - Document does not exist
stDok - More then one document matches criteria !
Add image/attachment to delivery note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to delivery note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find delivery note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to delivery note and set is as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to delivery note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find delivery note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of delivery note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<DeliveryNote>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</DeliveryNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find delivery note for number: 2020-00001 Delivery note does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DeliveryNoteAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<DeliveryNote>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</DeliveryNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find delivery note for number: 2020-00001 Delivery note does not have attachemnts.
</response>
DocumentInboxImport | Import electronic document to document management inbox |
DocumentInboxAddEntry | Add an entry to document management inbox (document capture inbox) |
DocumentInboxList | List entries in the document management inbox |
Import electronic document to document inbox. This can be only a document which is unique to a specific organization and which contains all data needed to identify its type and receiver. Examples of such documents include ISO SEPA bank statements in XML, electronic invoices in XML (eSLOG, UBL), etc.
Parameters
checkExisting | Boolean parameter. If true, importing an already existing document will fail. The document is equal to an already existing document if document number or filename match existing/already imported document. |
allOrganizations | Boolean parameter. If true, the organization lookup will be performed before actual import is done. The document will be imported into the organization for which the document is destined according to the data it contains (VAT ID, TaxID, IBAN, etc.). |
electronicDocument | Electronic document file. This can be either ISO SEPA XML or eSLOG XML |
documentVisualization | PDF visualization of electronic document (optional parameter) |
automaticallyImportDocument | Optional parameter, that determines, that document (for now only received invoices and bank statements) will be automatically imported after successfully imported into inbox. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DocumentInboxImport">
<parameter name="checkExisting" value="true" />
<parameter name="allOrganizations" value="true" />
<parameter name="automaticallyImportDocument" value="true" />
<parameter name="electronicDocument">
<documentDate>2012-11-15 12:00:00<documentDate>
<fileName>ISO_sepa.xml<fileName>
<contents encoding="BASE64">ASDASDASDASD</contents>
</parameter>
<parameter name="documentVisualization">
<documentDate>2012-11-15 12:00:00<documentDate>
<fileName>ISO_sepa.pdf<fileName>
<contents encoding="BASE64">ASDASDASDASD</contents>
</parameter>
</method>
</request>
Add new entry to document inbox. This can be either a PDF document, scanned image, XML electronic invoice or even multiple files each of its own type.
Parameters
checkExisting | Boolean parameter. If true, importing an already existing document will fail. The document is equal to an already existing document if document date, partner and document number all match. |
automaticallyImportDocument | Optional parameter, that determines, that document (for now only received invoices and bank statements) will be automatically imported after successfully imported into inbox. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DocumentInboxAddEntry">
<parameter name="checkExisting" value="true" />
<parameter name="automaticallyImportDocument" value="true" />
<parameter name="document">
<documentDate>2012-11-15 12:00:00</documentDate>
<documentNumber>22309-001-003</documentNumber>
<documentType>PurchaseInvoice</documentType> <!-- Document type (Unknown, PurchaseInvoice, ReceivedSalesQuote, BankStatement, Contract, Advertising, ReceivedSalesOrder, ReceivedCreditNote, ReceivedAdvanceInvoice, GoodsReceipt, CashbookDailyTurnoverSummary, SalesInvoice, Compensation, PayrollDocuments, Other, SingleAdministrativeDocument)
<senderPartnerIdentifier>88888888</senderPartnerIdentifier>
<senderPartnerCode>00001</senderPartnerCode>
<senderPartnerName>Test Sender d.o.o.</senderPartnerName>
<emailSubject>Incoming mail subject</emailSubject>
<mailDescription>Description in incoming mail</mailDescription>
<receivedDate>2020-01-01</receivedDate>
<Attachments>
<Attachment>
<fileName>Invoice.pdf</fileName>
<fileType>PDF</fileType>
<contents encoding="BASE64">ASDASDASDASD</contents>
</Attachment>
<Attachment>
<fileName>Invoice.xml</fileName>
<fileType>XML</fileType>
<contents encoding="BASE64">ASDASDASDASD</contents>
</Attachment>
</Attachments>
</parameter>
</method>
</request>
List entries in the document management inbox.
Parameters
documentNumber | Document number received by mail. |
dateFrom | Document date from received by mail. |
dateTo | Document date to received by mail. |
receivalDateFrom | Mail receival from. |
receivalDateTo | Mail receival to. |
status | Status of mail. |
sequentialNumber | Sequential number of mail. |
senderName | Sender name. |
type | Type of mail. |
deliveryMethod | Delivery method of mail. |
description | Search by word or sentence from mail description. |
fileName | Search mail by their attachemnt filenames. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="DocumentInboxList">
<parameter name="status" value="Open" />
<parameter name="receivalDateFrom" type="Date" value="2017-01-01" />
<parameter name="receivalDateTo" type="Date" value="2021-01-01" />
</method>
</request>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<Document>
<businessYear>2021</businessYear>
<deliveryMethod>ElectronicViaWebServicesAPI</deliveryMethod>
<description>Incoming mail subject
------------------------------
Description in incoming mail</description>
<documentDate>2012-11-15</documentDate>
<documentNumber>22309-001-003</documentNumber>
<enteredTS>2021-03-18 08:14:01</enteredTS>
<receivedDate>2020-01-01</receivedDate>
<senderName>WorldStream B.V.</senderName>
<sequentialNumber>5</sequentialNumber>
<status>Open</status>
<type>PurchaseInvoice</type>
</Document>
<Document>
<businessYear>2021</businessYear>
<deliveryMethod>ElectronicViaWebServicesAPI</deliveryMethod>
<description>Incoming mail subject
------------------------------
Description in incoming mail</description>
<documentDate>2012-11-15</documentDate>
<documentNumber>22309-001-003</documentNumber>
<enteredTS>2021-03-18 08:13:10</enteredTS>
<receivedDate>2020-01-01</receivedDate>
<senderName>Tastno 2x</senderName>
<sequentialNumber>4</sequentialNumber>
<status>Open</status>
<type>PurchaseInvoice</type>
</Document>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- There are several different error messages possible.
</response>
BankStatementImport | Import bank statement file. |
Import bank statement file.
Parameters
IBAN | Bank account number (used when importing bank statements of type "IsoSepaXml", "ZbsXml") |
payPalAccount | PayPal account name (used when importing bank statements of type "PayPalCsv") |
importTransactionFeeAsOutflow | Can be used only with type "PayPalCsv". This parameter is optional, default this parameter is true. |
stripeAccount | Stripe account name (used when importing bank statements of type "StripeCsv") |
glsAccount | GLS account name (used when importing bank statements of type "GLSSpreadsheet") |
statementNumber | Bank statement number (optional, because it can be in the statement) |
type | Type of bank statement ("IsoSepaXml", "ZbsXml", "PayPalCsv", "StripeCsv", "GLSSpreadsheet", "PostaSlovenijeXml", "eracuniSpreadsheet") |
account | This parameter is mandatory in case of using type "eracuniSpreadsheet", to select for which account statement is beeing imported. It can contain IBAN or payment account name. |
statementData | Bank statement coded with base64 coder |
pdfStatementData | Bank statement pdf coded with base64 coder (optional) |
pdfStatementFileName | File name of bank statement pdf (optional) |
dateFormat | Can be used only for types "PayPalCsv" and "eracuniSpreadsheet". This parameter is optional, default format in case of "PayPalCsv" is "MM/DD/YYYY", all possible formats are: "MM/DD/YYYY" and "DD/MM/YYYY". Default format in case of "eracuniSpreadsheet" is "DD.MM.YYYY", all possible formats are: "DD.MM.YYYY", "DD.MM.YYYY.", "DD/MM/YYYY", "MM/DD/YYYY", "YYYY-MM-DD", "YYYY.MM.DD" and "YYYY.MM.DD.". |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BankStatementImport">
<parameter name="IBAN" value="SI56 0443 0000 0256 970" />
<parameter name="type" value="IsoSepaXml" />
<parametername="statementData" value="D94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyIgPz4NCjxEb2N1bWV..."/>
<parameter name="pdfStatementData" value="JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+Cn..."/>
<parameter name="pdfStatementFileName" value="test.pdf"/>
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BankStatementImport">
<parameter name="payPalAccount" value="payPalAccount@payPal.com" />
<parameter name="type" value="PayPalCsv" />
<parametername="statementData" value="D94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyIgPz4NCjxEb2N1bWV..."/>
<parameter name="pdfStatementData" value="JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+Cn..."/>
<parameter name="pdfStatementFileName" value="test.pdf"/>
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="BankStatementImport">
<parameter name="glsAccount" value="GLS Slovenija" />
<parameter name="type" value="GLSSpreadsheet" />
<parametername="statementData" value="D94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyIgPz4NCjxEb2N1bWV..."/>
<parameter name="pdfStatementData" value="JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+Cn..."/>
<parameter name="pdfStatementFileName" value="test.pdf"/>
</method>
</request>
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
Bank statement with attachement.
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<statementNumber>Bank statement number 31 was imported</statementNumber>
<pdfStatementFileName>PDF attachment added</pdfStatementFileName>
</response>
Bank statement without attachement.
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<statementNumber>Bank statement number 31 was imported</statementNumber>
<pdfStatementFileName>No PDF attachment added</pdfStatementFileName>
</response>
Response on error if one of required parameters is missing
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Parameter named <IBAN> is required."><error/>
</response>
Response on error if iban is not one of your
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Parameter named <IBAN> is not one of your bank accounts"><error/>
</response>
Response on error if xml data is missing or it is not correct
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Error importing data!"><error/>
</response>
Response on error if pdf attachement file is corrupted.
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="PDF file is corrupted!"><error/>
</response>
Get account balance from the general ledger.
Parameters
fiscalYear | Select fiscal year (business year). Fiscal year which is set as default will be used if absent from the request. |
accountNumber | General ledger account number |
partnerCode | If partner code is specified the balance will be calculated for that partner with only. |
voucherStatus | General ledger journal voucher status of entries used in balance calculation. Possible values are:
|
balanceDate | The date of the balance returned. |
costPosition | Cost center code. |
Example request and response
Example 1.
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerGetAccountBalance">
<parameter name="fiscalYear" value="2014" />
<parameter name="balanceDate" type="Date" value="2004-01-31" />
<parameter name="accountNumber" type="String" value="1200" />
<parameter name="partnerCode" type="String" value="003" />
<parameter name="voucherStatus" type="String" value="all" />
</method>
</request>
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 Apr 2009 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<AccountBalance accountNumber="1200" partnerCode="003" balanceCredit="11.00" balanceDebit="12.00" balance="-1.0" currency="EUR">
</response>
Get general ledger account statement entries.
Parameters
businessYear | Select business year. Business year which is set as default will be used if not specified. |
accountNumber | General ledger account number. |
partnerCode | If partner code is specified, only entries assigned to the given partner will be returned. |
document | If document ID is specified, the statement will include only entries assigned to the given document. Document string can containt the * (star) character to match entries where document Id matches the search string. |
transactionDateFrom | Entries for transactions from the given date |
transactionDateTo | Entries for transactions up to the given date |
documentDateFrom | Entries for document from date |
documentDateTo | Entries for documents up to given date |
dueDateFrom | Entry due date from |
dueDateTo | Entry due date to |
postingDateFrom | Entry posting date from |
postingDateTo | Entry posting date to |
transactionAmount | Filter out entries matching approximate transaction amount. If currency parameter is also specified, then the amount will be matched with the entry amount in the foreign currency. |
transactionCurrency | Use this criteria when you need to filter out transaction originating in a foreign currency |
costCentre | Filter out entries on the given cost centre. Character * (star) can be used for matching multiple cost center codes |
description | Filter out entries matching description (* character can be used) |
creditOrDebit | Optional to filter out only debit or credit transactions. Possible values are:
|
voucherStatus | Optional to limit list to entries depending on the GL journal voucher status. Possible values are:
|
entryStatus | Optional to specify entry status regarding document payment status. Possible values are:
|
Example request and response
Example 1.
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerAccountStatementGetEntries">
<parameter name="businessYear" value="2018" />
<parameter name="documentDateFrom" type="Date" value="2018-01-31" />
<parameter name="documentDateTo" type="Date" value="2018-02-28" />
<parameter name="accountNumber" type="String" value="1200" />
<parameter name="partnerCode" type="String" value="003" />
<parameter name="transactionAmount" type="Decimal" value="50.00" />
</method>
</request>
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 Apr 2009 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<AccountStatement>
<businessYear>
<account>
<Entry>
<amountDebit>200000.000</amountDebit>
<costPosition></costPosition>
<description>KBM-Infond, družba za upravljanje d.o.o.</description>
<document></document>
<documentDate>2011-12-31</documentDate>
<dueDate>2011-12-31</dueDate>
<generalLedgerAccountNumber>12000</generalLedgerAccountNumber>
<partner>KBM-Infond, družba za upravljanje d.o.o.</partner>
<partnerCode>1142</partnerCode>
<referencedDocument></referencedDocument>
<sequenceNumber>89</sequenceNumber>
<status>0</status>
<transactionDate>2011-12-31</transactionDate>
<vatDate>2011-12-31</vatDate>
</Entry>
<Entry>
<amountDebit>200000.000</amountDebit>
<costPosition></costPosition>
<description>KBM-Infond, družba za upravljanje d.o.o.</description>
<document></document>
<documentDate>2011-12-31</documentDate>
<dueDate>2011-12-31</dueDate>
<generalLedgerAccountNumber>12000</generalLedgerAccountNumber>
<partner>KBM-Infond, družba za upravljanje d.o.o.</partner>
<partnerCode>1142</partnerCode>
<referencedDocument></referencedDocument>
<sequenceNumber>268</sequenceNumber>
<status>0</status>
<transactionDate>2011-12-31</transactionDate>
<vatDate>2011-12-31</vatDate>
</Entry>
<Entry>
<amountDebit>200000.000</amountDebit>
<costPosition></costPosition>
<description>KBM-Infond, družba za upravljanje d.o.o.</description>
<document></document>
<documentDate>2011-12-31</documentDate>
<dueDate>2011-12-31</dueDate>
<generalLedgerAccountNumber>12000</generalLedgerAccountNumber>
<partner>KBM-Infond, družba za upravljanje d.o.o.</partner>
<partnerCode>1142</partnerCode>
<referencedDocument></referencedDocument>
<sequenceNumber>447</sequenceNumber>
<status>0</status>
<transactionDate>2011-12-31</transactionDate>
<vatDate>2011-12-31</vatDate>
</Entry>
.....
<AccountStatement>
</response>
GeneralLedgerJournalVoucherGet | Get general ledger journal voucher by document number, or by combination of document number and business year. |
GeneralLedgerJournalVoucherGetPDF | Get PDF for general ledger journal voucher by document number, or by combination of document number and business year. |
GeneralLedgerJournalVoucherCreate | Create new general ledger journal voucher. |
GeneralLedgerJournalVoucherUpdate | Update existing general ledger journal voucher. |
GeneralLedgerJournalVoucherDelete | Delete general ledger journal voucher. |
GeneralLedgerJournalVoucherList | Get list of general ledger journal vouchers for specified criteria. |
GeneralLedgerJournalVoucherCancel | Cancel general ledger journal voucher. |
Get general ledger journal voucher by document number, or by combination of document number and business year.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (00002) |
businessYear | Business year. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherGet">
<parameter name="number" value="00003"/>
<parameter name="businessYear" value="2016"/>
</method>
</request>
Response
<response status="ok">
<GeneralLedgerJournalVoucher>
<amountCredit>6404.870</amountCredit>
<amountDebit>6404.870</amountDebit>
<businessEventType>salesInvoices</businessEventType>
<businessEventTypeDescription>izdani raÄuni</businessEventTypeDescription>
<businessYear>2016</businessYear>
<createdBy>MICKA KOVAC</createdBy>
<currency>EUR</currency>
<dateOfPosting>2016-09-29</dateOfPosting>
<dateOfTransaction>2016-09-29</dateOfTransaction>
<number>3</number>
<numberAsString>00003</numberAsString>
<postedBy>MICKA KOVAC</postedBy>
<status>open</status>
<Items>
<Item>
<amountCredit>6391.530</amountCredit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<description>test</description>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-07-29</dueDate>
<exchangeRate>0.913076</exchangeRate>
<foreignAmount>7000.000</foreignAmount>
<foreignCurrency>USD</foreignCurrency>
<generalLedgerAccountNumber>008</generalLedgerAccountNumber>
<partner>ABANKA ,D.D.</partner>
<partnerCode>87</partnerCode>
<sequenceNumber>7</sequenceNumber>
<status>0</status>
<transactionDate>2016-09-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
<Item>
<amountDebit>6391.530</amountDebit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<description>test</description>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-07-29</dueDate>
<exchangeRate>0.913076</exchangeRate>
<foreignAmount>7000.000</foreignAmount>
<foreignCurrency>USD</foreignCurrency>
<generalLedgerAccountNumber>007</generalLedgerAccountNumber>
<partner>ABANKA ,D.D.</partner>
<partnerCode>87</partnerCode>
<sequenceNumber>6</sequenceNumber>
<status>0</status>
<transactionDate>2016-09-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
<Item>
<amountCredit>7.240</amountCredit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<description>test</description>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-07-29</dueDate>
<exchangeRate>0.007240</exchangeRate>
<foreignAmount>1000.000</foreignAmount>
<foreignCurrency>ALL</foreignCurrency>
<generalLedgerAccountNumber>00800</generalLedgerAccountNumber>
<partner>TEST BOJAN</partner>
<partnerCode>PA00048</partnerCode>
<sequenceNumber>5</sequenceNumber>
<status>0</status>
<transactionDate>2016-09-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
<Item>
<amountDebit>7.240</amountDebit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<description>test</description>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-07-29</dueDate>
<exchangeRate>0.007240</exchangeRate>
<foreignAmount>1000.000</foreignAmount>
<foreignCurrency>ALL</foreignCurrency>
<generalLedgerAccountNumber>001</generalLedgerAccountNumber>
<partner>TEST BOJAN</partner>
<partnerCode>PA00048</partnerCode>
<sequenceNumber>4</sequenceNumber>
<status>0</status>
<transactionDate>2016-09-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
<Item>
<amountCredit>5.000</amountCredit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-08-12</dueDate>
<generalLedgerAccountNumber>763</generalLedgerAccountNumber>
<partner>4 Partner Foreign Company</partner>
<partnerCode>PA00069</partnerCode>
<sequenceNumber>3</sequenceNumber>
<status>0</status>
<transactionDate>2016-07-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
<Item>
<amountCredit>1.100</amountCredit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-08-12</dueDate>
<generalLedgerAccountNumber>26000</generalLedgerAccountNumber>
<partner>4 Partner Foreign Company</partner>
<partnerCode>PA00069</partnerCode>
<sequenceNumber>2</sequenceNumber>
<status>0</status>
<transactionDate>2016-07-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
<Item>
<amountDebit>6.100</amountDebit>
<businessYear>2016</businessYear>
<costPosition></costPosition>
<document>RA2016-00046</document>
<documentDate>2016-07-29</documentDate>
<dueDate>2016-08-12</dueDate>
<generalLedgerAccountNumber>121</generalLedgerAccountNumber>
<partner>4 Partner Foreign Company</partner>
<partnerCode>PA00069</partnerCode>
<sequenceNumber>1</sequenceNumber>
<status>0</status>
<transactionDate>2016-07-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
</Items>
</GeneralLedgerJournalVoucher>
</response>
Get PDF for general ledger journal voucher by document number, or by combination of document number and business year.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (00002) |
businessYear | Business year. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherGet">
<parameter name="number" value="00003"/>
<parameter name="businessYear" value="2016"/>
</method>
</request>
Response
<response status="ok">
<number>2012-01293</number>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nNVaS2/jNhC+51fovIBdviUBgY...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find general ledger voucher for number: 0003 and business year: 2016">
</error>
</response>
Create new general ledger journal voucher. In tag "Items" you specifie general ledger journal entries.
Parameters
GeneralLedgerJournalVoucher | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherCreate">
<parameter name="generalLedgerJournalVoucher">
<businessEventType>salesInvoices</businessEventType> <!-- Possible values: other, manuallyClearedOpenItems, salariesRemuneration, currencyDifferences, VATReport, compensations, closingOfTheFiscalYear, deliveryNotes, goodsReceipts, salesInvoices, advanceInvoices, creditNotes, debitNotes, calculationOfInterest, receivedInvoices, receivedAdvanceInvoices, receivedCreditNotes, receivedDebitNotes, fixedAssets, openingOfGLJournal, openingGeneralLedgerJournalVoucherUnreconciled, travelOrders, bankStatements, bankStatementsForeignCurrency, cashbook, priceChanges, inventoryOfGoods, internalMovements, payroll, securities, allowanceSettlement, settlementUnderWorkContract, rentSettlements, royaltySettlement, meetingsFeeSettlement, apprenticePaySettlement, dividendSettlement
<businessYear>2016</businessYear> <!-- business year of posting (mandatory)
<dateOfPosting>2016-09-29</dateOfPosting> <!-- date of posting (mandatory)
<dateOfTransaction>2016-09-29</dateOfTransaction> <!-- date of transaction/period date(mandatory)
<number>4</number> <!-- sequential number of general ledger journal voucher in selected business year
<status>open</status> <!-- status of general ledger journal voucher. Possible values: open, closed
<remarks>test</remarks> <!-- remarks for general ledger journal voucher
<glJournalVoucherTypeCode>TEM-0067</glJournalVoucherTypeCode> <!-- company defined general ledger journal voucher type
<Items>
<Item>
<amountCredit>6391.530</amountCredit> <!-- credit amount mandatory if no debit amount
<costPosition></costPosition> <!-- cost position
<description>test</description> <!-- description max length: 250 (mandatory)
<document>RA2016-00046</document> <!-- document number
<referencedDocument></referencedDocument> <!-- referenced document
<documentDate>2016-07-29</documentDate> <!-- document date
<dueDate>2016-07-29</dueDate> <!-- document due date
<exchangeRate>0.913076</exchangeRate> <!-- enter if foreign amount is inserted
<foreignAmount>7000.000</foreignAmount> <!-- foreign amount
<foreignCurrency>USD</foreignCurrency> <!-- foreign currency
<generalLedgerAccountNumber>008</generalLedgerAccountNumber> <!-- general ledger account number (mandatory)
<partner>ABANKA ,D.D.</partner> <!-- partner name (mandatory if no partner code <partnerCode> parameter)
<partnerCode>87</partnerCode> <!-- partner code (mandatory if no partner name <partner> parameter)
<sequenceNumber>7</sequenceNumber> <!-- sequential number of entry
<transactionDate>2016-09-29</transactionDate> <!-- date of transaction/period date(mandatory)
<vatDate>2016-07-29</vatDate> <!-- VAT date
</Item>
<Item>
<amountDebit>6391.530</amountDebit> <!-- debit amount mandatory if no credit amount
<costPosition></costPosition>
<description>test</description>
<document>RA2016-00046</document>
<referencedDocument></referencedDocument> <!-- referenced document
<documentDate>2016-07-29</documentDate>
<dueDate>2016-07-29</dueDate>
<exchangeRate>0.913076</exchangeRate>
<foreignAmount>7000.000</foreignAmount>
<foreignCurrency>USD</foreignCurrency>
<generalLedgerAccountNumber>007</generalLedgerAccountNumber>
<partner>ABANKA ,D.D.</partner>
<partnerCode>87</partnerCode>
<sequenceNumber>6</sequenceNumber>
<status>0</status>
<transactionDate>2016-09-29</transactionDate>
<vatDate>2016-07-29</vatDate>
</Item>
...
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0003</number> <!-- created general ledger journal voucher number
<businessYear>2016/businessYear> <!-- general ledger journal voucher business year
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Update existing general ledger journal voucher.Data must contain general ledger journal voucher number and business year to be able to identify document which is to be updated.
Parameters
GeneralLedgerJournalVoucher | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherUpdate">
<parameter name="GeneralLedgerJournalVoucher">
<businessYear>2016</businessYear> <!-- general ledger journal voucher business year is mandatory in UPDATE
<number>3</number> <!-- general ledger journal voucher number is mandatory in UPDATE (Can use sequential document number (example: 12), or formatted number (example: 0003))
<!-- Parameters are identical to the parameters in GeneralLedgerJournalVoucherCreate api
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>0003</number> <!-- updated general ledger journal voucher number
<businessYear>2016/businessYear> <!-- general ledger journal voucher business year
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Delete general ledger journal voucher. Must specify parameter/s (number and business year) to identify document for deleting.
Parameters
number | General ledger journal voucher number |
businessYear | General ledger journal voucher date |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherDelete">
<parameter name="number" value="0003" />
<parameter name="businessYear" value="2016" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- general ledger journal voucher could not be found, no privileges,
</response>
Cancel general ledger journal voucher. Must specify parameter/s (number and business year) to identify document for canceling.
Parameters
number | General ledger journal voucher number |
businessYear | General ledger journal voucher date |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherCancel">
<parameter name="number" value="0003" />
<parameter name="businessYear" value="2016" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2016 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel general ledger journal voucher for number: 0003"><error/> <!-- general ledger journal voucher could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find general ledger voucher for number
Can not cancel general ledger journal voucher due to: X
Get list of general ledger journal vouchers for criteria which is specified by API parameters.
Parameters
number | General ledger journal voucher number |
dateFrom | The date which is used to select general ledger journal vouchers whose period date is following it |
dateTo | The date which is used to select general ledger journal vouchers whose period date is preceding it |
status | Status of general ledger journal vouchers. Possible values: Opened, Closed, Unbalanced and NotTransferred. |
remarks | Search from remarks on general ledger journal voucher |
businessYear | Search by business year |
businessEventType | Search by business event type |
profitAndLossAccountType | Search by user defined type. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GeneralLedgerJournalVoucherList">
<parameter name="status" value="opened" />
<parameter name="businessYear" value="2016" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<GeneralLedgerJournalVouchers>
<GeneralLedgerJournalVoucher>
<!-- structure of elements is the same as in GeneralLedgerJournalVoucherGet
</GeneralLedgerJournalVoucher>
...
</GeneralLedgerJournalVouchers>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
GoodsReceiptGet | Get goods receipts by document number, or by combination of document number and date. |
GoodsReceiptGetPDF | Get PDF file for goods receipt by document number, or by combination of document number and date. |
GoodsReceiptCreate | Create new goods receipt. |
GoodsReceiptUpdate | Update existing goods receipt. |
GoodsReceiptDelete | Delete goods receipt. |
GoodsReceiptCancel | Cancel goods receipt. |
GoodsReceiptList | Get list of goods receipts for specified criteria |
GoodsReceiptSendByEmail | Sends document by email to the recipient(s). |
GoodsReceiptAttachmentAdd | Add attachment to goods receipt. |
GoodsReceiptAttachmentSetDefault | Add attachment to goods receipt and set is as default. |
GoodsReceiptAttachmentGet | Get default attachment of goods receipt. |
GoodsReceiptAttachmentList | Get all attachments of goods receipt. |
Get goods receipt by document number, or by combination of document number and date.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptGet">
<parameter name="number" value="2012-00014" />
<parameter name="date" type="Date" value="2012-09-26" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 November 2012 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<GoodsReceipt>
<number>2012-00014</number>
<date>2012-09-26</date>
<dateOfReceival>2012-09-26</dateOfReceival>
<businessYear>2012</businessYear>
<city>Ljubljana</city>
<costPosition>12</costPosition>
<purchaseOrder>13</purchaseOrder>
<warehouseCode>8956</warehouseCode>
<status>Issued</status>
<remarks>my remarks on: #(10. oktobar 2012 15:26:28)</remarks>
<supplierCity>Oslo</supplierCity>
<supplierCode>666000</supplierCode>
<supplierDeliveryNote>11</supplierDeliveryNote>
<supplierDeliveryNoteDate>2012-09-26</supplierDeliveryNoteDate>
<supplierName>6 Partner Buyer Supplier</supplierName>
<supplierPostalCode>0182</supplierPostalCode>
<supplierStreet>Brennerivn.11</supplierStreet>
<supplierTaxNumber>SI89133749</supplierTaxNumber>
<cancelledDocumentRef>2012-00015</cancelledDocumentRef> <-- Reference to cancelled document
<Items>
<Item>
<position>1</position>
<productCode>666666</productCode>
<calculationQuantity>2.000</calculationQuantity>
<associatedSerialNumbers> 222, 111</associatedSerialNumbers>
<supplierPrice>10.00000</supplierPrice>
<supplierPriceAmount>20.00000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>10.00000</supplierPriceInCalculationCurrency>
<supplierAmountInCalculationCurrency>20.00000</supplierAmountInCalculationCurrency>
<supplierDiscountPercentage>10.00</supplierDiscountPercentage>
<supplierDiscountAmount>2.00000</supplierDiscountAmount>
<costsOfTransportPercentage>5.00</costsOfTransportPercentage>
<costsOfTransportAmount>0.90000</costsOfTransportAmount>
<costsOfCustomsPercentage>2.00</costsOfCustomsPercentage>
<costsOfCustomsAmount>0.36000</costsOfCustomsAmount>
<inboundVatPercentage>20.00</inboundVatPercentage>
<inboundVatAmount>3.60000</inboundVatAmount>
<costsDirectPercentage>1.00</costsDirectPercentage>
<costsDirectAmount>0.18000</costsDirectAmount>
<inventoryPrice>9.72000</inventoryPrice>
<inventoryAmount>19.44000</inventoryAmount>
<grossMarginPercentage>10.00</grossMarginPercentage>
<grossMarginAmount>0.97200</grossMarginAmount>
<grossPrice>10.69200</grossPrice>
<outgoingVatPercentage>20.00</outgoingVatPercentage>
<outgoingVatAmount>2.33280</outgoingVatAmount>
<retailMarginAmount>1.94400</retailMarginAmount>
<retailMarginPercentage>20.00</retailMarginPercentage>
<retailPrice>11.66400</retailPrice>
<salesPrice>13.99680</salesPrice>
<salesPriceAmount>27.99360</salesPriceAmount>
<calculationCurrency>EUR</calculationCurrency>
</Item>
</Items>
</GoodsReceipt>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not find goods receipt for number: XXX and date: XXX"><error/>
</response>
Error messages:
Parameter named "number" is required.
Can not find goods receipt for number: XXX and date: XXX
Get PDF for goods receipt by document number, or by combination of document number and date. Response (on OK) returns binary record for PDF file coded with Base64 coding.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2014-00001) |
date | Document date |
costPosition | Cost position |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptGetPDF">
<parameter name="number" value="12/2009" />
<parameter name="date" type="Date" value="2009-12-15" />
</method>
</request>
Response
<response status="ok">
<number>2012-01293</number>
<date>2013-01-02</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find goods receipt for number: 2013-01293 and date: 2013-01-02">
</error>
</response>
Create new goods receipt.
Mandatory document attributes are: supplierCode, warehouseCode.Mandatory document item attribute is productCode. Other attributes are optional and web service will use default values and those from specified product. Default amount is 1, default date is day of execution. Amounts in item calculations can be specified by prices, amounts or percantages, where related values will be automaticly recalculated.
Additional optional item fields are: calculationQuantity, associatedSerialNumbers, supplierPrice, supplierPriceAmount, supplierPriceCurrency, supplierPriceInCalculationCurrency, supplierAmountInCalculationCurrency, supplierDiscountPercentage, supplierDiscountAmount, costsOfTransportPercentage, costsOfTransportAmount, costsOfCustomsPercentage, costsOfCustomsAmount, inboundVatPercentage, inboundVatAmount, costsDirectPercentage, costsDirectAmount, inventoryPrice, inventoryAmount, grossMarginPercentage, grossMarginAmount, grossPrice, outgoingVatPercentage, outgoingVatAmount, retailMarginAmount, retailMarginPercentage, retailPrice, salesPrice, salesPriceAmount.
Attribute associatedSerialNumbers is mandatory for products which are declared to use serial numbers (numbers delimited by comma).
Status of document is automatically set to "issued" if parameter number is specified in parameter list, or if it's status is explicitelly set to issued.
Parameters
GoodsReceipt | Complex parameter with data tags like: |
status | Possible values: Draft, Issued |
Special purpose documen item attributes are: inventoryPriceChangeApplyToArticle, grossPriceChangeApplyToArticle, salesPriceChangeApplyToArticle. If some is set to true, related price in product will be modified acording to the price in good receipt item.
If price calculation is not specified at all in XML (all calues are missing), default price calculation from article is taken or new calculation is created based on inventory, gross and sales price from article. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptCreate">
<parameter name="GoodsReceipt">
<date>2012-09-26</date> <!-- document date
<dateOfReceival>2012-09-26</dateOfReceival> <!-- date of receival
<businessYear>2012</businessYear> <!-- (Optional)
<purchaseOrder>13</purchaseOrder> <!-- (Optional)
<warehouseCode>8956</warehouseCode> <!-- (Mandatory)
<status>Issued</status> <!-- (Optional) Issued, Draft, default: Issued
<costPosition>120</costPosition> <!-- (Optional)
<supplierCode>123456</supplierCode> <!-- (Mandatory)
<supplierDeliveryNote>11</supplierDeliveryNote> <!-- (Optional)
<supplierDeliveryNoteDate>2012-09-26</supplierDeliveryNoteDate>
<remarks>Remark on goods receipt</remarks> <!-- (Optional)
<documentLanguage>Slovene</documentLanguage> <!-- (Optional) Possible document language: Slovene, English, German, Italian and Croatian
<Items>
<Item> <!-- item specified with ref to product
<position>1</position> <!-- position of item
<productCode>666666</productCode> <!-- product code
<calculationQuantity>2</calculationQuantity> <!-- quantity (default is 1)
<associatedSerialNumbers> 222, 111</associatedSerialNumbers> <!-- serial numbers (a number per calculationQuantity of products)
<discountPercentage>10</discountPercentage> <!-- discount percentage
</Item>
<Item>
<position>2</position> <!-- position of item
<calculationQuantity>2.000</calculationQuantity>
<productCode>666666</productCode>
<salesPriceAmount>30</salesPriceAmount> <!-- sales amount (sales price * calculationQuantity)
<associatedSerialNumbers>111, 222</associatedSerialNumbers>
</Item>
<Item>
<position>3</position>
<productCode>666666</productCode>
<calculationQuantity>2.000</calculationQuantity>
<supplierPriceAmount>60</supplierPriceAmount> <!-- sales amount (sales amount / calculationQuantity)
<associatedSerialNumbers>111, 222</associatedSerialNumbers>
</Item>
<Item> <!-- (default quantity is 1)
<position>4</position>
<productCode>666666</productCode>
<associatedSerialNumbers>123</associatedSerialNumbers>
<supplierPrice>30.00</supplierPrice>
</Item>
<Item>
<position>5</position>
<productCode>666666</productCode>
<calculationQuantity>2.000</calculationQuantity>
<supplierPrice>10</supplierPrice>
<costsOfCustomsPercentage>5.00</costsOfCustomsPercentage> <!-- customs cost percantage
<salesPrice>30</salesPrice> <!-- sales price
<associatedSerialNumbers>111, 222</associatedSerialNumbers>
<inventoryPriceChangeApplyToArticle>true</inventoryPriceChangeApplyToArticle> <!-- special atribute for create and update function
<grossPriceChangeApplyToArticle>true</grossPriceChangeApplyToArticle> <!-- special atribute for create and update function
<salesPriceChangeApplyToArticle>true</salesPriceChangeApplyToArticle> <!-- special atribute for create and update function
</Item>
...
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2012-00014</number> <!-- created document ID or number
<date>2012-09-26</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/>
</response>
Generic error messages (not related to concrete property):
Access denied. User account does not have sufficient privileges for the given request
Parameter named GoodsReceipt needed.
Error creating Goods receipt (descrition)
Goods receipt for number: X already exists!
Error messages which are related to properties are formated in a a way: "Error nr: N #propertyName - error description"
supplierCode - Missing supplier code
supplierCode - Can not find supplier for code:
warehouseCode - Missing warehouse code
warehouseCode - Warehouse does not exist
supplierTaxNumber - Tax number invalid
supplierTaxNumber - ID nr. for VAT invalid
supplierName - Entry is mandatory
city - Entry is mandatory
date - Entry is mandatory
date - Document cannot be issued retroactively because document with later date was already issued.
dateOfReceival - Entry is mandatory
Errors for document items data are formated like shown bellow (X is item sequence number)
ItemX_associatedSerialNumbers - Serial number entry is required for each piece of product.
ItemX_productCode - Entry is mandatory
ItemX_productCode - Can not find product for code:
ItemX_inboundVatPercentage - Entry is mandatory
Update existing goods receipt.Data must contain goods receipt number to be able to identify document which is to be updated.
Parameters
GoodsReceipt | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptUpdate">
<parameter name="GoodsReceipt">
<!-- Parameters are identical to the parameters in GoodsReceiptCreate api
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>2012-00014</number> <!-- updated document ID or number
<date>2012-09-26</date> <!-- date of document
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Error messages are returned in format as described in GoodsReceiptCreate api
</response>
Delete sales order. Must specify parameter/s (number, number+date) to identify document for deleting.
Parameters
number | Document number |
date | Document date |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptDelete">
<parameter name="number" value="2012-00014" />
<parameter name="date" type="Date" value="2012-09-26" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find goods receipt for number
Can not delete. Found X goods receipts
Data cannot be deleted because they are needed or referenced by other documents or data.
Cancel goods receipt. Must specify parameter/s (number, number+date) to identify document for canceling.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
status | Status of cancelation document (draft, issuedInvoice). By Default status is issuedInvoice. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptCancel">
<parameter name="number" value="2013-00014" />
<parameter name="date" type="Date" value="2013-03-26" />
<parameter name="status" value="draft" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel goods receipt for arguments number: 2013-00014 date: 2013-03-26"><error/> <!-- document could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find goods receipt for number
Can not cancel. Found X goods receipts
Found X goods receipts X. You can only cancel one goods receipt at a time
Can not cancel goods receipt X
Get list of goods receipts for criteria which is specified by API parameters.
Parameters
number | Document number |
dateFrom | The date which is used to select goods receipts whose date is following it |
dateTo | The date which is used to select goods receipts whose date is preceding it |
warehouse | Warehouse code |
dateOfReceival | The date of receival |
supplierDeliveryNote | Delivery Note number |
purchaseOrder | Purchase number |
serialNumber | Product serial number |
supplier | Supplier name |
costPosition | Cost position code |
product | Product code, or product name |
remarks | Document remarks |
status | Possible values: Draft, Issued, Booked, NotBooked, CancellationDocument, CancelledDocument, WithReceivedInvoiceReference, WithoutReceivedInvoiceReference |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptList">
<parameter name="status" value="Issued" />
<parameter name="dateFrom" type="Date" value="2012-09-26" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<GoodsReceipts>
<GoodsReceipt>
<!-- structure of elements is the same as in GoodsReceiptGet
</GoodsReceipt>
...
</GoodsReceipts>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
Possible error messages:Access denied. User account does not have sufficient privileges for the given request.Invalid search key!Invalid search value: X
Sends document by email to the recipient(s).
Parameters
number | Document number |
date | Document date (optional additional document identification) |
sender | Email sender (Optional) |
recipient | Comma delimited list of recipient(s) emails |
cc | CC email (Optional) |
bcc | BCC email (Optional) |
subject | Mail subject (Optional) |
message | Message text (Optional) |
useHtmlMessage | Send message text as HTML (Optional) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptSendByEmail">
<parameter name="number" value="2012-00014" />
<parameter name="date" type="Date" value="2012-09-26" />
<parameter name="sender" value="micka@kovac.com"/>
<parameter name="recipient" value="zoran@kovac.com,zlatko@kovac.com"/>
<parameter name="cc" value=""/>
<parameter name="bcc" value=""/>
<parameter name="subject" value="TEST d.o.o.: Goods receipts nr. 0002/2010"/>
<parameter name="message" value="Message text"/>
<parameter name="useHtmlMessage" value="true"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges, mail sending failed
</response>
Error messages
Access denied. User account does not have sufficient privileges for the given request.
number asp.error.MandatoryEntry
stDok - Document does not exist
stDok - More then one document matches criteria !
Add image/attachment to goods receipt.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to goods receipt 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find goods receipt for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to goods receipt and set is as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to goods receipt 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find goods receipt for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of goods receipt.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<GoodsReceipt>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</GoodsReceipt>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find goods receipt for number: 2020-00001 Goods receipt does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="GoodsReceiptAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<GoodsReceipt>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</GoodsReceipt>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find goods receipt for number: 2020-00001 Goods receipt does not have attachemnts.
</response>
InternalMovementGet | Get internal movement by document number, or by combination of document number and date. |
InternalMovementGetPDF | Get PDF file for internal movement by document number, or by combination of document number and date. |
InternalMovementCreate | Create new internal movement. |
InternalMovementUpdate | Update existing internal movement. |
InternalMovementDelete | Delete internal movement. |
Get internal movements by number.
Parameters
number | Number of internal movement. |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="InternalMovementGet">
<parameter name="number" value="055/11" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<InternalMovement>
</InternalMovement>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find internal movement number: 055/11,
</response>
Create new internal movement.
Parameters
InternalMovement | Internal movement's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="InternalMovementCreate">
<parameter name="InternalInventoryChangeDoc">
<date>2014-12-13</date> <!-- Mandatory
<status>Issued</status>
<remarks>adicijski text</remarks>
<warehouseFromCode>MP</warehouseFromCode> <!-- Mandatory
<warehouseCode>8956</warehouseCode> <!-- Mandatory
<Items>
<Item>
<calculationQuantity>2</calculationQuantity> <!-- Mandatory
<productCode>666666</productCode> <!-- Mandatory
</Item>
<Item>
<calculationQuantity>8</calculationQuantity> <!-- Mandatory
<productCode>666555</productCode> <!-- Mandatory
</Item>
</Items>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="internal movement for number: 055/11 already exists!><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" must be specified., missing mandatory attributes, invalid values, no privileges, Error creating internal movement
</response>
Update existing internal movement.
Parameters
InternalMovement | Product's data in xml substructure |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="InternalMovementUpdate">
<parameter name="InternalMovement">
<date>2014-12-13</date> <!-- Mandatory
<status>Issued</status>
<remarks>adicijski text</remarks>
<warehouseFromCode>MP</warehouseFromCode> <!-- Mandatory
<warehouseCode>8956</warehouseCode> <!-- Mandatory
<Items>
<Item>
<calculationQuantity>2</calculationQuantity> <!-- Mandatory
<productCode>666666</productCode> <!-- Mandatory
</Item>
<Item>
<calculationQuantity>8</calculationQuantity> <!-- Mandatory
<productCode>666555</productCode> <!-- Mandatory
</Item>
</Items>
</parameter>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find internal movement for number: 055/11, missing mandatory attributes, invalid values, no privileges,
</response>
Delete internal movement.
Parameters
number | Unique identifier for internal movement. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="InternalMovementDelete">
<parameter name="number" value="055/11" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find internal movement for number: 055/11, Can not delete. Found 3 internal movement with number 055,
</response>
Please check the API reference documentation for PartnerAPI here https://e-racuni.com/obracuni/ApiDocumentation.
PartnerAPI exposes the functionality of the partner list GUI to developer. Most of partner editing features are available via API methods in this category. The API user account needs to own the same privileges as the regular GUI to get access to features via the API.
Below you will find examples on how to use the partner API. Some examples are written using JSON request notation, some examples are written in XML and some examples use curl command line tool to illustrate multiple way on how you can use the API.
Please use the API developer panel to generate API request source in a language of your preference. JSON, XML, Linux command line and PHP request source can be automatically generated by the API developer panel tool. API developer panel is available at: |
Here is a simple example on how to create a B2B customerusing JSON API request.
POST https://e-racuni.com/WebServicesSI/API
Content-Type: application/json
{
"username": "MICKA",
"md5pass": "1234567890a1c85dc0c1234218acb900",
"token": "1234562ADC3A123001234D00B0C71E0EC",
"method": "SalesInvoiceCreate",
"parameters": {
"partner": {
"companyType": "Ltd",
"companyName": "Pravna oseba",
"eMail": "pravna.oseba@oseba.si",
"Addresses": [
{
"type": "Primary",
"country": "SI",
"postalCode": "2000",
"street": "Mariborska 1"
}
],
"BuyerData": {
"buyerCode": "testBuyer0202"
}
}
}
}
Here is a simple example on how to create a B2C customerusing JSON API request.
POST https://e-racuni.com/WebServicesSI/API
Content-Type: application/json
{
"username": "MICKA",
"md5pass": "1234567890a1c85dc0c1234218acb900",
"token": "1234562ADC3A123001234D00B0C71E0EC",
"method": "SalesInvoiceCreate",
"parameters": {
"partner": {
"gender": "female",
"lastName": "Fizična",
"firstName": "Oseba",
"eMail": "fizicna.oseba@oseba.si",
"Addresses": [
{
"type": "Primary",
"country": "SI",
"postalCode": "2000",
"street": "Mariborska 1"
}
],
"BuyerData": {
"buyerCode": "testBuyer0202"
}
}
}
}
PartnerGetByID | Get partner by partner ID. |
PartnerGetByCode | Get partner by partner's code. |
PartnerGetByDocumentID | Get partner by partner's documentID (internal identificator from program). |
PartnerCreate | Create new partner. |
PartnerUpdate | Update existing partner. |
PartnerImport | Import partner by creating new and/or updating existing ones. |
PartnerDelete | Delete partner. |
PartnerList | Get list of partners for specified criteria. |
PartnerListBuyers | Get list of buyers for specified criteria. |
PartnerListSuppliers | Get list of suppliers for specified criteria. |
PartnerListEmployees | Get list of employees for specified criteria. |
PartnerBuyerCreditLimitGet | Get partner buyer credit limit with unpaid amount by invoices and posted debt. |
PartnerAttachmentAdd | Add attachment to partner. |
PartnerAttachmentSetDefault | Add attachment to partner and set is as default. |
PartnerAttachmentGet | Get default attachment of partner. |
PartnerAttachmentList | Get all attachments of partner. |
PartnerAvatarAdd | Add partner's avatar. |
PartnerAvatarGet | Get partner's avatar. |
PartnerAvatarRemove | Remove partner's avatar. |
Get partner by partner ID.
Parameters
ID | Partner ID (partner taxNumber accepted too). Partner ID is external number (matična številka) in case of legal person and in case of natural person it is registration number (EMŠO) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerGetByID">
<parameter name="ID" value="73691234" />
</method>
</request>
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<Partner>
<ID>02169711</ID> <!-- Partner ID.
<partnerCode>111</partnerCode> <!-- Partner code.
<taxNumber>02169711</taxNumber> <!-- Tax number
<vatID>1587277000</vatID> <!-- VAT number
<companyName>Micka d.o.o </companyName> <!-- Company name
<companyType>Organization</ companyType> <!-- Type of company. (Contractor, Ltd, Plc, Co, Organization, Subsidiary, Association, Direction, Unit, Division, Edu, Gov, Charity, Cooperative)
<vatRegistration>Unknown</vatRegistration> <!-- VAT reg type (Unknown, None, Registered)
<dateOfRegistration></ dateOfRegistration> <!-- Company establishment date
<branchClassification></branchClassification> <!-- Branch classification
<firstName>Micka</firstName> <!-- For legal person is first name of contact person
<lastName>Kovac</lastName> <!-- For legal person is last name of contact person
<gender>female</ gender> <!-- Type of person sex. (male, female, unknown)
<dateOfBirth></dateOfBirth> <!-- For natural person only birth date
<maritalStatus></maritalStatus> <!-- For natural person (single, married, widowed, concubinance)
<mobilePhone>064/123456</mobilePhone>
<fax>05/625 94 40</fax>
<eMail>micka@kovac.com,zlatko@kovac.com</eMail> <!-- comma delimited list of emails
<remarks>test partner for testing web services</remarks><!-- remarks for partner
<homepage>www.testWS.com</homepage> <!-- homapege of partner
<Addresses>
<Address>
<type>Primary</type> <!--Primary address (possible address types are: Invoicing, Primary, Delivery)
<street>Iztokova 22</street>
<city>Maribor</city>
<postalCode>2000</postalCode>
<country>SI</country>
<telephone>05/625 94 39</telephone>
<fax>05/625 94 39</fax>
<eMail>test@gmail.com<eMail>
</Address>
<Address >
<type>Invoicing</type> <!--Invoicing address, can include tags "firstAddressLine" and "additionalLine" for additional data for invoicing
<additionalLine>Test Company</additionalLine>
<firstAddressLine>Iztok Kladnik</firstAddressLine>
<street>Iztokova 22</street>
<city>Maribor</city>
<postalCode>2000</postalCode>
<country>SI</country>
<telephone>05/625 94 39</telephone>
</Address>
<Address >
<type>Delivery</type> <!--Delivery address, can include tag "additionalLine" for name of recipient
<addressCode>PE0001</addressCode>
<additionalLine>Test Company</additionalLine>
<street>Iztokova 22</street>
<city>Maribor</city>
<postalCode>2000</postalCode>
<country>SI</country>
<telephone>05/625 94 39</telephone>
</Address>
</Addresses>
<EmployeeData>
<status>active</status> <!-- Employee status (active, inactive)
<distanceFromHomeKm>12</distanceFromHomeKm> <!-- Distance from home in kilometers
<transportRelationToWork>mb-sb</transportRelationToWork> <!-- Route to the place of work
<amountOfBusTicket>20</amountOfBusTicket> <!-- Buss transportation ticket price
<ownVehicleModel>audi</ownVehicleModel> <!-- Own vehicle model
<ownVehicleRegNr>mb es-123</ownVehicleRegNr> <!-- Registration number of the own vehicle
<Employments>
<Employment>
<jobTitle></jobTitle> <!-- Employee job title
<employmentType></employmentType> <!-- Type of employment. (groupContract, individualContract, craftsman, entrepreneurshipHolder, companyOwner, lumpWorker)
<payClass></payClass> <!-- Payment class
<isHandicappedPerson>handicappedNot</isHandicappedPerson> <!-- Is handicapped person (handicapedNot, handicappedToQuota, handicappedOverQuota, handicappedHalfOverQuotaAndHalfWork)
<beginDate>2000-02-01</beginDate> <!-- Start date of employment contract
<employmentContractEndDate></employmentContractEndDate> <!-- Optional - End date of employment contract
<primaryEmployment>true</primaryEmployment> <!-- Is primary employment (true, false)
<previousWorkExperienceYears></previousWorkExperienceYears> <!-- Years of previous work experience
<previousWorkExperienceMonths></previousWorkExperienceMonths> <!-- Months of previous work experience
<previousWorkExperienceDays></previousWorkExperienceDays> <!-- Days of previous work experience
<workingAgeAllowancePercentage></workingAgeAllowancePercentage> <!-- percentage of working age allowance
<grossSalary></grossSalary> <!-- Gross salary
<grossSalaryCurrency></grossSalaryCurrency> <!-- Currency
<grossSalaryCalculationFactor></grossSalaryCalculationFactor> <!-- Numeric factor for gross salary calculation
<workingHoursPerWeek></workingHoursPerWeek> <!-- Number of working hours per week
<taxRelief></taxRelief> <!-- Tax relief
<specialTaxRelief></specialTaxRelief> <!-- Special tax relief
<hasLowSalaryTaxRelief>false</hasLowSalaryTaxRelief> <!-- Has Tax relief for low salary (true,false)
<sickLeaveOver30hourPrice></sickLeaveOver30hourPrice> <!-- Price for hour for sick leave over 30 days
<sickLeaveOver30hourPriceCurrency>EUR</sickLeaveOver30hourPriceCurrency> <!-- Price currency for sick leave over 30 days
<addPensionInsuranceAmount></> <!-- Additional pension insurance amount (employee cost)
<addPensionInsurancePercent></> <!-- Additional pension insurance percent (employee cost)
<addPensionInsuranceAccountNumber></> <!-- Additional pension insurance account number (employee cost)
<addPensionInsuranceAccountReference></> <!-- Additional pension insurance account ref. (employee cost)
<addPensionInsuranceEmployerCostAmount></> <!-- Additional pension insurance amount (employer cost)
<addPensionInsuranceEmployerCostPercent></> <!-- Additional pension insurance percentage (employer cost)
<addPensionInsuranceEmployerCostAccountNumber></> <!-- Additional pension insurance account number (employer cost)
<addPensionInsuranceEmployerCostAccountReference></> <!-- Additional pension insurance account ref. (employer cost)
</Employment>
</Employments>
</EmployeeData>
<BuyerData>
<buyerCode>00000105</buyerCode>
<buyerGroupCode>01</buyerGroupCode>
<costPosition>1</costPosition>
<discountPercentage>5.000</discountPercentage>
<numberOfDaysForPayment>15</numberOfDaysForPayment>
<numberOfDaysForPaymentBaseDate>fromDocumentDate</numberOfDaysForPaymentBaseDate> <!-- allowed values: fromDocumentDate, fromServiceOrDeliveryDate
<serialNumberForCollectionCenter></serialNumberForCollectionCenter>
<status>trustworthyBuyer</status> <!-- allowed values: defaultBuyer, buyerOnBlackList, trustworthyBuyer, buyerDoesNotExistAnymore.
<buyerCreditLimit>900.00</buyerCreditLimit> <!-- buyer credit limit
<buyerCreditLimitCurrency>EUR</buyerCreditLimitCurrency>
<invoicingCurrency>EUR</invoicingCurrency> <!-- invoicing currency, this property is usssed for creating invoices for this buyer
<invoicingLanguage>EUR</invoicingLanguage> <!-- allowed values: 'Slovene' 'English' 'German' 'Croatian' 'Italian' 'Hungarian' 'Czech' 'Slovak' 'Serbian' 'Polish' 'Bulgarian'
<invoicingTemplateName>templateTestBuyer</invoicingTemplateName> <!-- name of template used for printing invoices for this buyer
</BuyerData>
<SupplierData>
<acceptsOrdersReceivedAtLeastDaysInAdvance>30</acceptsOrdersReceivedAtLeastDaysInAdvance>
<costPosition>1</costPosition>
<defaultExpensesAccount>120</defaultExpensesAccount>
<numberOfDaysForPayment>14</numberOfDaysForPayment>
<numberOfDaysForPaymentBaseDate>fromDocumentDate</numberOfDaysForPaymentBaseDate> <!-- allowed values: fromDocumentDate, fromServiceOrDeliveryDate, fromDocumentReceivedDate
<status>defaultSupplier</status> <!-- defaultSupplier, supplierOnBlackList, trustworthySupplier, supplierDoesNotExistAnymore
<supplierCode>1122</supplierCode>
</SupplierData>
<BankAccounts>
<BankAccount>
<bank>SKB</bank>
<accountNumber>02343-0254045370</accountNumber>
<accountReference>99</accountReference>
<IBAN></IBAN>
<SWIFT>253</SWIFT>
<description></description>
</BankAccount>
<BankAccount>
<bank>Nova KBM d.d.</bank>
<accountNumber>04430-0000256970</accountNumber>
<accountReference>99</accountReference>
<IBAN></IBAN>
<SWIFT></SWIFT>
<currency></currency>
<status>Active</status>
<description></description>
</BankAccount>
</BankAccounts>
<ContactPersons>
<ContactPerson>
<contactPersonFullName>Contact person 1</contactPersonFullName>
<contactPersonFunction>Programmer</contactPersonFunction>
<eMail>test@gmail.com</eMail>
<mobilePhoneNumber>030 999 666</mobilePhoneNumber>
</ContactPerson>
<ContactPerson>
<contactPersonFullName>Contact person 1</contactPersonFullName>
<contactPersonFunction>Support</contactPersonFunction>
<eMail>test@gmail.com</eMail>
<phone>03 746 4362</phone>
<remarks>Leed programmer</remarks>
</ContactPerson>
</ContactPersons>
</Partner>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Partner not found, "><error/>
</response>
Get partner by partner code.
Parameters
partnerCode | Partner code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerGetByCode">
<parameter name="partnerCode" value="1234" />
</method>
</request>
Response
Response structure is identical to the structure of response in PartnerGetByID
Get partner by partner documentID.
Parameters
documentID | Partner documentID (internal id from program). |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerGetByDocumentID">
<parameter name="documentID" value="34:1234" />
</method>
</request>
Response
Response structure is identical to the structure of response in PartnerGetByID
Create new partner. (for more detailed partner's data structure look in API for PartnerGetByID)
Parameters
partner | Partner's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerCreate">
<parameter name="partner">
<companyType>Organization</companyType> <!-- Mandatory when creating info about company
<companyName>Micka d.o.o </companyName> <!-- Mandatory when creating info about company
<taxNumber>02169711</taxNumber> <!-- optional data
<mobilePhone>064/123456</mobilePhone>
<fax>05/625 94 40</fax>
<eMail>micka@kovac.com,zlatko@kovac.com</eMail>
...
<!-- optional data in sub elements (see properties in PartnerGetByID)
<Addresses>
<Address>
<type></type> <!--(possible address types are: Invoicing, Primary, Delivery)
...
</Address>
</Addresses>
<BuyerData></BuyerData>
<SupplierData></SupplierData>
<EmployeeData></EmployeeData>
<BankAccounts> <!-- Bank accounts where structure is the same as displayed in abowe example og Get by ID API call
<BankAccount></BankAccount>
</BankAccounts>
<ContactPersons> <!-- Contact persons where structure is the same as displayed in abowe example og Get by ID API call
<ContactPerson></ContactPerson>
</ContactPersons>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Update existing partner.
Parameters
partner | Partner's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerUpdate">
<parameter name="partner">
<partnerCode>7369</partnerCode>
<!--other params as in PartnerCreate
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Delete partner.
Parameters
ID | Partner's ID. |
taxNumber | Partner's tax number. |
partnerCode | Partner's code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerDelete">
<parameter name="ID" value="7369" />
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerDelete">
<parameter name="taxNumber" value="SI12345678" />
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerDelete">
<parameter name="partnerCode" value="PA7369" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/>
</response>
Import partner by creating new and/or updating existing ones. Parameter importType can be used to specify type of import. If parameter is not specified, createOrUpdate is used as default. For updating partner with this api call, partner's data must contain code as unique identifier.
Parameters
importType | Flag for the type of import
|
partner | Partner's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="partner"> <!-- parameter here is the same as for PartnerUpdate or PartnerCreate depending on importType
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ID></ID>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Get list of partners for specified criteria.
Parameters
partnerType | Type of partners to be answered. If this parameter is missing, answer all types of partners. Possible types are:
|
searchKey | Search key. The value from this field is used for searching for: ( company name for partners as legal person, given name and name for partners as physical person) |
partnerCode | Partner's code |
taxNumber | Tax number |
street | Street |
postalCodeOrCity | Postal code or City |
mobileOrPhoneNumber | Mobile or phone number |
companyType | Company type where parameter value is the same as possible values of tag companyType described abowe |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerList">
<parameter name="searchKey" type="String" value="MICKA D O O" />
<parameter name="postalCodeOrCity" type="String" value="Maribor" />
<parameter name="street" type="String" value="Iztokova" />
<parameter name="partnerCode" type="String" value="111" />
<parameter name="partnerType" value="buyer"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<!-- structure of each partner is the same as in PartnerGetByID
</Partner>
<Partner>
</Partner>
...
</response>
Get list of buyers for specified criteria. Response structure is identical to API "PartnerList"
Parameters
searchKey | Search key. The value from this field is used for searching for: (company name for partners as legal person, given name and name for partners as physical person) |
partnerCode | Partner's code |
buyerCode | Buyer's code |
taxNumber | Tax number |
street | Street |
postalCodeOrCity | Postal code or City |
mobileOrPhoneNumber | Mobile or phone number |
buyerCountry | Buyer country iso code |
status | Status of the buyers to be answered. It is optional and possible types are:
|
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerListBuyers">
<parameter name="buyerCode" type="String" value="111" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<!-- structure of each partner is the same as in PartnerGetByID
</Partner>
<Partner>
</Partner>
...
</response>
Get list of suppliers for specified criteria. Response structure is identical to API "PartnerList"
Parameters
searchKey | Search key. The value from this field is used for searching for: (company name for partners as legal person, given name and name for partners as physical person) |
partnerCode | Partner's code |
supplierCode | Supplier's code |
taxNumber | Tax number |
street | Street |
postalCodeOrCity | Postal code or City |
mobileOrPhoneNumber | Mobile or phone number |
status | Status of the suppliers to be answered. It is optional and possible types are:
|
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerListSupplier">
<parameter name="supplierCode" type="String" value="111" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<!-- structure of each partner is the same as in PartnerGetByID
</Partner>
<Partner>
</Partner>
...
</response>
Get list of employees for specified criteria. Response structure is identical to API "PartnerList"
Parameters
searchKey | Search key. The value from this field is used for searching for: (company name for partners as legal person, given name and name for partners as physical person) |
partnerCode | Partner's code |
taxNumber | Tax number |
status | Status of the employees. Possible types are:
|
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerListEmployees">
<parameter name="partnerCode" type="String" value="111" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<!-- structure of each partner is the same as in PartnerGetByID
</Partner>
<Partner>
</Partner>
...
</response>
Get partner buyer credit limit with unpaid amount by invoices and posted debt.
Parameters
ID | Partner's ID. |
taxNumber | Partner's tax number. |
partnerCode | Partner's code. |
creditLimitDate | Date on which credit limit is calculated, if parameter is empty or not present, todays date is taken. |
currency | Curreny of results, if not specified default currency is taken |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerBuyerCreditLimitGet">
<parameter name="partnerCode" value="100011" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<buyerCreditLimit>20,00</buyerCreditLimit>
<unpaidInvoicesAmount>16.278,76</unpaidInvoicesAmount>
<postedDebt>5.167,96</postedDebt>
<currency>EUR</currency>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Partner not found, Partner xyz is not defined as buyer!, Buyer kyz does not have defined credit limit or it is below minimum required amount! "><error/>
</response>
Add image/attachment to partner.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAttachmentAdd">
<parameter name="partnerCode" type="String" value="00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to partner 00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required, Can not find partner for code: 00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to partner and set it as default.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAttachmentSetDefault">
<parameter name="partnerCode" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to partner 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required., Can not find partner for code: 00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of partner.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAttachmentGet">
<parameter name="partnerCode" type="String" value="00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</Partner>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required., Can not find partner for code: 00001, partner does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAttachmentList">
<parameter name="partnerCode" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</Partner>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required., Can not find partner for code: 00001, partner does not have attachemnts.
</response>
Add avatar to partner. If partner already has avatar, old one is removed and new one set.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAvatarAdd">
<parameter name="partnerCode" type="String" value="00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added avatar att.jpg to partner 00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required, Can not find partner for code: 00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get partner's avatar.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAvatarGet">
<parameter name="partnerCode" type="String" value="00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Partner>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</Partner>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required., Can not find partner for code: 00001, partner does not have avatar.
</response>
Remove partner's avatar.
Parameters
partnerCode | Partner code. |
documentID | Partner's document ID. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PartnerAvatarRemove">
<parameter name="partnerCode" type="String" value="00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully removed avatar att.jpg to partner 00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "partnerCode" or "documentID" is required., Can not find partner for code: 00001, partner does not have avatar.
</response>
ProductGetByCode | Get product by product's code. |
ProductCreate | Create new product |
ProductUpdate | Update existing product |
ProductPriceCalculationUpdate | Update product price calculation. |
ProductMassPriceCalculationUpdate | Update up to 5000 price calculations with setting only 3 basic prices (supplier price, gross price and sales price) |
ProductImport | Import product by creating new and/or updating existing one. |
ProductMassImport | Import up to 5000 products with basic data. |
ProductDelete | Delete product. |
ProductList | Get list of products for specified criteria |
ProductPriceListGet | Get price list for product if used for specified product |
ProductPriceDiscountActionList | Get price discount action list for given article. |
ProductPriceDiscountActionAdd | Add price discount action list for given articles. |
ProductImageAdd | Add image/attachment to product. |
ProductImageSetDefault | Add image/attachment to product and set is as default. |
ProductImageGet | Get default image/attachment of product. |
ProductImageList | Get all images/attachments of product. |
Get product by productCode.
Parameters
productCode | Product code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductGetByCode">
<parameter name="productCode" value="PA2521U-2AC3" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Product>
<productCode>PA2521U-2AC3</productCode> <!-- (Mandatory and Unique)
<barCode></barCode> <!-- (Optional but must be unique)
<catalogueCode>V000061280</catalogueCode> <!-- (Optional)
<status>active</status> <!-- (Optional if not specified default is used true=active, false=inactive = product can not be put on the document
<type>goodsWithoutStockManagement</type> <!-- (Optional if not specified default is used - goodsWithStockManagement). Possible types: services, goodsWithStockManagement, goodsWithoutStockManagement, rawMaterial, intermediateProduct, product, license.
<trackItemsBySerialNumbers>true</trackItemsBySerialNumbers> <!-- (Optional default false)
<name>TOSHIBA charger 15V/ 6A 90 W</name> <!-- (one of properties: "name" or "description" is mandatory)
<description>Toshiba charger for 15V, 6A, 90W, 3-pin</description> <!-- (one of properties: "name" or "description" is mandatory)
<englishName></englishName> <!-- (Optional)
<englishDescription></englishDescription> <!-- (Optional)
<germanName></germanName> <!-- (Optional)
<germanDescription></germanDescription> <!-- (Optional)
<productGroupPrimary>01125</productGroupPrimary> <!-- (Optional)
<productGroupSecondary>00106</productGroupSecondary> <!-- (Optional)
<customProperty1>true</customProperty1> <!-- (Optional)
<customProperty2>leather</customProperty2> <!-- (Optional)
<customProperty3>shine</customProperty3> <!-- (Optional)
<customProperty4>XL</customProperty4> <!-- (Optional)
<brand>Minoti</brand> <!-- (Optional)
<costPosition>0001</costPosition> <!-- (Optional). This property can be used as product selection criteria for several reports.
<unit>piece</unit> <!-- (Optional)
<packingQuantity>5.000</packingQuantity> <!-- (Optional)
<minimalStockQuantity>100.0000</minimalStockQuantity> <!-- (Optional)
<warrantyPeriod>24</warrantyPeriod> <!-- (Optional)
<weight>0.500000</weight> <!-- (Optional)
<useOfPriceList>false</useOfPriceList> <!-- (Optional default false) true=use price list for the product, false=do not use price list for product.
<vatPercentage>20.0</vatPercentage> <!-- (Mandatory. Values: 0, 8.5, 20)
<currency>EUR</currency> <!-- (Optional)
<exchangeRate>SlovenianBankMiddleRate</exchangeRate> <!-- (Optional. Values: SlovenianBankMiddleRate , NLBSellingRate. Default: SlovenianBankMiddleRate)
<purchasePrice>20.49</purchasePrice> <!-- (Optional)
<retailPrice>30.00</retailPrice> <!-- for types of products other then: "rawMaterial" and "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified.
<grossPrice>25.00</grossPrice> <!-- for types of product: "rawMaterial" or "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified
<procurementTransactionAccount>760200</procurementTransactionAccount> <!-- (Optional)
<domesticSalesTransactionAccount>760100</domesticSalesTransactionAccount> <!-- (Optional)
<foreignSalesTransactionAccount>760100</foreignSalesTransactionAccount> <!-- (Optional)
<allowChangeOfProductDescriptionOnTheInvoice>false</allowChangeOfProductDescriptionOnTheInvoice> <!-- (Optional default false)
<allowChangeOfPriceOnTheInvoice>false</allowChangeOfPriceOnTheInvoice> <!-- (Optional default false)
<allowChangeOfVatRateOnTheInvoice>false</allowChangeOfVatRateOnTheInvoice> <!-- (Optional default false)
<invoicingRemarks>Technical documentation for the bottom of the document</invoicingRemarks> <!-- (Optional)
<countryOfOrigin>SI</countryOfOrigin> <!-- (Optional) ISO code for country can be inserted
<defaultWarehouseLocation>Hidden behind doors</defaultWarehouseLocation> <!-- (Optional) default warehouse location
<onlineShopVisibility>visibleOnline</onlineShopVisibility> <!-- Optional, this attribute is used to tell if product is visible in online web shop, possible values are: visibleOnline, notVisibleOnline.
<itemWidth>10.90</itemWidth> <!-- (Optional)
<itemHeight>20.99</itemHeight> <!-- (Optional)
<itemDepth>15.15</itemDepth> <!-- (Optional)
<deliveryTimeInDays></deliveryTimeInDays> <!-- (Optional) delivery time in number of days
<intrastatCn8Code>88888888</intrastatCn8Code> <!-- (Optional)
</Product>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for code: PA2521U-2AC3,
</response>
Create new product. (for product's data structure look in API for ProductGetByCode). Property productCode is not obligatory (if not specified, it will be automatically generated), but if product with such code already exists, error response will be returned.
Parameters
product | Product's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductCreate">
<parameter name="product">
<productCode>PA2521U-2AC3</productCode> <!-- (Mandatory and Unique in case there is no counter set. In case counter is set this is optional)
<catalogueCode>V000061280</catalogueCode> <!-- (Optional)
<status>active</status> <!-- (Optional if not specified default is used true=active, false=inactive = product can not be put on the document
<type>goodsWithStockManagement</type> <!-- (Optional if not specified default is used - goodsWithoutStockManagement). Possible types: services, goodsWithStockManagement, goodsWithoutStockManagement, rawMaterial, intermediateProduct, product, license.
<trackItemsBySerialNumbers>true</trackItemsBySerialNumbers> <!-- (Optional default false)
<name>TOSHIBA charger 15V/ 6A 90 W</name> <!-- (one of properties: "name" or "description" is mandatory)
<description>Toshiba charger for 15V, 6A, 90W, 3-pin</description> <!-- (one of properties: "name" or "description" is mandatory)
<englishName></englishName> <!-- (Optional)
<englishDescription></englishDescription> <!-- (Optional)
<germanName></germanName> <!-- (Optional)
<germanDescription></germanDescription> <!-- (Optional)
<productGroupPrimary>01125</productGroupPrimary> <!-- (Optional)
<brand>TOSHIBA</brand> <!-- (Optional)
<unit>piece</unit> <!-- (Optional)
<packingQuantity>1.000</packingQuantity> <!-- (Optional)
<minimalStockQuantity>10</minimalStockQuantity> <!-- (Optional)
<warrantyPeriod>24</warrantyPeriod> <!-- (Optional)
<useOfPriceList>false</useOfPriceList> <!-- (Optional default false) true=use price list for the product, false=do not use price list for product.
<vatPercentage>20.0</vatPercentage> <!-- (Mandatory. Values: 0, 8.5, 20)
<currency>EUR</currency> <!-- (Optional)
<exchangeRate>SlovenianBankMiddleRate</exchangeRate> <!-- (Optional. Values: SlovenianBankMiddleRate , NLBSellingRate. Default: SlovenianBankMiddleRate)
<purchasePrice>20.49</purchasePrice> <!-- (Optional)
<retailPrice>30.00</retailPrice> <!-- for types of products other then: "rawMaterial" and "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified.
<grossPrice>25.00</grossPrice> <!-- for types of product: "rawMaterial" or "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified
<procurementTransactionAccount>760200</procurementTransactionAccount> <!-- (Optional)
<domesticSalesTransactionAccount>760100</domesticSalesTransactionAccount> <!-- (Optional)
<foreignSalesTransactionAccount>760100</foreignSalesTransactionAccount> <!-- (Optional)
<allowChangeOfProductDescriptionOnTheInvoice>true</allowChangeOfProductDescriptionOnTheInvoice> <!-- (Optional default false)
<allowChangeOfPriceOnTheInvoice>true</allowChangeOfPriceOnTheInvoice> <!-- (Optional default false)
<allowChangeOfVatRateOnTheInvoice>false</allowChangeOfVatRateOnTheInvoice> <!-- (Optional default false)
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<productCode>PA2521U-2AC3</productCode>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Product for productCode: PA2521U-2AC3 already exists!><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <product> must be specified., missing mandatory attributes, invalid values, no privileges, Error creating product
</response>
Update existing product.
Parameters
product | Product's data in xml substructure |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductUpdate">
<parameter name="product">
<productCode>PA2521U-2AC3</productCode> <!-- (Mandatory and Unique)
<catalogueCode>V000061280</catalogueCode> <!-- (Optional)
<status>active</status> <!-- (Optional if not specified default is used true=active, false=inactive = product can not be put on the document
<type>product</type> <!-- (Optional if not specified default is used - goodsWithoutStockManagement). Possible types: services, goodsWithStockManagement, goodsWithoutStockManagement, rawMaterial, intermediateProduct, product, license.
<trackItemsBySerialNumbers>true</trackItemsBySerialNumbers> <!-- (Optional default false)
<name>TOSHIBA charger 15V/ 6A 90 W </name> <!-- (one of properties: "name" or "description" is mandatory)
<description>Toshiba charger for 15V, 6A, 90W, 3-pin</description> <!-- (one of properties: "name" or "description" is mandatory)
<englishName></englishName> <!-- (Optional)
<englishDescription></englishDescription> <!-- (Optional)
<germanName></germanName> <!-- (Optional)
<germanDescription></germanDescription> <!-- (Optional)
<unit>piece</unit> <!-- (Optional)
<packingQuantity>1.000</packingQuantity> <!-- (Optional)
<minimalStockQuantity>20</minimalStockQuantity> <!-- (Optional)
<warrantyPeriod>36</warrantyPeriod> <!-- (Optional)
<vatPercentage>20.0</vatPercentage> <!-- (Mandatory. Values: 0, 8.5, 20)
<currency>EUR</currency> <!-- (Optional)
<purchasePrice>20.49</purchasePrice> <!-- (Optional)
<retailPrice>30.00</retailPrice> <!-- for types of products other then: "rawMaterial" and "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified.
<grossPrice>25.00</grossPrice> <!-- for types of product: "rawMaterial" or "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified
<allowChangeOfProductDescriptionOnTheInvoice>true</allowChangeOfProductDescriptionOnTheInvoice> <!-- (Optional default false)
<allowChangeOfPriceOnTheInvoice>false</allowChangeOfPriceOnTheInvoice> <!-- (Optional default false)
<allowChangeOfVatRateOnTheInvoice>true</allowChangeOfVatRateOnTheInvoice> <!-- (Optional default false)
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<productCode>PA2521U-2AC3</productCode>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <product> needed, Product's property <productCode> is required, Can not find product for productCode: PA2521U-2AC3, missing mandatory attributes, invalid values, no privileges,
</response>
Update product's price calculation.
Parameters
productCode | Unique identifier for product. |
applyPricesToArticle | Decide if inventory, gross and sales prices are applied also to article. |
priceCalculation | Price calculation |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductPriceCalculationUpdate">
<parameter name="productCode" value="000001" />
<parameter name="applyPricesToArticle" type="Boolean" value="true" />
<parameter name="priceCalculation">
<calculationCurrency>EUR</calculationCurrency>
<costsDirectAmount>0.00000</costsDirectAmount>
<costsDirectPercentage>0.00</costsDirectPercentage>
<costsOfCustomsAmount>0.00000</costsOfCustomsAmount>
<costsOfCustomsPercentage>0.00</costsOfCustomsPercentage>
<costsOfTransportAmount>0.00000</costsOfTransportAmount>
<costsOfTransportPercentage>0.00</costsOfTransportPercentage>
<grossMarginAmount>7.00000</grossMarginAmount>
<grossMarginPercentage>38.89</grossMarginPercentage>
<grossPrice>25.00000</grossPrice>
<inboundVatAmount>0.00000</inboundVatAmount>
<inboundVatPercentage>0.00</inboundVatPercentage>
<inventoryPrice>18.00000</inventoryPrice>
<outgoingVatAmount>5.94000</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<retailMarginAmount>9.00000</retailMarginAmount>
<retailMarginPercentage>50</retailMarginPercentage>
<retailPrice>27.00000</retailPrice>
<salesPrice>32.94000</salesPrice>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>18.00000</supplierPrice>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>18.00000</supplierPriceInCalculationCurrency>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully updated price calculation for product with code 00001</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for productCode: PA2521U-2AC3
</response>
Update up to 5000 product's price calculations. In this case only 3 basic prices can be updated which are supplier price, gross price and sales price.
Parameters
applyPricesToArticle | Decide if inventory, gross and sales prices are applied also to article. |
priceCalculations | Price calculations |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8" ?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductMassPriceCalculationUpdate">
<parameter name="applyPricesToArticle" type="Boolean" value="true"/>
<parameter name="priceCalculations">
<PriceCalculations>
<PriceCalculation>
<productCode>36457558</productCode>
<supplierPrice>10.50</supplierPrice>
<grossPrice>30.44</grossPrice>
<salesPrice>40.99</salesPrice>
</PriceCalculation>
<PriceCalculation>
<productCode>000009</productCode>
<supplierPrice>11.50</supplierPrice>
<grossPrice>32.44</grossPrice>
<salesPrice>42.99</salesPrice>
</PriceCalculation>
<PriceCalculation>
<productCode>000010</productCode>
<supplierPrice>13.50</supplierPrice>
<grossPrice>36.44</grossPrice>
<salesPrice>47.99</salesPrice>
</PriceCalculation>
</PriceCalculations>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<message>Product price calculation for product with code 36457558 successfully updated.</message>
<message>Product price calculation for product with code 000009 successfully updated.</message>
<message>Product price calculation for product with code 000010 successfully updated.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!--Possible errors: Access denied. User account does not have sufficient privileges for the given request, Maximum number of price calculations for update exceeded, Product for code 0099 not foud.
</response>
Import product by creating new and/or updating existing ones. Parameter 'importType' can be used to specify type of import. If parameter is not specified, "createOrUpdate" is used as default. For updating product with this api call, product's data must contain code as unique identifier.
Parameters
importType | Flag for the type of import
|
product | Product's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="product"> <!-- parameter here is the same as for ProductUpdate or ProductCreate depending on importType
<productCode>PA2521U-2AC3</productCode> <!-- (Mandatory and Unique)
<catalogueCode>V000061280</catalogueCode> <!-- (Optional)
<status>active</status> <!-- (Optional if not specified default is used true=active, false=inactive = product can not be put on the document
<type>product</type> <!-- (Optional if not specified default is used - goodsWithoutStockManagement). Possible types: services, goodsWithStockManagement, goodsWithoutStockManagement, rawMaterial, intermediateProduct, product, license.
<trackItemsBySerialNumbers>true</trackItemsBySerialNumbers> <!-- (Optional default false)
<name>TOSHIBA charger 15V/ 6A 90 W </name> <!-- (one of properties: "name" or "description" is mandatory)
<description>Toshiba charger for 15V, 6A, 90W, 3-pin</description> <!-- (one of properties: "name" or "description" is mandatory)
<unit>piece</unit> <!-- (Optional)
<packingQuantity>1.000</packingQuantity> <!-- (Optional)
<minimalStockQuantity>20</minimalStockQuantity> <!-- (Optional)
<warrantyPeriod>36</warrantyPeriod> <!-- (Optional)
<vatPercentage>20.0</vatPercentage> <!-- (Mandatory. Values: 0, 8.5, 20)
<currency>EUR</currency> <!-- (Optional)
<purchasePrice>20.49</purchasePrice> <!-- (Optional)
<retailPrice>30.00</retailPrice> <!-- for types of products other then: "rawMaterial" and "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified.
<grossPrice>25.00</grossPrice> <!-- for types of product: "rawMaterial" or "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified
<allowChangeOfProductDescriptionOnTheInvoice>true</allowChangeOfProductDescriptionOnTheInvoice> <!-- (Optional default false)
<allowChangeOfPriceOnTheInvoice>false</allowChangeOfPriceOnTheInvoice> <!-- (Optional default false)
<allowChangeOfVatRateOnTheInvoice>true</allowChangeOfVatRateOnTheInvoice> <!-- (Optional default false)
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<parameter name="productCode" value="PA2521U-2AC3" />
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!--Possible errors: Access denied. User account does not have sufficient privileges for the given request, missing mandatory attributes, invalid
</response>
Import up to 5000 products with basic data, by creating new and/or updating existing ones. Parameter 'importType' can be used to specify type of import. If parameter is not specified, "createOrUpdate" is used as default. For updating product with this api call, product's data must contain code as unique identifier.
Parameters
importType | Flag for the type of import
|
products | Products basic data in xml substructure. Below is and example of all basic basic data that can be set. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8" ?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductMassImport">
<parameter name="importType" value="createOrUpdate" />
<parameter name="products">
<Products>
<Product>
<productCode>36457558</productCode> <!-- (Mandatory and Unique)
<name>Mass import product 1</name> <!-- (one of properties: "name" or "description" is mandatory)
<description>Mass import product 1 description</description> <!-- (one of properties: "name" or "description" is mandatory)
<vatPercentage>22</vatPercentage> <!-- (Mandatory. Values: 0, 9.5, 22)
<currency>EUR</currency> <!-- (Optional)
<unit>pc</unit> <!-- (Optional)
<allowChangeOfProductDescriptionOnTheInvoice>true</allowChangeOfProductDescriptionOnTheInvoice>
<status>active</status> <!-- (Optional if not specified default is used true=active, false=inactive = product can not be put on the document
<type>product</type> <!-- (Optional if not specified default is used - goodsWithoutStockManagement). Possible types: services, goodsWithStockManagement, goodsWithoutStockManagement, rawMaterial, intermediateProduct, product, license.
<purchasePrice>20.49</purchasePrice> <!-- (Optional)
<retailPrice>30.00</retailPrice> <!-- for types of products other then: "rawMaterial" and "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified.
<grossPrice>25.00</grossPrice> <!-- for types of product: "rawMaterial" or "intermediateProduct", one of product properties: retailPrice or grossPrice must be specified
</Product>
....
</Products>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<message>Product for code 36457559 successfully imported.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!--Possible errors: Access denied. User account does not have sufficient privileges for the given request, missing mandatory attributes, Product for code 0099 not foud., Product for code 8847 already exists.
</response>
Delete product.
Parameters
productCode | Unique identifier for product. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductDelete">
<parameter name="productCode" value="PA2521U-2AC3" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for productCode: PA2521U-2AC3, Can not delete. Found 3 product with productCode: PA2521U-2AC3,
</response>
Get list of products for specified criteria.
Parameters
productCode | Product's code. |
productCodeFrom | Search by product code range. |
productCodeTo | Search by product code range. |
searchKey | Search key. The value from this property is used for searching for values in fields: "name", "description" and "brand" |
supplierCode | Supplier code |
barCode | Bar code |
brand | Name of the product's brand |
productGroup | Code of product group (primary or secondary) |
status | Usage status (active, inactive) |
type | Type of article, possible types: services, goodsWithStockManagement, goodsWithoutStockManagement, rawMaterial, intermediateProduct, product, license |
catalogueCode | Catalogue code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductList">
<parameter name="searchKey" type="String" value="" />
<parameter name="productCode" value="123456" />
<parameter name="barCode" value="" />
<parameter name="brand" type="String" value="Samsung" />
<parameter name="status" value="active"/>
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductList">
<parameter name="productCodeFrom" value="ART-1*" />
<parameter name="productCodeTo" value="ART-3*" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Product>
<!-- structure of product data is the same as in ProductGetByCode
</Product>
<Product>
<!-- structure of product data is the same as in ProductGetByCode
</Product>
...
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Access denied. User account does not have sufficient privileges for the given request, Invalid search keys, invalid values, no privileges,
</response>
Get price list for product if used for specified product.
Parameters
productCode | Product's code. |
priceListCurrency | Price list currency |
priceListDate | Price list date |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductPriceListGet">
<parameter name="productCode" value="123456" />
<parameter name="priceListCurrency" value="EUR" />
<parameter name="priceListDate" value="2014-11-13" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<PriceListItem>
<grossPrice>160.00000</grossPrice>
<productPriceListCurrency>EUR</productPriceListCurrency>
<purchasePrice>101.00000</purchasePrice>
<retailPrice>300.00000</retailPrice>
<validFrom>2014-11-11</validFrom>
<validTo>2014-11-13</validTo>
</PriceListItem>
<PriceListItem>
<grossPrice>170.00000</grossPrice>
<productPriceListCurrency>EUR</productPriceListCurrency>
<purchasePrice>106.00000</purchasePrice>
<retailPrice>366.00000</retailPrice>
<validFrom>2014-12-11</validFrom>
<validTo>2015-01-13</validTo>
</PriceListItem>
...
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Access denied. User account does not have sufficient privileges for the given request, Invalid search keys, invalid values, no privileges,
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Use of price list for this product is disabled."><error/>
</response>
Get price discount action list for given article.
Parameters
productCode | Product's code. |
productGroupCode | Product group's code. |
buyerGroupCode | Buyer group's code. |
warehouseCode | Warehouse code. |
validFrom | Validity date from. |
validTo | Validity date to. |
discountPercentage | Disctount percentage. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductPriceDiscountActionList">
<parameter name="productCode" type="String" value="000001" />
<parameter name="productGroupCode" type="String" value="ABC" />
<parameter name="buyerGroupCode" type="String" value="101" />
<parameter name="warehouseCode" type="String" value="WH01" />
<parameter name="validFrom" type="Date" value="2021-05-01" />
<parameter name="validTo" type="Date" value="2021-05-31" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<ProductPriceDiscountAction>
<discountPercentage>50.0000</discountPercentage>
<productCode>000001</productCode>
<validFrom>2021-05-10</validFrom>
<validTo>2021-05-14</validTo>
</ProductPriceDiscountAction>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, No price discount actions were found matching search criteria!
</response>
Add price discount action list for given article.
Parameters
priceDiscountAction | Discount action data. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductPriceDiscountActionAdd">
<parameter name="priceDiscountAction">
<productCode>00001</productCode>
<articleGroupCode>AR01</articleGroupCode>
<buyerGroupCode>BY01</buyerGroupCode>
<warehouseCode>00001</warehouseCode>
<discountPercentage>34.00</discountPercentage>
<validFrom>2022-01-01</validFrom>
<validTo>2022-04-01</validTo>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<message>Successfully added price discount action for product with code 00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Can not find product for code: 9999.
</response>
Add image/attachment to product.
Parameters
productCode | Product code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductImageAdd">
<parameter name="productCode" type="String" value="000001" />
<parameter name="image">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added image att.jpg to Artikel: 000001</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for code: PA2521U-2AC3, Parameter <image> is missing, Parameter <image>: cannot parse contents
</response>
Add image/attachment to product and set is as default.
Parameters
productCode | Product code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductImageSetDefault">
<parameter name="productCode" type="String" value="000001" />
<parameter name="image">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added image att.jpg to Artikel: 000001</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for code: PA2521U-2AC3, Parameter <image> is missing, Parameter <image>: cannot parse contents
</response>
Get default image/attachment of product.
Parameters
productCode | Product code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductImageGet">
<parameter name="productCode" type="String" value="000001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Product>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</Product>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for code: PA2521U-2AC3, Product does not have attachemnts.
</response>
Get all images/attachments of product.
Parameters
productCode | Product code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductImageList">
<parameter name="productCode" type="String" value="000001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<Product>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</Product>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productCode> is required, Can not find product for code: PA2521U-2AC3, Product does not have attachemnts.
</response>
ProductGroupGetByCode | Get product group by product group's code. |
ProductGroupCreate | Create new product group |
ProductGroupUpdate | Update existing product group |
ProductGroupDelete | Delete product group. |
ProductGroupList | Get list of product groups for specified criteria |
Get product group by product group code.
Parameters
ProductGroupCode | Product group code. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductGroupGetByCode">
<parameter name="productGroupCode" value="PG2521U" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ProductGroup>
<productGroupCode>PG2521U</productGroupCode>
<productGroupDescription>api test product group</productGroupDescription>
<purchasingGLAccountNumber>2300</purchasingGLAccountNumber>
<salesGLAccountNumber>1200</salesGLAccountNumber>
<status>active</status>
<warrantyText>This is warranty text</warrantyText>
<onlineShopVisibility>visibleOnline</onlineShopVisibility>
</ProductGroup>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productGroupCode> is required, Can not find ProductGroup for code: PG2521U,
</response>
Create new product group. (for product group's data structure look in API for ProductGroupGetByCode).
Parameters
ProductGroup | Product group's data in xml substructure. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductGroupCreate">
<parameter name="productGroup">
<productGroupCode>PG2521U</productGroupCode> <!-- (Mandatory and Unique)
<productGroupDescription>api test product group</productGroupDescription> <!-- Mandatory
<purchasingGLAccountNumber>2300</purchasingGLAccountNumber> <!-- Optional
<salesGLAccountNumber>1200</salesGLAccountNumber> <!-- Optional
<parentArticleGroupCode>PG2521A</parentArticleGroupCode> <!-- Optional
<status>active</status> <!-- Mandatory
<warrantyText>This is warranty text</warrantyText> <!-- Optional
<onlineShopVisibility>visibleOnline</onlineShopVisibility> <!-- Optional, this attribute is used to tell if article group is visible in online web shop, possible values are: visibleOnline, notVisibleOnline.
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<productGroupCode>PG2521U</ProductGroupCode>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="productGroup for ProductGroupCode: PG2521U already exists!><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <ProductGroup> must be specified., missing mandatory attributes, invalid values, no privileges, Error creating ProductGroup
</response>
Update existing ProductGroup.
Parameters
ProductGroup | Product group's data in xml substructure |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductGroupUpdate">
<parameter name="productGroup">
<productGroupCode>PG2521U</productGroupCode> <!-- (Mandatory and Unique)
<productGroupDescription>api test product group</productGroupDescription> <!-- Mandatory
<purchasingGLAccountNumber>2300</purchasingGLAccountNumber> <!-- Optional
<salesGLAccountNumber>1200</salesGLAccountNumber> <!-- Optional
<parentArticleGroupCode>PG2521A</parentArticleGroupCode> <!-- Optional
<status>active</status> <!-- Mandatory
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<productGroupCode>PG2521U</ProductGroupCode>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <ProductGroup> needed, ProductGroup's property <productGroupCode> is required, Can not find ProductGroup for ProductGroupCode: PG2521U, missing mandatory attributes, invalid values, no privileges,
</response>
Delete ProductGroup.
Parameters
ProductGroupCode | Unique identifier for ProductGroup. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductGroupDelete">
<parameter name="productGroupCode" value="PG2521U" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <productGroupCode> is required, Can not find ProductGroup for ProductGroupCode: PG2521U, Can not delete. Found 3 ProductGroup with ProductGroupCode: PG2521U,
</response>
Get list of Product groups for specified criteria.
Parameters
ProductGroupCode | ProductGroup's code. |
productGroupDescription | Search key. The value from this property is used for searching for values in fields: "name", "description" and "brand" |
status | Usage status (active, inactive) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ProductGroupList">
<parameter name="productGroupDescription" type="String" value="" />
<parameter name="productGroupCode" value="123456" />
<parameter name="status" value="active"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ProductGroup>
<!-- structure of ProductGroup data is the same as in ProductGroupGetByCode
</ProductGroup>
<ProductGroup>
<!-- structure of ProductGroup data is the same as in ProductGroupGetByCode
</ProductGroup>
...
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Access denied. User account does not have sufficient privileges for the given request, Invalid search keys, invalid values, no privileges,
</response>
PurchaseOrderGet | Get purchase orders by document number, or by combination of document number and date. |
PurchaseOrderGetPDF | Get PDF file for purchase orders by document number, or by combination of document number and date. |
PurchaseOrderCreate | Create new purchase order. |
PurchaseOrderUpdate | Update existing purchase order. |
PurchaseOrderDelete | Delete purchase order. |
PurchaseOrderCancel | Cancel purchase order. |
PurchaseOrderList | Get list of purchase orders for specified criteria |
PurchaseOrderSendByEmail | Sends document by email to the recipient(s). |
PurchaseOrderAttachmentAdd | Add attachment to purchase order. |
PurchaseOrderAttachmentSetDefault | Add attachment to purchase order and set is as default. |
PurchaseOrderAttachmentGet | Get default attachment of purchase order. |
PurchaseOrderAttachmentList | Get all attachments of purchase order. |
Get purchase orders by document number, or by combination of document number and date.
Parameters
number | Document number. Can use sequential document number (example: 8), or formatted number (example: 2011-00008) |
date | Document date |
costPosition | Cost position |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderGet">
<parameter name="number" value="8" />
<parameter name="date" type="Date" value="2011-01-11" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<PurchaseOrder>
<number>2011-00008</number>
<date>2011-01-11</date>
<deliveryDate>2011-01-15</deliveryDate>
<deliveryMethod>Test delivery method</deliveryMethod>
<dueDate>2011-01-30</dueDate>
<businessYear>2011</businessYear>
<city>Nova Gorica</city>
<costPosition>120</costPosition>
<remarks>Remark on Purchase order</remarks>
<salesQuoteReference>SQ2010-000001</salesQuoteReference>
<status>Opened</status>
<superDiscountPercentage>5.0000</superDiscountPercentage>
<supplierCity>Maribor</supplierCity>
<supplierCountry>SI</supplierCountry>
<supplierName>Test supplier</supplierName>
<supplierPostalCode>1234</supplierPostalCode>
<supplierStreet>Test ul. 22</supplierStreet>
<supplierTaxNumber>SI95985352</supplierTaxNumber>
<supplierVatRegistration>Registered</supplierVatRegistration>
<totalAmount>22.430</totalAmount>
<totalCurrency>EUR</totalCurrency>
<totalDiscount>1.52</totalDiscount>
<totalNetAmount>20.48</totalNetAmount>
<totalVatAmountFlatRate>0.00</totalVatAmountFlatRate>
<totalVatAmountNormalRate>0.00</totalVatAmountNormalRate>
<totalVatAmountLowerRate>1.95</totalVatAmountLowerRate>
<totalVatAmountZeroRate>0.0</totalVatAmountZeroRate>
<totalVatBaseAmountFlatRate>0.00</totalVatBaseAmountFlatRate>
<totalVatBaseAmountNormalRate>0.00</totalVatBaseAmountNormalRate>
<totalVatBaseAmountLowerRate>20.48</totalVatBaseAmountLowerRate>
<totalVatBaseAmountZeroRate>0.00</totalVatBaseAmountZeroRate>
<vatTransactionType>0</vatTransactionType>
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause>
<goodsReceiptsRef>2011-00007, 2011-00009, 2011-00010</goodsReceiptsRef> <-- References to goods receipts
<cancelledDocumentRef>2011-00015</cancelledDocumentRef> <-- Reference to cancelled document
<Items>
<Item>
<amount>20.48</amount>
<amountWithoutDiscount>22.00</amountWithoutDiscount>
<currency>EUR</currency>
<description>Transport of goods</description>
<discountAmount>1.52</discountAmount>
<discountPercentage>2.0000</discountPercentage>
<netPrice>11.00000</netPrice>
<netPriceInDocumentCurrency>11.00000</netPriceInDocumentCurrency>
<position>1</position>
<price>12.04500</price>
<priceInDocumentCurrency>12.04500</priceInDocumentCurrency>
<quantity>2.000000</quantity>
<totalDiscountPercentage>6.9000</totalDiscountPercentage>
<unit>km</unit>
<unit>km</unit>
<vatAmount>1.95</vatAmount>
<vatPercentage>9.5</vatPercentage>
</Item>
</Items>
</PurchaseOrder>
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="document could not be found"><error/>
</response>
Get PDF for purchase order by document number, or by combination of document number and date. Response (on OK) returns binary record for PDF file coded with Base64 coding.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2010-00002) |
date | Document date |
costPosition | Cost position |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderGetPDF">
<parameter name="number" value="8" />
<parameter name="date" type="Date" value="2011-01-11" />
</method>
</request>
Response
<response status="ok">
<number>2012-01293</number>
<date>2013-01-02</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find sales invoice for number: 8 and date: 2011-01-11">
</error>
</response>
Create new purchase order.
Document item can be specified with: productCode, quantity, discountPercentage, or can be specified with: description, currency, quantity, netPrice.Additional optional item fields are: discountPercentage, unit, vatPercentage, vatTransactionType. date Date YYYY-MM-DDunit String OptionalvatTransactionType Enum 0-9 (0 is default) OptionalValues description for vatTransactionType:
0 - Taxable transactions of goods and services in Slovenia,
1 - Zero-rated transaction - exports of goods outside the EU,
2 - Zero-rated transaction - without the right to deduct input VAT,
3 - Zero-rated transaction - with the right to deduct input VAT,
4 - Zero-rated transaction - supply of goods within the EU,
5 - Zero-rated transaction - assembly in the EU,
6 - Zero-rated transaction - tripartite supplies of goods within the EU,
7 - Transactions exempt from VAT - not for VAT records,
8 - Zero-rated transaction - remote sales of goods,
9 - Transactions exempt from VAT with the right of input VAT deduction (transactions outside SLO),
10- Supply of goods and services in SLO, VAT charged by the recipient,
11- Sales of services in the EU, VAT paid by the recipient.
Parameters
PurchaseOrder | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderCreate">
<parameter name="PurchaseOrder">
<date>2011-01-13</date> <!-- (Mandatory) document date
<city>Nova Gorica</city> <!-- (Mandatory)
<deliveryDate>2011-02-13</deliveryDate> <!-- (Optional)
<dueDate>2011-01-13</dueDate> <!-- (Optional)
<salesQuoteReference>SQ11</salesQuoteReference> <!-- (Optional)
<costPosition>120</costPosition> <!-- (Optional)
<deliveryMethod>delivery method</deliveryMethod> <!-- (Optional)
<superDiscountPercentage>5</superDiscountPercentage> <!-- (Optional)
<status>Opened</status> <!-- (Optional) Possible values: Opened, PartlyDelivered, Completed, Cancelled - default is Opened
<remarks>Remark on Purchase order</remarks> <!-- (Optional)
<orderedByContactPerson>name and surname</orderedByContactPerson> <!-- (Optional)
<supplierCode>123456</supplierCode> <!-- (Optional). If it is specified supplier parameters bellow are not needed as the supplier data is taken from database. If any parameter bellow is specified it will override master supplier data in document
<supplierDocumentID>40:123456</supplierDocumentID> <!-- (Optional). If it is specified supplier parameters bellow are not needed as the supplier data is taken from database. If any parameter bellow is specified it will override master supplier data in document
<supplierName>Micka Kovac</supplierName> <!-- (Optional)
<supplierTaxNumber>02169711</supplierTaxNumber> <!-- (Optional)
<supplierVatRegistration>none</supplierVatRegistration> <!-- (unkown, none, registered)
<supplierEMail>micka@kovac.com</supplierEMail> <!-- (Optional)
<supplierStreet>Iztokova 22</supplierStreet> <!-- (Optional)
<supplierPostalCode>2000</supplierPostalCode> <!-- (Optional)
<supplierCity>Maribor</supplierCity> <!-- (Optional)
<supplierCountry>SI</supplierCountry> <!-- (Optional) ISO-2 country code
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<vatOutgoingDocumentVatClause>Registered</vatOutgoingDocumentVatClause> <!-- (Optional) Possible values: Registered, NotRegistered, RegisteredTourismLawPart47, RegisteredTourismLawPart31, RegisteredTourismLawPart47And31
<documentLanguage>Slovene</documentLanguage> <!-- (Optional) Possible document language: Slovene, English, German, Croatian, Italian, Hungarian, Czech, Slovak, Serbian, Polish and Bulgarian
<Items>
<Item> <!-- item specified with ref to product
<position>1</position> <!-- position of item
<productCode>020</productCode> <!-- product code
<quantity>100</quantity>
<discountPercentage>10</discountPercentage>
</Item>
<Item> <!-- Item specified for good or service
<position>2</position> <!-- position of item
<description>Transport of goods</description>
<netPrice>11.00</netPrice>
<discountPercentage>2</discountPercentage> <!-- (Optional)
<vatPercentage>8.5</vatPercentage> <!-- (Optional)
<currency>EUR</currency> <!-- (Optional)
<quantity>10</quantity> <!-- (Optional) default 0
<unit>km</unit> <!-- (Optional)
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is identical to document property
</Item>
</Items>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>12/2011</number> <!-- created document ID or number
<date>2011-01-13</date> <!-- document date
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- missing mandatory attributes, invalid values, no privileges,
</response>
Update existing purchase order.Data must contain purchase order number to be able to identify document which is to be updated.
Parameters
PurchaseOrder | Complex parameter with data tags |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderUpdate">
<!-- Parameter is similar to the parameter in PurchaseOrderCreate api
<parameter name="PurchaseOrder">
<number>12</number> <!-- document number is mandatory in UPDATE (Can use sequential document number (example: 12), or formatted number (example: 12/2011))
<date>2011-01-13</date> <!-- document date
<city>Nova Gorica</city>
<deliveryDate>2011-02-13</deliveryDate> <!-- (Optional)
<dueDate>2011-01-13</dueDate> <!-- (Optional)
<salesQuoteReference>SQ11</salesQuoteReference> <!-- (Optional)
<costPosition>120</costPosition> <!-- (Optional)
<deliveryMethod>delivery method</deliveryMethod> <!-- (Optional)
<superDiscountPercentage>5</superDiscountPercentage> <!-- (Optional)
<remarks>Remark on Purchase order</remarks> <!-- (Optional)
<orderedByContactPerson>name and surname</orderedByContactPerson> <!-- (Optional)
<supplierCode>123456</supplierCode> <!-- (Optional). If it is specified supplier parameters bellow are not needed as the supplier data is taken from database. If any parameter bellow is specified it will override master supplier data in document
<supplierName>Micka Kovac</supplierName> <!-- (Optional)
<supplierTaxNumber>02169711</supplierTaxNumber> <!-- (Optional)
<supplierVatRegistration>true</supplierVatRegistration> <!-- (true, false)
<supplierEMail>micka@kovac.com</supplierEMail> <!-- (Optional)
<supplierStreet>Iztokova 22</supplierStreet> <!-- (Optional)
<supplierPostalCode>2000</supplierPostalCode> <!-- (Optional)
<supplierCity>Maribor</supplierCity> <!-- (Optional)
<supplierCountry>SI</supplierCountry> <!-- (Optional) ISO-2 country code
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is 0
<Items>
<Item> <!-- item specified with ref to product
<productCode>020</productCode> <!-- product code
<quantity>100</quantity>
<discountPercentage>10</discountPercentage>
</Item>
<Item> <!-- Item specified for good or service
<description>Transport of goods</description>
<netPrice>11.00</netPrice>
<discountPercentage>2</discountPercentage> <!-- (Optional)
<vatPercentage>8.5</vatPercentage> <!-- (Optional)
<currency>EUR</currency> <!-- (Optional)
<quantity>10</quantity> <!-- (Optional) default 0
<unit>km</unit> <!-- (Optional)
<vatTransactionType>0</vatTransactionType> <!-- (Optional) default is identical to document property
</Item>
</Items>
</parameter>
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
response status="ok" >
<number>12/2011</number> <!-- updated document ID or number
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Delete purchase order. Must specify parameter/s (number, number+date) to identify document for deleting.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderDelete">
<parameter name="number" value="8/2011" />
<parameter name="date" type="Date" value="2011-01-13" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges,
</response>
Cancel purchace order. Must specify parameter/s (number, number+date) to identify document for canceling.
Parameters
number | Document number |
date | Document date |
costPosition | Cost position |
status | Status of cancelation document (draft, issuedInvoice). By Default status is issuedInvoice. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderCancel">
<parameter name="number" value="2013-00014" />
<parameter name="date" type="Date" value="2013-03-26" />
<parameter name="status" value="draft" />
</method>
</request>
Response
HTTP/1.1 200 OK
Server: e-racuni.com web server
Date: Tue, 1 March 2010 11:00:05 GMT
Content-Type: text/xml
Content-Length: 328
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Access denied. User account does not have sufficient privileges for the given request"><error/> <!-- document could not be found, no privileges,
</response>
Response (on error)
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Can not cancel purchace order for arguments number: 2013-00014 date: 2013-03-26"><error/> <!-- document could not be canceled,
</response>
Possible error messages:
Access denied. User account does not have sufficient privileges for the given request
Parameter named "number" is required
Can not find purchace order for number
Can not cancel. Found X purchace orders
Found X purchace orders X. You can only cancel one purchace order at a time
Can not cancel purchace order X
Get list of purchase orders for criteria which is specified by API parameters.
Parameters
number | Document number |
dateFrom | The date which is used to select purchase orders whose date is following it. |
dateTo | The date which is used to select purchase orders whose date is preceding it |
supplier | Supplier name |
costPosition | Cost position code |
totalAmount | Total amount of the sales order |
totalCurrency | Currency used in sales order |
status | Possible values:
|
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderList">
<parameter name="dateFrom" type="Date" value="2011-01-01" />
<parameter name="dateTo" type="Date" value="2011-01-31" />
<parameter name="totalAmount" value= 22.220 />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<PurchaseOrders>
<PurchaseOrder>
<!-- structure of elements is the same as in PurchaseOrderGet
</PurchaseOrder>
...
</SalesOrders>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- no privileges,
</response>
Sends document by email to the recipient(s).
Parameters
number | Document number |
date | Document date (optional additional document identification) |
sender | Email sender (Optional) |
recipient | Comma delimited list of recipient(s) emails |
cc | CC email (Optional) |
bcc | BCC email (Optional) |
subject | Mail subject (Optional) |
message | Message text (Optional) |
useHtmlMessage | Send message text as HTML (Optional) |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderSendByEmail">
<parameter name="number" value="8/2011" />
<parameter name="date" type="Date" value="2011-01-13" />
<parameter name="sender" value="micka@kovac.com"/>
<parameter name="recipient" value="zoran@kovac.com,zlatko@kovac.com"/>
<parameter name="cc" value=""/>
<parameter name="bcc" value=""/>
<parameter name="subject" value="TEST d.o.o.: Purchase order nr. 0008/2011"/>
<parameter name="message" value="Message text"/>
<parameter name="useHtmlMessage" value="true"/>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="no privileges"><error/> <!-- document could not be found, no privileges, mail sending failed
</response>
Add image/attachment to purchase order.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to purchase order 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find purchase order for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to purchase order and set is as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to purchase order 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find purchase order for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of purchase order.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<PurchaseOrder>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</PurchaseOrder>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find purchase order for number: 2020-00001 Purchase order does not have attachemnts.
</response>
Get all images/attachments of article.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="PurchaseOrderAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<PurchaseOrder>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</PurchaseOrder>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find purchase order for number: 2020-00001 Purchase order does not have attachemnts.
</response>
ReceivedAdvanceInvoiceGet | Get received advance invoice by number. |
ReceivedAdvanceInvoiceCreate | Create new received advance invoice. |
ReceivedAdvanceInvoiceUpdate | Update existing received advance invoice. |
ReceivedAdvanceInvoiceDelete | Delete received advance invoice. |
ReceivedAdvanceInvoiceList | Get list of received advance invoices for specified criteria. |
ReceivedAdvanceInvoiceAttachmentAdd | Add attachment to received advance invoice. |
ReceivedAdvanceInvoiceAttachmentSetDefault | Add attachment to received advance invoice and set is as default. |
ReceivedAdvanceInvoiceAttachmentGet | Get default attachment of received advance invoice. |
ReceivedAdvanceInvoiceAttachmentList | Get all attachments of received advance invoice. |
Get received advance invoice by number.
Parameters
number | Supplier number of received advance invoice. |
internalNumber | Internal number of received advance invoice. |
date | Document date. |
costPosition | Cost position. |
supplier | Supplier name. |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceGet">
<parameter name="number" value="678/2021" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedAdvanceInvoice>
<businessYear>2021</businessYear>
<costPosition>001</costPosition>
<date>2021-01-29</date>
<prepaymentDate>2021-01-21</prepaymentDate>
<documentID>51:4488260</documentID>
<internalNumber>RP9-0003</internalNumber>
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat>
<methodOfPayment>CreditCard</methodOfPayment>
<number>678/2021</number>
<paymentBankAccountNumber></paymentBankAccountNumber>
<paymentDueDate>2021-02-05</paymentDueDate>
<paymentReference></paymentReference>
<receivalDate>2021-01-29</receivalDate>
<receivedAdvanceInvoiceRef></receivedAdvanceInvoiceRef>
<roundingDifference>0.00</roundingDifference>
<supplier>4 Partner Foreign Company</supplier>
<supplierCode>666000</supplierCode>
<prepaymentAmount>689.000</prepaymentAmount>
<prepaymentCurrency>EUR</prepaymentCurrency>
<Items>
<Item>
<chartAccountNumber>00000</chartAccountNumber>
<costPosition></costPosition>
<description>OSOS</description>
<inputVatTransactionType>2</inputVatTransactionType>
<isInputVatDeductible>true</isInputVatDeductible>
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat>
<netAmount>689.000</netAmount>
<netAmountInDocumentCurrency>689.000</netAmountInDocumentCurrency>
<position>1</position>
<vatDeductionPercentage>100,00</vatDeductionPercentage>
<vatPercentage>22.0</vatPercentage>
</Item>
</Items>
</ReceivedAdvanceInvoice>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Cannot find received advance invoice for number: 055/11,
</response>
Create new received advance invoice.
Parameters
ReceivedAdvanceInvoice | received advance invoice's data in xml substructure. |
Supported values for items inputVatTransactionType are:
0 - Purchase of goods and services //promet blaga in storitev
1 - Purchase of real estate //nabava nepremičnin
2 - Other fixed assets purchase //nabava ostalih osnovnih sredstev
3 - Intra-Community goods acquisitions //pridobitve blaga znotraj Skupnosti
4 - Tripartite intra-Community goods acquisitions //tristranske pridobitve blaga znotraj Skupnosti
5 - Intra-Community fixed assets acquisitions //pridobitve osn. sredstev znotraj Skupnosti
6 - Goods import from non-EU member countries //Uvoz blaga iz držav izven EU
7 - Fixed assets import from non-EU member countries //Uvoz osnovnih sredstev iz držav izven EU
8 - Purchase of good and services in Slovenia, VAT reverse charge //Nabave blaga in storitev v SLO, od katerih plača DDV prejemnik (76.a člen)
9 - Purchase of real estate in Slovenia, VAT reverse charge //Nabave nepremičnin v SLO, od katerih plača DDV prejemnik (76.a člen)
10- Purchase of other fixed assests in Slovenia, VAT reverse charge //Nabave drugih OS v SLO, od katerih plača DDV prejemnik (76.a člen)
11- Acquisition of real estate within the community //pridobitve nepremičnin znotraj Skupnosti
12- Acquisition of electronic services (reverse charge) //Pridobitev elektronskih storitev (samoobdavčitev)
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceCreate">
<parameter name="ReceivedAdvanceInvoice">
<prepaymentAmount>689.000</prepaymentAmount> <!-- (Mandatory) prepayment amount
<prepaymentCurrency>EUR</prepaymentCurrency> <!-- (Mandatory) payment currency
<businessYear>2021</businessYear> <!-- (Mandatory) business year of received advance invoice
<costPosition>001</costPosition> <!-- (Optional/Mandatory) cost center is optional in case mandatory entry is not set in company settings
<date>2021-01-29</date> <!-- (Mandatory) date of received advance invoice
<number>678/2021</number> <!-- (Mandatory) suppliers number of received advance invoice
<paymentDueDate>2021-02-05</paymentDueDate> <!-- (Mandatory) payment due date
<receivalDate>2021-01-29</receivalDate> <!-- (Mandatory) date of receival of document
<prepaymentDate>2021-01-21</prepaymentDate> <!-- (Mandatory) date of prepayment
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document is inside scope of VAT
<methodOfPayment>CreditCard</methodOfPayment> <!-- (Mandatory) possible values: BankTransfer, Cash, CreditCard, Other
<paymentBankAccountNumber>SI56 0000 1111 2222 333</paymentBankAccountNumber> <!-- Mandatory in case "methodOfPayment" value BankTransfer is used
<paymentReference>SI99</paymentReference> <!-- Mandatory in case "methodOfPayment" value BankTransfer is used
<supplierBookingAccountNumber>26000</supplierBookingAccountNumber> <!-- Mandatory in case "methodOfPayment" value Other is used
<receivedAdvanceInvoiceRef>9384-2021</receivedAdvanceInvoiceRef> <!-- (Optional) received advance invoice reference
<roundingDifference>0.00</roundingDifference> <!-- (Optional)
<supplierCode>666000</supplierCode> <!-- (Mandatory) If supplier documentID specified, use this supplier identificator for referencing supplier on received document
<supplierDocumentID>55:666</supplierDocumentID> <!-- (Mandatory) If supplier code not specified, use this supplier identificator for referencing supplier on received document
<Items>
<Item>
<position>1</position> <!-- (Optional) item position
<chartAccountNumber>00000</chartAccountNumber> <!-- (Mandatory) account number
<costPosition>009</costPosition> <!-- (Optional) cost center code for referencing cost center on item
<description>OSOS</description> <!-- (Mandatory) description
<inputVatTransactionType>2</inputVatTransactionType> <!-- (Mandatory) input VAT transaction type
<isInputVatDeductible>true</isInputVatDeductible> <!-- (Optional) settting if received document items VAT is deducated
<vatDeductionPercentage>100,00</vatDeductionPercentage> <!-- (Mandatory) if abowe option is used. Percentage of VAT that is being deducated must be entered
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document item is inside scope of VAT. This and abowe option "isInputVatDeductible" exclude each other
<netAmount>689.000</netAmount> <!-- (Mandatory) net amount
<netAmountInDocumentCurrency>689.000</netAmountInDocumentCurrency> <!-- (Optional) net amount id document currency
<vatPercentage>22.0</vatPercentage> <!-- (Optional) if this property is not present, default normal VAT rate is set
</Item>
<Item>
<position>2</position> <!-- (Optional) item position
<productCode>000001</productCode> <!-- (Optional) if item with referenced product is added product code should be present in item definition
<chartAccountNumber>00000</chartAccountNumber> <!-- (Mandatory) account number
<costPosition>009</costPosition> <!-- (Optional) cost center code for referencing cost center on item
<description>OSOS</description> <!-- (Mandatory) description
<inputVatTransactionType>2</inputVatTransactionType> <!-- (Mandatory) input VAT transaction type
<isInputVatDeductible>true</isInputVatDeductible> <!-- (Optional) settting if received document items VAT is deducated
<vatDeductionPercentage>100,00</vatDeductionPercentage> <!-- (Mandatory) if abowe option is used. Percentage of VAT that is being deducated must be entered
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document item is inside scope of VAT. This and abowe option "isInputVatDeductible" exclude each other
<quantity>1</quantity> <!-- (Mandatory) quantity
<price>100.00</price> <!-- (Optional) product price, if not present, default purchase price of product is taken
<vatPercentage>22.0</vatPercentage> <!-- (Optional) if this property is not present, default normal VAT rate is set
</Item>
</Items>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
<date>2021-01-29</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="received advance invoice for number: 055/11 already exists!><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" must be specified., missing mandatory attributes, invalid values, no privileges, Error creating received advance invoice
</response>
Update existing received advance invoice.
Parameters
ReceivedAdvanceInvoice | received advance invoice data in xml substructure |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceUpdate">
<parameter name="ReceivedAdvanceInvoice">
<!-- Parameters are identical to the parameters in ReceivedAdvanceInvoiceCreate api
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
<date>2021-01-29</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find received advance invoice for number: 055/11, missing mandatory attributes, invalid values, no privileges,
</response>
Delete received advance invoice.
Parameters
number | Supplier number of received advance invoice. |
internalNumber | Internal number of received advance invoice. |
date | Document date. |
costPosition | Cost position. |
supplier | Supplier name. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceDelete">
<parameter name="number" value="055/11" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find received advance invoice for number: 055/11, Can not delete. Found 3 received advance invoice with number 055,
</response>
Get list of received advance invoices for specified criteria.
Parameters
number | Suppliers number |
internalNumber | Internal number |
dateFrom | The date which is used to select received advance invoices whose date is following it |
dateTo | The date which is used to select received advance invoices whose date is preceding it |
receivalDateFrom | The date which is used to select received advance invoices whose date of receival is following it |
receivalDateTo | The date which is used to select received advance invoices whose date of receival is preceding it |
prepaymentDateFrom | The date which is used to select received advance invoices whose date of prepayment is following it |
prepaymentDateTo | The date which is used to select received advance invoices whose date of prepayment is preceding it |
supplier | Supplier code or name |
costPosition | Cost position code |
article | Product code, or product name |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceList">
<parameter name="number" value="123456" />
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceList">
<parameter name="dateFrom" value="2021-05-01" />
<parameter name="dateTo" value="2021-05-26" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedAdvanceInvoice>
<!-- structure of received advance invoice data is the same as in ReceivedAdvanceInvoiceGet
</ReceivedAdvanceInvoice>
<ReceivedAdvanceInvoice>
<!-- structure of received advance invoice data is the same as in ReceivedAdvanceInvoiceGet
</ReceivedAdvanceInvoice>
...
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Access denied. User account does not have sufficient privileges for the given request, Invalid search keys, invalid values, no privileges,
</response>
Add image/attachment to received advance invoice.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to received advance invoice 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received advance invoice for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to received advance invoice and set it as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to received advance invoice 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received advance invoice for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of received advance invoice.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedAdvanceInvoice>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</ReceivedAdvanceInvoice>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received advance invoice for number: 2020-00001 received advance invoice does not have attachemnts.
</response>
Get all images/attachments of received advance invoice.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedAdvanceInvoiceAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedAdvanceInvoice>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</ReceivedAdvanceInvoice>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received advance invoice for number: 2020-00001 received advance invoice does not have attachemnts.
</response>
ReceivedCreditNoteGet | Get received credit note by number. |
ReceivedCreditNoteCreate | Create new received credit note. |
ReceivedCreditNoteUpdate | Update existing received credit note. |
ReceivedCreditNoteDelete | Delete received credit note. |
ReceivedCreditNoteList | Get list of received credit notes for specified criteria. |
ReceivedCreditNoteAttachmentAdd | Add attachment to received credit note. |
ReceivedCreditNoteAttachmentSetDefault | Add attachment to received credit note and set is as default. |
ReceivedCreditNoteAttachmentGet | Get default attachment of received credit note. |
ReceivedCreditNoteAttachmentList | Get all attachments of received credit note. |
Get received credit note by number.
Parameters
number | Supplier number of received credit note. |
internalNumber | Internal number of received credit note. |
date | Document date. |
costPosition | Cost position. |
supplier | Supplier name. |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteGet">
<parameter name="number" value="678/2021" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedCreditNote>
<amountWithVAT>689.000</amountWithVAT>
<businessYear>2021</businessYear>
<costPosition>001</costPosition>
<date>2021-01-29</date>
<dateOfSupplyFrom>2021-01-21</dateOfSupplyFrom>
<documentID>51:4488260</documentID>
<internalNumber>RP9-0003</internalNumber>
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat>
<isReverseChargeVatDocument>false</isReverseChargeVatDocument>
<methodOfPayment>CreditCard</methodOfPayment>
<number>678/2021</number>
<paymentBankAccountNumber></paymentBankAccountNumber>
<paymentDueDate>2021-02-05</paymentDueDate>
<paymentReference></paymentReference>
<receivalDate>2021-01-29</receivalDate>
<receivedAdvancecredit noteRef></receivedAdvancecredit noteRef>
<roundingDifference>0.00</roundingDifference>
<supplier>4 Partner Foreign Company</supplier>
<supplierCode>666000</supplierCode>
<paymentAmount>689.000</paymentAmount>
<paymentCurrency>EUR</paymentCurrency>
<Items>
<Item>
<chartAccountNumber>00000</chartAccountNumber>
<costPosition></costPosition>
<description>OSOS</description>
<inputVatTransactionType>2</inputVatTransactionType>
<isInputVatDeductible>true</isInputVatDeductible>
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat>
<netAmount>689.000</netAmount>
<netAmountInDocumentCurrency>689.000</netAmountInDocumentCurrency>
<position>1</position>
<vatDeductionPercentage>100,00</vatDeductionPercentage>
<vatPercentage>22.0</vatPercentage>
</Item>
</Items>
</ReceivedCreditNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Cannot find received credit note for number: 055/11,
</response>
Create new received credit note.
Parameters
ReceivedCreditNote | Received credit note's data in xml substructure. |
Supported values for items inputVatTransactionType are:
0 - Purchase of goods and services //promet blaga in storitev
1 - Purchase of real estate //nabava nepremičnin
2 - Other fixed assets purchase //nabava ostalih osnovnih sredstev
3 - Intra-Community goods acquisitions //pridobitve blaga znotraj Skupnosti
4 - Tripartite intra-Community goods acquisitions //tristranske pridobitve blaga znotraj Skupnosti
5 - Intra-Community fixed assets acquisitions //pridobitve osn. sredstev znotraj Skupnosti
6 - Goods import from non-EU member countries //Uvoz blaga iz držav izven EU
7 - Fixed assets import from non-EU member countries //Uvoz osnovnih sredstev iz držav izven EU
8 - Purchase of good and services in Slovenia, VAT reverse charge //Nabave blaga in storitev v SLO, od katerih plača DDV prejemnik (76.a člen)
9 - Purchase of real estate in Slovenia, VAT reverse charge //Nabave nepremičnin v SLO, od katerih plača DDV prejemnik (76.a člen)
10- Purchase of other fixed assests in Slovenia, VAT reverse charge //Nabave drugih OS v SLO, od katerih plača DDV prejemnik (76.a člen)
11- Acquisition of real estate within the community //pridobitve nepremičnin znotraj Skupnosti
12- Acquisition of electronic services (reverse charge) //Pridobitev elektronskih storitev (samoobdavčitev)
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteCreate">
<parameter name="ReceivedCreditNote">
<amountWithVAT>689.000</amountWithVAT> <!-- (Optional) amount with VAT in default currency
<paymentAmount>689.000</paymentAmount> <!-- (Mandatory) payment amount
<paymentCurrency>EUR</paymentCurrency> <!-- (Mandatory) payment currency
<businessYear>2021</businessYear> <!-- (Mandatory) business year of received credit note
<costPosition>001</costPosition> <!-- (Optional/Mandatory) cost center is optional in case mandatory entry is not set in company settings
<date>2021-01-29</date> <!-- (Mandatory) date of received credit note
<number>678/2021</number> <!-- (Mandatory) suppliers number of received credit note
<paymentDueDate>2021-02-05</paymentDueDate> <!-- (Mandatory) payment due date
<receivalDate>2021-01-29</receivalDate> <!-- (Mandatory) date of receival of document
<dateOfSupplyFrom>2021-01-21</dateOfSupplyFrom> <!-- (Mandatory) date of supplay from
<dateOfSupplyUntil>2021-02-21</dateOfSupplyUntil> <!-- (Optional)
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document is inside scope of VAT
<isReverseChargeVatDocument>false</isReverseChargeVatDocument> <!-- (Optional) settting if received document is reverse charge. This and abowe option "isInsideTheScopeOfVat" exclude each other
<methodOfPayment>CreditCard</methodOfPayment> <!-- (Mandatory) possible values: BankTransfer, Cash, CreditCard, Other
<paymentBankAccountNumber>SI56 0000 1111 2222 333</paymentBankAccountNumber> <!-- Mandatory in case "methodOfPayment" value BankTransfer is used
<paymentReference>SI99</paymentReference> <!-- Mandatory in case "methodOfPayment" value BankTransfer is used
<supplierBookingAccountNumber>26000</supplierBookingAccountNumber> <!-- Mandatory in case "methodOfPayment" value Other is used
<receivedAdvancecredit noteRef>9384-2021</receivedAdvancecredit noteRef> <!-- (Optional) received advance credit note reference
<roundingDifference>0.00</roundingDifference> <!-- (Optional)
<supplierCode>666000</supplierCode> <!-- (Mandatory) If supplier documentID specified, use this supplier identificator for referencing supplier on received document
<supplierDocumentID>55:666</supplierDocumentID> <!-- (Mandatory) If supplier code not specified, use this supplier identificator for referencing supplier on received document
<Items>
<Item>
<position>1</position> <!-- (Optional) item position
<chartAccountNumber>00000</chartAccountNumber> <!-- (Mandatory) account number
<costPosition>009</costPosition> <!-- (Optional) cost center code for referencing cost center on item
<description>OSOS</description> <!-- (Mandatory) description
<inputVatTransactionType>2</inputVatTransactionType> <!-- (Mandatory) input VAT transaction type
<isInputVatDeductible>true</isInputVatDeductible> <!-- (Optional) settting if received document items VAT is deducated
<vatDeductionPercentage>100,00</vatDeductionPercentage> <!-- (Mandatory) if abowe option is used. Percentage of VAT that is being deducated must be entered
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document item is inside scope of VAT. This and abowe option "isInputVatDeductible" exclude each other
<netAmount>689.000</netAmount> <!-- (Mandatory) net amount
<netAmountInDocumentCurrency>689.000</netAmountInDocumentCurrency> <!-- (Optional) net amount id document currency
<vatPercentage>22.0</vatPercentage> <!-- (Optional) if this property is not present, default normal VAT rate is set
</Item>
<Item>
<position>2</position> <!-- (Optional) item position
<productCode>000001</productCode> <!-- (Optional) if item with referenced product is added product code should be present in item definition
<chartAccountNumber>00000</chartAccountNumber> <!-- (Mandatory) account number
<costPosition>009</costPosition> <!-- (Optional) cost center code for referencing cost center on item
<description>OSOS</description> <!-- (Mandatory) description
<inputVatTransactionType>2</inputVatTransactionType> <!-- (Mandatory) input VAT transaction type
<isInputVatDeductible>true</isInputVatDeductible> <!-- (Optional) settting if received document items VAT is deducated
<vatDeductionPercentage>100,00</vatDeductionPercentage> <!-- (Mandatory) if abowe option is used. Percentage of VAT that is being deducated must be entered
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document item is inside scope of VAT. This and abowe option "isInputVatDeductible" exclude each other
<quantity>1</quantity> <!-- (Mandatory) quantity
<price>100.00</price> <!-- (Optional) product price, if not present, default purchase price of product is taken
<vatPercentage>22.0</vatPercentage> <!-- (Optional) if this property is not present, default normal VAT rate is set
</Item>
</Items>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
<date>2021-01-29</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description="Received credit note for number: 055/11 already exists!><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" must be specified., missing mandatory attributes, invalid values, no privileges, Error creating received credit note
</response>
Update existing received credit note.
Parameters
ReceivedCreditNote | Received credit note data in xml substructure |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteUpdate">
<parameter name="ReceivedCreditNote">
<!-- Parameters are identical to the parameters in ReceivedCreditNoteCreate api
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<number>055/11</number>
<date>2021-01-29</date>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find received credit note for number: 055/11, missing mandatory attributes, invalid values, no privileges,
</response>
Delete received credit note.
Parameters
number | Supplier number of received credit note. |
internalNumber | Internal number of received credit note. |
date | Document date. |
costPosition | Cost position. |
supplier | Supplier name. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteDelete">
<parameter name="number" value="055/11" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <! Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Can not find received credit note for number: 055/11, Can not delete. Found 3 received credit note with number 055,
</response>
Get list of received credit notes for specified criteria.
Parameters
number | Suppliers number |
internalNumber | Internal number |
dateFrom | The date which is used to select received credit notes whose date is following it |
dateTo | The date which is used to select received credit notes whose date is preceding it |
supplier | Supplier code or name |
costPosition | Cost position code |
paymentAmount | Payment amount of the document |
paymentCurrency | Payment currency of document |
article | Product code, or product name |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteList">
<parameter name="number" value="123456" />
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteList">
<parameter name="dateFrom" value="2021-05-01" />
<parameter name="dateTo" value="2021-05-26" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedCreditNote>
<!-- structure of received credit note data is the same as in ReceivedCreditNoteGet
</ReceivedCreditNote>
<ReceivedCreditNote>
<!-- structure of received credit note data is the same as in ReceivedCreditNoteGet
</ReceivedCreditNote>
...
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Access denied. User account does not have sufficient privileges for the given request, Invalid search keys, invalid values, no privileges,
</response>
Add image/attachment to received credit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteAttachmentAdd">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to received credit note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received credit note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to received credit note and set it as default.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteAttachmentSetDefault">
<parameter name="number" type="String" value="2020-00001" />
<parameter name="attachment">
<contents encoding="BASE64">BASE64...</contents>
<fileName>att.jpg</fileName>
</parameter>
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<message>Successfully added attachment att.jpg to received credit note 2020-00001.</message>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received credit note for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of received credit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedCreditNote>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</ReceivedCreditNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received credit note for number: 2020-00001 received credit note does not have attachemnts.
</response>
Get all images/attachments of received credit note.
Parameters
number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
date | Document date |
costPosition | Cost position/cost center |
businessUnit | Business unit |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedCreditNoteAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedCreditNote>
<Attachments>
<Attachment>
<fileName>att1.jpg</fileName>
<contents encoding="BASE64">1BASE64</contents>
</Attachment>
<Attachment>
<fileName>att2.jpg</fileName>
<contents encoding="BASE64">2BASE64</contents>
</Attachment>
<Attachment>
<fileName>att3.jpg</fileName>
<contents encoding="BASE64">3BASE64</contents>
</Attachment>
</Attachments>
</ReceivedCreditNote>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named <number> is required, Can not find received credit note for number: 2020-00001 received credit note does not have attachemnts.
</response>
ReceivedInvoiceGet | Get received invoice by number. |
ReceivedInvoiceCreate | Create new received invoice. |
ReceivedInvoiceUpdate | Update existing received invoice. |
ReceivedInvoiceDelete | Delete received invoice. |
ReceivedInvoiceList | Get list of received invoices for specified criteria. |
ReceivedInvoicePaymentRecordAdd | Add payment record on received invoice. |
ReceivedInvoiceAttachmentAdd | Add attachment to received invoice. |
ReceivedInvoiceAttachmentSetDefault | Add attachment to received invoice and set is as default. |
ReceivedInvoiceAttachmentGet | Get default attachment of received invoice. |
ReceivedInvoiceAttachmentList | Get all attachments of received invoice. |
Get received invoice by number.
Parameters
number | Supplier number of received invoice. |
internalNumber | Internal number of received invoice. |
date | Document date. |
costPosition | Cost position. |
supplier | Supplier name. |
documentID | Internal document identificator. In case of using this parameter, no other parameter listed abowe is needed for searching by document. |
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedInvoiceGet">
<parameter name="number" value="678/2021" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<ReceivedInvoice>
<amountWithVAT>689.000</amountWithVAT>
<businessYear>2021</businessYear>
<costPosition>001</costPosition>
<date>2021-01-29</date>
<dateOfSupplyFrom>2021-01-21</dateOfSupplyFrom>
<documentID>51:4488260</documentID>
<internalNumber>RP9-0003</internalNumber>
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat>
<isReverseChargeVatDocument>false</isReverseChargeVatDocument>
<methodOfPayment>CreditCard</methodOfPayment>
<number>678/2021</number>
<paymentBankAccountNumber></paymentBankAccountNumber>
<paymentDueDate>2021-02-05</paymentDueDate>
<paymentReference></paymentReference>
<receivalDate>2021-01-29</receivalDate>
<receivedAdvanceInvoiceRef></receivedAdvanceInvoiceRef>
<roundingDifference>0.00</roundingDifference>
<supplier>4 Partner Foreign Company</supplier>
<supplierCode>666000</supplierCode>
<paymentAmount>689.000</paymentAmount>
<paymentCurrency>EUR</paymentCurrency>
<Items>
<Item>
<chartAccountNumber>00000</chartAccountNumber>
<costPosition></costPosition>
<description>OSOS</description>
<inputVatTransactionType>2</inputVatTransactionType>
<isInputVatDeductible>true</isInputVatDeductible>
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat>
<netAmount>689.000</netAmount>
<netAmountInDocumentCurrency>689.000</netAmountInDocumentCurrency>
<position>1</position>
<vatDeductionPercentage>100,00</vatDeductionPercentage>
<vatPercentage>22.0</vatPercentage>
</Item>
</Items>
</ReceivedInvoice>
</response>
Response on error
<?xml version="1.0" encoding="utf-8"?>
<response status="error" >
<error description=""><error/> <!-- Possible errors: Access denied. User account does not have sufficient privileges for the given request, Parameter named "number" is required, Cannot find received invoice for number: 055/11,
</response>
Create new received invoice.
Parameters
ReceivedInvoice | Received invoice's data in xml substructure. |
Supported values for items inputVatTransactionType are:
0 - Purchase of goods and services //promet blaga in storitev
1 - Purchase of real estate //nabava nepremičnin
2 - Other fixed assets purchase //nabava ostalih osnovnih sredstev
3 - Intra-Community goods acquisitions //pridobitve blaga znotraj Skupnosti
4 - Tripartite intra-Community goods acquisitions //tristranske pridobitve blaga znotraj Skupnosti
5 - Intra-Community fixed assets acquisitions //pridobitve osn. sredstev znotraj Skupnosti
6 - Goods import from non-EU member countries //Uvoz blaga iz držav izven EU
7 - Fixed assets import from non-EU member countries //Uvoz osnovnih sredstev iz držav izven EU
8 - Purchase of good and services in Slovenia, VAT reverse charge //Nabave blaga in storitev v SLO, od katerih plača DDV prejemnik (76.a člen)
9 - Purchase of real estate in Slovenia, VAT reverse charge //Nabave nepremičnin v SLO, od katerih plača DDV prejemnik (76.a člen)
10- Purchase of other fixed assests in Slovenia, VAT reverse charge //Nabave drugih OS v SLO, od katerih plača DDV prejemnik (76.a člen)
11- Acquisition of real estate within the community //pridobitve nepremičnin znotraj Skupnosti
12- Acquisition of electronic services (reverse charge) //Pridobitev elektronskih storitev (samoobdavčitev)
Example request and response
POST /WebServicesSI/API HTTP/1.1
Host: eurofaktura.com
User-Agent: Mozilla/4.0
Content-Length: 410
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="micka" md5pass="ddb43e9f119c6805f4770ecc4f6466ba" token="E7DF3E6E94FB4579BBA8F54979010B5C" />
<method name="ReceivedInvoiceCreate">
<parameter name="ReceivedInvoice">
<amountWithVAT>689.000</amountWithVAT> <!-- (Optional) amount with VAT in default currency
<paymentAmount>689.000</paymentAmount> <!-- (Mandatory) payment amount
<paymentCurrency>EUR</paymentCurrency> <!-- (Mandatory) payment currency
<businessYear>2021</businessYear> <!-- (Mandatory) business year of received invoice
<costPosition>001</costPosition> <!-- (Optional/Mandatory) cost center is optional in case mandatory entry is not set in company settings
<date>2021-01-29</date> <!-- (Mandatory) date of received invoice
<number>678/2021</number> <!-- (Mandatory) suppliers number of received invoice
<paymentDueDate>2021-02-05</paymentDueDate> <!-- (Mandatory) payment due date
<receivalDate>2021-01-29</receivalDate> <!-- (Mandatory) date of receival of document
<dateOfSupplyFrom>2021-01-21</dateOfSupplyFrom> <!-- (Mandatory) date of supplay from
<dateOfSupplyUntil>2021-02-21</dateOfSupplyUntil> <!-- (Optional)
<isInsideTheScopeOfVat>true</isInsideTheScopeOfVat> <!-- (Optional) settting if received document is inside scope of VAT
<isReverseChargeVatDocument>false</isReverseChargeVatDocument> <!-- (Optional) settting if received document is