Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

On this page:

Table of Contents
maxLevel12

XML Example

Code Block
titleInvoice with Coolblue Requirements (XML)
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<invoices>
   <invoice amountTypeCode="Debit" currency="EUR" id="INV-Coolblue-example" invoiceTypeCode="Invoice">
      <invoiceDate>20200805T000000</invoiceDate>
      <addresses>
         <address partnerID="8714253023236" type="BillFrom">
            <name>Onetrail Test Seller</name>
            <addressLine1>Handelsweg 6-1</addressLine1>
            <cityName>Zeist</cityName>
            <nationalPostalCode>3707 NH</nationalPostalCode>
            <globalCountryCode>NL</globalCountryCode>
            <taxIdentifier>NL.........</taxIdentifier>
            <IBAN>NL17DUMMY000000000</IBAN>
         </address>
         <address partnerID="8714253023236" type="TradingPartnerFrom">
            <name>Onetrail Test Seller</name>
            <addressLine1>Handelsweg 6-1</addressLine1>
            <cityName>Zeist</cityName>
            <nationalPostalCode>3707 NH</nationalPostalCode>
            <globalCountryCode>NL</globalCountryCode>
         </address>
         <address partnerID="8713783707524" type="TradingPartnerTo">
            <name>Coolblue B.V.</name>
            <addressLine1>Weena 664</addressLine1>
            <cityName>Rotterdam</cityName>
            <nationalPostalCode>3012 CN</nationalPostalCode>
            <globalCountryCode>NL</globalCountryCode>
         </address>
         <address partnerID="8713783707531" type="BillTo">
            <name>Coolblue B.V.</name>
            <addressLine1>Weena 664</addressLine1>
            <cityName>Rotterdam</cityName>
            <nationalPostalCode>3012 CN</nationalPostalCode>
            <globalCountryCode>NL</globalCountryCode>
            <taxIdentifier>NL810433941B01</taxIdentifier>
         </address>
         <address partnerID="8713783719657" type="ShipTo">
            <name>Coolblue B.V. DC Tilburg</name>
            <addressLine1>Asteriastraat 4A</addressLine1>
            <cityName>Tilburg</cityName>
            <nationalPostalCode>5047 RM</nationalPostalCode>
            <globalCountryCode>NL</globalCountryCode>
         </address>
      </addresses>
      <invoiceLines>
         <invoiceLine>
            <orderIdentifications>
               <!--Mandatory-->
               <orderIdentification type="Buyer">CX0000000000</orderIdentification>
               <!--Optional-->
               <orderIdentification type="Invoice">INV-Coolblue-example</orderIdentification>
               <orderIdentification type="DesAdv">DesAdvNo</orderIdentification>
               <orderIdentification type="Seller">SellerOrdNo</orderIdentification>
            </orderIdentifications>
            <lineNumbers>
               <!--Mandatory-->
               <lineNumber type="Buyer">1</lineNumber>
               <lineNumber type="Invoice">1</lineNumber>
               <!--Optional-->
               <lineNumber type="DesAdv">1</lineNumber>
               <lineNumber type="Seller">1</lineNumber>
            </lineNumbers>
            <amounts>
               <!--Mandatory-->
               <monetaryAmount amountTypeCode="Debit" currency="EUR" type="Unit">316.96</monetaryAmount>
               <monetaryAmount amountTypeCode="Debit" currency="EUR" type="LineTotal">8874.88</monetaryAmount>
               <!--Optional-->
               <monetaryAmount amountTypeCode="Debit" currency="EUR" type="Line">8874.88</monetaryAmount>
               <monetaryAmount amountTypeCode="Debit" currency="EUR" type="Taxes">1863.72</monetaryAmount>
            </amounts>
            <unitOfMeasurement>EACH</unitOfMeasurement>
            <productDescription>Most Wonderful Product there is</productDescription>
            <invoicedQuantity>28</invoicedQuantity>
            <productIdentifiers>
               <!--Mandatory when on the order-->
               <productIdentifier type="Manufacturer">AP8853</productIdentifier>
               <!--Recommended-->
               <productIdentifier type="Seller">SellerPN1</productIdentifier>
               <productIdentifier type="Buyer">BuyerPN1</productIdentifier>
               <productIdentifier type="EAN">8712345678921</productIdentifier>
            </productIdentifiers>
            <taxes>
               <tax origrate="21" rate="HIGH" type="NationalTax">
                  <monetaryAmount amountTypeCode="Debit" currency="EUR">1863.72</monetaryAmount>
               </tax>
            </taxes>
         </invoiceLine>
      </invoiceLines>
      <paymentDueDate origcode="D30" type="Provided">20200905T000000</paymentDueDate>
      <taxSummary>
         <tax origrate="21" rate="HIGH" type="NationalTax">
            <monetaryAmount amountTypeCode="Debit" currency="EUR">1863.72</monetaryAmount>
         </tax>
      </taxSummary>
      <amountSummary>
         <!--Mandatory-->
		 <monetaryAmount amountTypeCode="Debit" currency="EUR" type="NetTotal">8874.88</monetaryAmount>
		 <monetaryAmount amountTypeCode="Debit" currency="EUR" type="TotalTaxes">1863.72</monetaryAmount>
		 <monetaryAmount amountTypeCode="Debit" currency="EUR" type="EndTotal">10738.60</monetaryAmount>
         <!--Optional-->
         <monetaryAmount amountTypeCode="Debit" currency="EUR" type="TotalItems">8874.88</monetaryAmount>
         <monetaryAmount amountTypeCode="Debit" currency="EUR" type="TotalCharges">0.00</monetaryAmount>
         <monetaryAmount amountTypeCode="Debit" currency="EUR" type="TotalLevies">0.00</monetaryAmount>
      </amountSummary>
   </invoice>
</invoices>

...