Invoice
EDI invoice
The invoice contains all information for settling the purchase order. Alongside the items with quantity and price, the invoice also contains the QR information for direct payment via e-banking.
In addition, we can offer you the invoice as a PDF file on the SFTP. This gives you the possibility of additionally archiving the invoice or making it available for your accounting department.
An example of an XML file including XSD validation can be found here.
Description | Data type | Length/format | Sample XML content | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<?xml version="1.0" encoding="UTF-8"?> | ||||||||||||||
<invoice> | ||||||||||||||
Sender name | String | 50 | <message_header source="Alltron AG " | |||||||||||
0 = Live, 1 = Test | Integer | test_flag="0 " | ||||||||||||
Document type (fix: invoice) | String | 50 | message_type="invoice " | |||||||||||
Document version date | String | 10 / dd.mm.yyyy | document_version_date=" 12.06.2018 " | |||||||||||
Document version | String | 10 | document_version="2.00 " | |||||||||||
Document creation date | String | 10 / dd.mm.yyyy | generation_date=" 25.07.2018 " | |||||||||||
Document creation time | String | 8 / hh:mm:ss | generation_time="11:55:30 "/> | |||||||||||
<invoice_header> | ||||||||||||||
<order_party> | ||||||||||||||
<buyer_party> | ||||||||||||||
<party_id> | ||||||||||||||
Your customer number with us | String | 10 | <LPAN>X123456 </LPAN> | |||||||||||
<billing_information> | ||||||||||||||
Payment condition code (days) | String | 10 | <BPMT>30 </BPMT> | |||||||||||
VAT number | String | 20 | <LVNO>CHE-105.990.179 MWST </LVNO> | |||||||||||
Buyer VAT number | String | 20 | <BVNO/> | |||||||||||
<ship_to_party> | ||||||||||||||
<party_id> | ||||||||||||||
End customer number | String | 10 | <LPAN/> | |||||||||||
<nameaddress> | ||||||||||||||
Delivery address name | String | 41 | <PNA1>Hans Muster </PNA1> | |||||||||||
Delivery address contact person | String | 35 | <PNA2/> | |||||||||||
Delivery address reference | String | 30 | <PRFF/> | |||||||||||
Lieferadresse | String | 41 | <PSTR>Auf dem Holzweg 1 </PSTR> | |||||||||||
Delivery address PO box | String | 41 | <PPOB/> | |||||||||||
Delivery address city | String | 35 | <PCTY>Musterhausen </PCTY> | |||||||||||
Delivery address postcode | String | 20 | <PPOC>1234 </PPOC> | |||||||||||
Delivery address country | String | 10 | <PCTR>CH </PCTR> | |||||||||||
<invoice_body> | ||||||||||||||
<invoice_number> | ||||||||||||||
Company code (see annex) | Integer | <LPIC>20 </LPIC> | ||||||||||||
Invoicing type (R = invoice) | String | 2 | <LPIT>R </LPIT> | |||||||||||
Invoice number | String | 20 | <INNR>12276496 </INNR> | |||||||||||
Invoice date | String | 10 / dd.mm.yyyy | <INDT>25.07.2018 </INDT> | |||||||||||
<document_referenz> | ||||||||||||||
<order_referenz> | ||||||||||||||
Order reference | String | 40 | <BORN>987654321 </BORN> | |||||||||||
Order date | String | 10 / dd.mm.yyyy | <BORD>24.07.2018 </BORD> | |||||||||||
Company code (see annex) | Integer | <LPOC>20 </LPOC> | ||||||||||||
Order type (A = order) | String | 2 | <LPOT>A </LPOT> | |||||||||||
Order number | String | 20 | <LORN>13259210 </LORN> | |||||||||||
End customer name | String | 100 | <ECUN/> | |||||||||||
<line_item_number> | ||||||||||||||
Budget line item number | Integer | <BLIN>1 </BLIN> | ||||||||||||
Order line number | Integer | <LLIN>10000 </LLIN> | ||||||||||||
Single item (S = single) | String | 1 | <LPLT>S </LPLT> | |||||||||||
Bundle item line number | Decimal | <KHLN>0.0 </KHLN> | ||||||||||||
<additional_line_information> | ||||||||||||||
Additional text | String | 240 | <PTXT/> | |||||||||||
Special offer number | String | 30 | <SBNR/> | |||||||||||
<delivery_note_number> | ||||||||||||||
Delivery note number | String | 20 | <DNNR>12276496 </DNNR> | |||||||||||
Delivery date | String | 10 / dd.mm.yyyy | <SHDT/> | |||||||||||
<part_number> | ||||||||||||||
Item number (yours) | String | 40 | <CITM/> | |||||||||||
Item number (ours) | String | 30 | <LITM>61797 </LITM> | |||||||||||
Supplier item number | String | 40 | <MITM>ACC-CFD </MITM> | |||||||||||
EAN code | String | 50 | <EITM>4905524434088 </EITM> | |||||||||||
<serial_number> | ||||||||||||||
Serial number | String | 40 | <SENR/> | |||||||||||
<part_description> | ||||||||||||||
Item designation | String | 43 | <DSC1>Sony Zubehör KIT ACC-CFD </DSC1> | |||||||||||
<pricing_details> | ||||||||||||||
Unit price excluding VAT | Decimal | <CUNP>59.85 </CUNP> | ||||||||||||
Quantity | Decimal | <IQTY>1 </IQTY> | ||||||||||||
Unit | String | 10 | <UOMQ>Stk. </UOMQ> | |||||||||||
Line amount excluding VAT | Decimal | <LNAM>59.85 </LNAM> | ||||||||||||
VAT rate | Decimal | <VATR>7.7 </VATR> | ||||||||||||
VAT line amount | Decimal | <VATA>4.61 </VATA> | ||||||||||||
Currency | String | 10 | <CURR>CHF <CURR> | |||||||||||
<additional_amount> | ||||||||||||||
String | 100 | <AAMC/> | ||||||||||||
String | 100 | <AAMV/> | ||||||||||||
<total_amount> | ||||||||||||||
Total amount excluding VAT | Decimal | <NIAM>273.82 </NIAM> | ||||||||||||
Total amount including VAT | Decimal | <TIAM>294.90 </TIAM> | ||||||||||||
Currency | String | 10 | <CURR>CHF </CURR> | |||||||||||
QR Iban | String | 32 | <QR Iban> CH9430761016097605323 </QRIB> | |||||||||||
QR Reference | String | 27 | <QRRE> 810156000001111111244013338 </QRRE> | |||||||||||
<vat_amount> | ||||||||||||||
<vat_rate> | ||||||||||||||
VAT rate | Decimal | <VATR>7.7 </VATR> | ||||||||||||
VAT basis | Decimal | <IATX>273.82 </IATX> | ||||||||||||
VAT amount | Decimal | <VATA>21.08 </VATA> |