|
|
| |||||||||||||||||||||||||||||||
| WorkOrderGet | Get work order by document number, or by combination of document number and date. |
| WorkOrderGetPDF | Get PDF file for work order by document number, or by combination of document number and date. |
| WorkOrderCreate | Create new work order. |
| WorkOrderUpdate | Update existing work order. |
| WorkOrderDelete | Delete work order. |
| WorkOrderList | Get list of work orders for specified criteria. |
| WorkOrderAttachmentAdd | Add attachment to work order. |
| WorkOrderAttachmentSetDefault | Add attachment to work order and set is as default. |
| WorkOrderAttachmentGet | Get default attachment of work order. |
| WorkOrderAttachmentList | Get all attachments of work order. |
Get work order 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: 2022-00002) |
| date | Document date |
| 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderGet">
<parameter name="number" value="1/2022" />
<parameter name="date" type="Date" value="2022-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
<response status="ok">
<WorkOrder>
<businessYear>2022</businessYear>
<buyerCity>LJUBLJANA</buyerCity>
<buyerCode>100246</buyerCode>
<buyerCountry>SI</buyerCountry>
<buyerEMail></buyerEMail>
<buyerName>TEST</buyerName>
<buyerName1>TEST S.P.</buyerName1>
<buyerPostalCode>1000</buyerPostalCode>
<buyerStreet>CELOVŠKA CESTA 134</buyerStreet>
<buyerTaxNumber>SI88888888</buyerTaxNumber>
<buyerVatRegistration>1</buyerVatRegistration>
<city>Maribor</city>
<completionDate>2022-02-25</completionDate>
<costPosition></costPosition>
<currency>EUR</currency>
<date>2022-02-15</date>
<documentID>228:133</documentID>
<number>1/2022</number>
<operaterName>Amadej Amadej</operaterName>
<plannedWorkBeginDate>2022-02-15</plannedWorkBeginDate>
<remarks>testing 1 2</remarks>
<responsibleWorker>Amadej Amadej</responsibleWorker>
<status>InProduction</status>
<type>Gross</type>
<warehouseCodeForUsedMaterials>090</warehouseCodeForUsedMaterials>
<warehouseForOrderedProductsCode>908</warehouseForOrderedProductsCode>
<OrderedProducts>
<OrderedProduct>
<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>
<description>ni bilo opisa, sedaj pa je</description>
<grossMarginAmount>45.37705</grossMarginAmount>
<grossMarginPercentage>206.26</grossMarginPercentage>
<grossPrice>67.37705</grossPrice>
<inboundVatAmount>4.84000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>22.00000</inventoryAmount>
<inventoryPrice>22.00000</inventoryPrice>
<outgoingVatAmount>14.82295</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<position>-1</position>
<productBarCode></productBarCode>
<productCatalogueCode>1313413080</productCatalogueCode>
<productCode>1310</productCode>
<productName>krnekjasdh" WATTS</productName>
<remarks>PRODUCT CREATION RECORD</remarks>
<retailMarginAmount>45.38000</retailMarginAmount>
<retailMarginPercentage>206.27</retailMarginPercentage>
<retailPrice>67.38000</retailPrice>
<salesPrice>82.20000</salesPrice>
<salesPriceAmount>82.20000</salesPriceAmount>
<supplierAmountInCalculationCurrency>22.00000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>22.00000</supplierPrice>
<supplierPriceAmount>22.00000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>22.00000</supplierPriceInCalculationCurrency>
</OrderedProduct>
<OrderedProduct>
<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>
<description>ni bilo opisa, sedaj pa je</description>
<grossMarginAmount>-864.27045</grossMarginAmount>
<grossMarginPercentage>-94.65</grossMarginPercentage>
<grossPrice>48.84018</grossPrice>
<inboundVatAmount>86.75000</inboundVatAmount>
<inboundVatPercentage>9.50</inboundVatPercentage>
<inventoryAmount>913.11063</inventoryAmount>
<inventoryPrice>913.11063</inventoryPrice>
<outgoingVatAmount>4.63982</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>-1</position>
<productBarCode></productBarCode>
<productCatalogueCode>35253525</productCatalogueCode>
<productCode>000013</productCode>
<productName>VENTIL REDUC. 3/4" WATTS</productName>
<remarks>PRODUCT CREATION RECORD</remarks>
<retailMarginAmount>-864.27063</retailMarginAmount>
<retailMarginPercentage>-94.65</retailMarginPercentage>
<retailPrice>48.84000</retailPrice>
<salesPrice>53.48000</salesPrice>
<salesPriceAmount>53.48000</salesPriceAmount>
<supplierAmountInCalculationCurrency>913.11063</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>913.11063</supplierPrice>
<supplierPriceAmount>913.11063</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>913.11063</supplierPriceInCalculationCurrency>
</OrderedProduct>
</OrderedProducts>
<PurchasedMaterials>
<PurchasedMaterial>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>10.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>
<description></description>
<grossMarginAmount>105.88931</grossMarginAmount>
<grossMarginPercentage>93956.80</grossMarginPercentage>
<grossPrice>106.00201</grossPrice>
<inboundVatAmount>0.24794</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>1.12700</inventoryAmount>
<inventoryPrice>0.11270</inventoryPrice>
<outgoingVatAmount>10.36758</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>1</position>
<productBarCode>5051678412751</productBarCode>
<productCode>000002</productCode>
<productName>artikel 2</productName>
<retailMarginAmount>109.01967</retailMarginAmount>
<retailMarginPercentage>96734.40</retailMarginPercentage>
<retailPrice>109.13237</retailPrice>
<salesPrice>119.49995</salesPrice>
<salesPriceAmount>1194.99950</salesPriceAmount>
<supplierAmountInCalculationCurrency>1.12700</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>0.10000</supplierPrice>
<supplierPriceAmount>1.00000</supplierPriceAmount>
<supplierPriceCurrency>GBP</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>0.11270</supplierPriceInCalculationCurrency>
<workOrderDocNo>2021-00013</workOrderDocNo>
</PurchasedMaterial>
<PurchasedMaterial>
<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>
<description>Grafička kartica GTX670-DC2-2GD5</description>
<grossMarginAmount>695.00000</grossMarginAmount>
<grossMarginPercentage>0.00</grossMarginPercentage>
<grossPrice>695.00000</grossPrice>
<inboundVatAmount>0.00000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>0.00000</inventoryAmount>
<inventoryPrice>0.00000</inventoryPrice>
<outgoingVatAmount>66.02500</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>2</position>
<productBarCode></productBarCode>
<productCatalogueCode>977585700</productCatalogueCode>
<productCode>000005</productCode>
<productName>Grafička kartica GTX670-DC2-2GD5</productName>
<retailMarginAmount>695.00000</retailMarginAmount>
<retailMarginPercentage>0.00</retailMarginPercentage>
<retailPrice>695.00000</retailPrice>
<salesPrice>761.02500</salesPrice>
<salesPriceAmount>761.02500</salesPriceAmount>
<supplierAmountInCalculationCurrency>500.00000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>500.00000</supplierDiscountAmount>
<supplierDiscountPercentage>100.00</supplierDiscountPercentage>
<supplierPrice>443.65000</supplierPrice>
<supplierPriceAmount>443.65000</supplierPriceAmount>
<supplierPriceCurrency>GBP</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>500.00000</supplierPriceInCalculationCurrency>
<workOrderDocNo>2021-00013</workOrderDocNo>
</PurchasedMaterial>
</PurchasedMaterials>
<UsedMaterials>
<UsedMaterial>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>0.500000</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>
<description>Grafička kartica GTX670-DC2-2GD5</description>
<grossMarginAmount>58.00000</grossMarginAmount>
<grossMarginPercentage>1450.00</grossMarginPercentage>
<grossPrice>0.00000</grossPrice>
<inboundVatAmount>-0.44000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-2.00000</inventoryAmount>
<inventoryPrice>4.00000</inventoryPrice>
<outgoingVatAmount>0.00000</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<position>1</position>
<productBarCode></productBarCode>
<productCatalogueCode>0</productCatalogueCode>
<productCode>000009</productCode>
<productName>Grafička kartica GTX670-DC2-2GD5</productName>
<remarks>MATERIAL USAGE RECORD</remarks>
<retailMarginAmount>-4.00000</retailMarginAmount>
<retailMarginPercentage>-100.00</retailMarginPercentage>
<retailPrice>0.00000</retailPrice>
<salesPrice>0.00000</salesPrice>
<salesPriceAmount>0.00000</salesPriceAmount>
<supplierAmountInCalculationCurrency>-2.00000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>4.00000</supplierPrice>
<supplierPriceAmount>-2.00000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>4.00000</supplierPriceInCalculationCurrency>
</UsedMaterial>
<UsedMaterial>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>1.562000</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>
<description></description>
<grossMarginAmount>32.70000</grossMarginAmount>
<grossMarginPercentage>13.64</grossMarginPercentage>
<grossPrice>268.03279</grossPrice>
<inboundVatAmount>-82.41112</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-374.56760</inventoryAmount>
<inventoryPrice>239.80000</inventoryPrice>
<outgoingVatAmount>58.96721</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<position>1</position>
<productBarCode></productBarCode>
<productCatalogueCode></productCatalogueCode>
<productCode>1025542</productCode>
<productName>RADIATOR ELEKTRINI TPA 20 2000W S TERMOSTATOM</productName>
<remarks>MATERIAL USAGE RECORD</remarks>
<retailMarginAmount>28.23000</retailMarginAmount>
<retailMarginPercentage>11.77</retailMarginPercentage>
<retailPrice>268.03000</retailPrice>
<salesPrice>327.00000</salesPrice>
<salesPriceAmount>-510.77400</salesPriceAmount>
<supplierAmountInCalculationCurrency>-374.56760</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>239.80000</supplierPrice>
<supplierPriceAmount>-374.56760</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>239.80000</supplierPriceInCalculationCurrency>
</UsedMaterial>
<UsedMaterial>
<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>
<description></description>
<grossMarginAmount>0.67000</grossMarginAmount>
<grossMarginPercentage>20.06</grossMarginPercentage>
<grossPrice>3.28689</grossPrice>
<inboundVatAmount>-0.73000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-3.34000</inventoryAmount>
<inventoryPrice>3.34000</inventoryPrice>
<outgoingVatAmount>0.72311</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<position>2</position>
<productBarCode></productBarCode>
<productCatalogueCode></productCatalogueCode>
<productCode>101007</productCode>
<productName>KOLENO POC. 2 ART. 90</productName>
<remarks>MATERIAL USAGE RECORD</remarks>
<retailMarginAmount>-0.05000</retailMarginAmount>
<retailMarginPercentage>-1.50</retailMarginPercentage>
<retailPrice>3.29000</retailPrice>
<salesPrice>4.01000</salesPrice>
<salesPriceAmount>-4.01000</salesPriceAmount>
<supplierAmountInCalculationCurrency>-3.34000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>3.34000</supplierPrice>
<supplierPriceAmount>-3.34000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>3.34000</supplierPriceInCalculationCurrency>
</UsedMaterial>
<UsedMaterial>
<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>
<description></description>
<grossMarginAmount>3.37000</grossMarginAmount>
<grossMarginPercentage>190.40</grossMarginPercentage>
<grossPrice>2.31967</grossPrice>
<inboundVatAmount>-0.39000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-1.77000</inventoryAmount>
<inventoryPrice>1.77000</inventoryPrice>
<outgoingVatAmount>0.51033</outgoingVatAmount>
<outgoingVatPercentage>22.00</outgoingVatPercentage>
<position>3</position>
<productBarCode></productBarCode>
<productCatalogueCode></productCatalogueCode>
<productCode>101106</productCode>
<productName>T KOS POC. 6/4""""</productName>
<remarks>MATERIAL USAGE RECORD</remarks>
<retailMarginAmount>0.55000</retailMarginAmount>
<retailMarginPercentage>31.07</retailMarginPercentage>
<retailPrice>2.32000</retailPrice>
<salesPrice>2.83000</salesPrice>
<salesPriceAmount>-2.83000</salesPriceAmount>
<supplierAmountInCalculationCurrency>-1.77000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>1.77000</supplierPrice>
<supplierPriceAmount>-1.77000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>1.77000</supplierPriceInCalculationCurrency>
</UsedMaterial>
<UsedMaterial>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>1.000000</calculationQuantity>
<costsDirectAmount>0.00000</costsDirectAmount>
<costsDirectPercentage>0.00</costsDirectPercentage>
<costsOfCustomsAmount>-1.00000</costsOfCustomsAmount>
<costsOfCustomsPercentage>0.20</costsOfCustomsPercentage>
<costsOfTransportAmount>-1.00000</costsOfTransportAmount>
<costsOfTransportPercentage>0.20</costsOfTransportPercentage>
<description>Grafička kartica GTX670-DC2-2GD5</description>
<grossMarginAmount>193.00000</grossMarginAmount>
<grossMarginPercentage>38.45</grossMarginPercentage>
<grossPrice>695.00000</grossPrice>
<inboundVatAmount>-110.00000</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-502.00000</inventoryAmount>
<inventoryPrice>502.00000</inventoryPrice>
<outgoingVatAmount>66.02500</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>4</position>
<productBarCode></productBarCode>
<productCatalogueCode>977585700</productCatalogueCode>
<productCode>000005</productCode>
<productName>Grafička kartica GTX670-DC2-2GD5</productName>
<remarks>MATERIAL USAGE RECORD</remarks>
<retailMarginAmount>193.00000</retailMarginAmount>
<retailMarginPercentage>38.45</retailMarginPercentage>
<retailPrice>695.00000</retailPrice>
<salesPrice>761.02500</salesPrice>
<salesPriceAmount>-761.02500</salesPriceAmount>
<supplierAmountInCalculationCurrency>-500.00000</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>0.00000</supplierDiscountAmount>
<supplierDiscountPercentage>0.00</supplierDiscountPercentage>
<supplierPrice>500.00000</supplierPrice>
<supplierPriceAmount>-500.00000</supplierPriceAmount>
<supplierPriceCurrency>EUR</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>500.00000</supplierPriceInCalculationCurrency>
<vatTransactionType>101</vatTransactionType>
</UsedMaterial>
</UsedMaterials>
<DeliveredMaterials>
<DeliveredMaterial>
<calculationCurrency>EUR</calculationCurrency>
<calculationQuantity>7.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>
<description></description>
<discountPercentage>0.0000</discountPercentage>
<grossMarginAmount>94.56898</grossMarginAmount>
<grossMarginPercentage>827.16</grossMarginPercentage>
<grossPrice>106.00201</grossPrice>
<inboundVatAmount>-17.60689</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-80.03121</inventoryAmount>
<inventoryPrice>11.43303</inventoryPrice>
<outgoingVatAmount>9.50000</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>1</position>
<productBarCode>5051678412751</productBarCode>
<productCode>000002</productCode>
<productName>artikel 2</productName>
<retailMarginAmount>88.56692</retailMarginAmount>
<retailMarginPercentage>774.66</retailMarginPercentage>
<retailPrice>99.99995</retailPrice>
<salesPrice>116.07220</salesPrice>
<salesPriceAmount>-766.49965</salesPriceAmount>
<supplierAmountInCalculationCurrency>-94.15434</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>-14.12313</supplierDiscountAmount>
<supplierDiscountPercentage>15.00</supplierDiscountPercentage>
<supplierPrice>100.00000</supplierPrice>
<supplierPriceAmount>-700.00000</supplierPriceAmount>
<supplierPriceCurrency>HRK</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>13.45062</supplierPriceInCalculationCurrency>
</DeliveredMaterial>
<DeliveredMaterial>
<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>
<description></description>
<discountPercentage>0.0000</discountPercentage>
<grossMarginAmount>94.56898</grossMarginAmount>
<grossMarginPercentage>827.16</grossMarginPercentage>
<grossPrice>106.00201</grossPrice>
<inboundVatAmount>-2.51527</inboundVatAmount>
<inboundVatPercentage>22.00</inboundVatPercentage>
<inventoryAmount>-11.43303</inventoryAmount>
<inventoryPrice>11.43303</inventoryPrice>
<outgoingVatAmount>9.50000</outgoingVatAmount>
<outgoingVatPercentage>9.50</outgoingVatPercentage>
<position>1</position>
<productBarCode>5051678412751</productBarCode>
<productCode>000002</productCode>
<productName>artikel 2</productName>
<retailMarginAmount>88.56692</retailMarginAmount>
<retailMarginPercentage>774.66</retailMarginPercentage>
<retailPrice>99.99995</retailPrice>
<salesPrice>116.07220</salesPrice>
<salesPriceAmount>-109.49995</salesPriceAmount>
<supplierAmountInCalculationCurrency>-13.45062</supplierAmountInCalculationCurrency>
<supplierDiscountAmount>-2.01759</supplierDiscountAmount>
<supplierDiscountPercentage>15.00</supplierDiscountPercentage>
<supplierPrice>100.00000</supplierPrice>
<supplierPriceAmount>-100.00000</supplierPriceAmount>
<supplierPriceCurrency>HRK</supplierPriceCurrency>
<supplierPriceInCalculationCurrency>13.45062</supplierPriceInCalculationCurrency>
</DeliveredMaterial>
</DeliveredMaterials>
<WorkingHours>
<WorkingHour>
<date>2021-08-25</date>
<hoursSpent>0.8000</hoursSpent>
<remarks>Programiranje</remarks>
<workOrderDocNo>2021-00013</workOrderDocNo>
<workTaskType>consulting</workTaskType>
</WorkingHour>
<WorkingHour>
<date>2021-08-25</date>
<hoursSpent>0.2000</hoursSpent>
<remarks>Testiranje</remarks>
<workOrderDocNo>2021-00013</workOrderDocNo>
<workTaskType>consulting</workTaskType>
</WorkingHour>
<WorkingHour>
<date>2021-11-08</date>
<hoursSpent>4.5000</hoursSpent>
<remarks>VRTANJE LESENIH DELOV</remarks>
<worker>Roki Balboa</worker>
<workerCode>100155</workerCode>
<workOrderDocNo>2021-00013</workOrderDocNo>
<workTaskType>107</workTaskType>
</WorkingHour>
</WorkingHours>
</WorkOrder>
</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 work 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 |
| 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderGetPDF">
<parameter name="number" value="2" />
<parameter name="date" type="Date" value="2022-02-22" />
</method>
</request>
Response
<response status="ok">
<number>2</number>
<date>2022-02-22</date>
<pdfFile>JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nJVYS4/bNh...</pdfFile>
</response>
Response (on error)
<response status="error">
<error description="Can not find work order for number: 2 and date: 2022-02-22">
</error>
</response>
Create new work order for bill of materials. Number of work order which is created from this web service is automatically set if parameter status is set to "Issued".
Parameters
| WorkOrder | 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderCreate">
<parameter name="WorkOrder">
<businessYear>2022</businessYear>
<buyerCity>LJUBLJANA</buyerCity>
<buyerCode>100246</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
<buyerCountry>SI</buyerCountry>
<buyerName>TEST</buyerName>
<buyerName1>TEST S.P.</buyerName1>
<buyerPostalCode>1000</buyerPostalCode>
<buyerStreet>CELOVŠKA CESTA 134</buyerStreet>
<buyerTaxNumber>SI88888888</buyerTaxNumber>
<buyerVatRegistration>None</buyerVatRegistration> <!-- (Unkown, None, Registered)
<city>Maribor</city>
<completionDate>2022-04-25</completionDate>
<costPosition>894</costPosition>
<currency>EUR</currency>
<date>2022-04-25</date>
<plannedWorkBeginDate>2022-04-25</plannedWorkBeginDate>
<remarks>ha 1</remarks>
<status>Issued</status> <!-- (Optional) Possible values: Issued, Draft - default is Issued
<type>Gross</type> <!-- (Optional) Type of pricing - default is "Gross"
<warehouseCodeForUsedMaterials>090</warehouseCodeForUsedMaterials> <!-- Mandatory
<warehouseForOrderedProductsCode>908</warehouseForOrderedProductsCode> <!-- Mandatory
<OrderedProducts>
<OrderedProduct>
<calculationQuantity>1.000000</calculationQuantity> <!-- Mandatory
<productCode>1310</productCode> <!-- Mandatory; Product code of product which has bill of materials
</OrderedProduct>
</OrderedProducts>
</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/2022</number> <!-- created document ID or number
<date>2022-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>
Update existing work order.Data must contain work order number to be able to identify document which is to be updated.
Parameters
| WorkOrder | 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderUpdate">
<parameter name="WorkOrder">
<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 WorkOrderCreate 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/2022</number> <!-- updated document ID or number
<date>2022-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 work order. 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 |
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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderDelete">
<parameter name="number" value="12/2022" />
<parameter name="date" type="Date" value="2022-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>
Get list of work orders for specified criteria.
Parameters
| number | Work order number. |
| dateFrom | Search by bill of materials date range. |
| dateTo | Search by bill of materials date range. |
| article | Search by products. |
| status | Usage status (Draft, InProduction, Completed, OnHold, WaitingForApproval, ApprovedForProduction, Settled, Cancelled) |
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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderList">
<parameter name="number" value="123456" />
<parameter name="status" value="Settled"/>
</method>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
<login username="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderList">
<parameter name="dateFrom" value="2022-02-01" />
<parameter name="dateTo" value="2022-02-26" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<WorkOrder>
<!-- structure of bill of materials data is the same as in WorkOrderGet
</WorkOrder>
<WorkOrder>
<!-- structure of bill of materials data is the same as in WorkOrderGet
</WorkOrder>
...
</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 work order.
Parameters
| number | Document number. Can use sequential document number (example: 2), or formated number (example: 2016-00002) |
| 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderAttachmentAdd">
<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 work 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 work order for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Add attachment to work 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderAttachmentSetDefault">
<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 work 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 work order for number: 2020-00001, Parameter <attachment> is missing, Parameter <attachment> cannot parse contents
</response>
Get default attachment of work 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderAttachmentGet">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<WorkOrder>
<Attachments>
<Attachment>
<fileName>att.jpg</fileName>
<contents encoding="BASE64">BASE64</contents>
</Attachment>
</Attachments>
</WorkOrder>
</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 work order for number: 2020-00001 work 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="ivan" md5pass="8b29582ce0a1c85dc0c574d218acb900" token="649026C063054A139549200F3C9D01C6" />
<method name="WorkOrderAttachmentList">
<parameter name="number" type="String" value="2020-00001" />
</method>
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response status="ok" >
<WorkOrder>
<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>
</WorkOrder>
</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 work order for number: 2020-00001 work order does not have attachemnts.
</response>