Prva stran 
Nazaj 
Naprej 
Novosti 
 
Natisni stranNatisni stran  
e-računi navodila za up...  >  Spletne storitve in int...  >  API Reference  >  GeneralLedgerJournalVou...

GeneralLedgerJournalVoucher API

GeneralLedgerJournalVoucherGet
GeneralLedgerJournalVoucherGetPDF
GeneralLedgerJournalVoucherCreate
GeneralLedgerJournalVoucherUpdate
GeneralLedgerJournalVoucherDelete
GeneralLedgerJournalVoucherList
GeneralLedgerJournalVoucherCancel

GeneralLedgerJournalVoucherGet

Get general ledger journal voucher by document number, or by combination of document number and business year.

Parameters

numberDocument number. Can use sequential document number (example: 2), or formated number (00002)
businessYearBusiness 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>



GeneralLedgerJournalVoucherGetPDF

Get PDF for general ledger journal voucher by document number, or by combination of document number and business year.

Parameters

numberDocument number. Can use sequential document number (example: 2), or formated number (00002)
businessYearBusiness 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>


GeneralLedgerJournalVoucherCreate

Create new general ledger journal voucher. In tag "Items" you specifie general ledger journal entries.

Parameters

GeneralLedgerJournalVoucherComplex 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
               <generalLedgerJournalVoucherType>TEM-0067</generalLedgerJournalVoucherType>   <!-- 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>



GeneralLedgerJournalVoucherUpdate

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

GeneralLedgerJournalVoucherComplex 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>


GeneralLedgerJournalVoucherDelete

Delete general ledger journal voucher. Must specify parameter/s (number and business year) to identify document for deleting.

Parameters

numberGeneral ledger journal voucher number
businessYearGeneral 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>



GeneralLedgerJournalVoucherCancel

Cancel general ledger journal voucher. Must specify parameter/s (number and business year) to identify document for canceling.

Parameters

numberGeneral ledger journal voucher number
businessYearGeneral 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



GeneralLedgerJournalVoucherList

Get list of general ledger journal vouchers for criteria which is specified by API parameters.

Parameters

numberGeneral ledger journal voucher number
dateFromThe date which is used to select general ledger journal vouchers whose period date is following it
dateToThe date which is used to select general ledger journal vouchers whose period date is preceding it
statusStatus of general ledger journal vouchers. Possible values: Opened, Closed, Unbalanced and NotTransferred.
remarksSearch from remarks on general ledger journal voucher
businessYearSearch by business year
businessEventTypeSearch by business event type
profitAndLossAccountTypeSearch 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>


Reference na stran

---
Zadnja sprememba 27.11.2017 15:48:36
© E-RAČUNI d.o.o. 2003-2018