Skip to main content

 

 

Coupa Success Portal

Germany Compliance Sample cXML

Invoice with tax cXML example.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
<cXML version="1.2.020" xml:lang="en-US" timestamp="2016-08-11T10:16:25-08:00"
payloadID="xxxx.xxxx.xxx@demo.coupahost">
    <Header>
        <From>
            <Credential domain="DUNS">
                <Identity>Supplier Identity</Identity>
            </Credential>
        </From>
        <To>
            <Credential domain="DUNS">
                <Identity>Customer Identity</Identity>
            </Credential>
        </To>
        <Sender>
            <Credential domain="DUNS">
                <Identity>Supplier Identity</Identity>
                <SharedSecret>xxxxxxx</SharedSecret>
            </Credential>
            <UserAgent>The User Agent</UserAgent>
        </Sender>
    </Header>
    <Request deploymentMode="production">
        <InvoiceDetailRequest>
            <InvoiceDetailRequestHeader invoiceDate="2016-08-11T10:13:00-08:00" operation="new"
            purpose="standard" invoiceOrigin="supplier" invoiceID="A0000002">
                <InvoiceDetailHeaderIndicator/>
                <InvoiceDetailLineIndicator isAccountingInLine="yes" isTaxInLine="yes"/>
                <InvoicePartner>
                    <Contact role="from">
                        <Name xml:lang="en-US">Supplier Name GMBH</Name>
                        <PostalAddress>
                            <Street>Street Name and Number</Street>
                            <City>City</City>
                            <State></State>
                            <PostalCode>Postal Code</PostalCode>
                            <Country isoCountryCode="DE">Germany</Country>
                        </PostalAddress>
                    </Contact>
                </InvoicePartner>
                <InvoicePartner>
                    <Contact role="soldTo">
                        <Name xml:lang="en-US">Customer Name</Name>
                        <PostalAddress>
                            <Street>Customer address, line 1</Street>
                            <Street>Customer address, line 2</Street>
                            <City>City</City>
                            <PostalCode>Postal Code</PostalCode>
                            <Country isoCountryCode="DE">Germany</Country>
                        </PostalAddress>
                    </Contact>
                </InvoicePartner>
                <InvoicePartner>
                    <Contact role="remitTo" addressID="remitID">
                        <Name xml:lang="en-US">Remit Name</Name>
                        <PostalAddress>
                            <Street>Address line 1</Street>
                            <City>City</City>
                            <State></State>
                            <PostalCode>Postal Code</PostalCode>
                            <Country isoCountryCode="DE">Germany</Country>
                        </PostalAddress>
                    </Contact>
                    <IdReference domain="taxPrefix" identifier="DE"/>
                    <IdReference domain="taxNumber" identifier="DE999999999"/>
                </InvoicePartner>
                <InvoicePartner>
                    <Contact role="billTo" addressID="123">
                        <Name xml:lang="en-US">Customer Billing Name</Name>
                        <PostalAddress>
                            <Street>Customer billing address - line 1</Street>
                            <Street>Customer billing address - line 2</Street>
                            <City>City</City>
                            <PostalCode>Postal Code</PostalCode>
                            <Country isoCountryCode="DE">Germany</Country>
                        </PostalAddress>
                    </Contact>
                </InvoicePartner>
                <InvoicePartner>
                    <Contact role="ReceivingBank">
                        <Name xml:lang="en-US">Bank Name</Name>
                    </Contact>
                    <IdReference identifier="IBAN Number" domain="ibanID"/>
                </InvoicePartner>
                <InvoiceDetailShipping>
                    <Contact role="shipFrom">
                        <Name xml:lang="en-US">Name</Name>
                        <PostalAddress>
                            <Street>Address</Street>
                            <City>City</City>
                            <State></State>
                            <PostalCode>Post Code</PostalCode>
                            <Country isoCountryCode="DE">Germany</Country>
                        </PostalAddress>
                    </Contact>
                    <Contact role="shipTo">
                        <Name xml:lang="en-US">Name</Name>
                        <PostalAddress>
                            <Street>Address - line 1</Street>
                            <Street>Address - line 2</Street>
                            <City>City</City>
                            <PostalCode>Postal Code</PostalCode>
                            <Country isoCountryCode="DE">Germany</Country>
                        </PostalAddress>
                    </Contact>
                </InvoiceDetailShipping>
                <InvoiceDetailPaymentTerm payInNumberOfDays="30" percentageRate="0"/>
                <Extrinsic name="LatePaymentPenalties">0.00</Extrinsic>
                <Extrinsic name="EarlyPaymentProvisions">EPP</Extrinsic>
                <Extrinsic name="ExchangeRate">1.00</Extrinsic>
            </InvoiceDetailRequestHeader>
            <InvoiceDetailOrder>
                <InvoiceDetailOrderInfo>
                    <OrderReference>
                        <DocumentReference payloadID="3504"/>
                    </OrderReference>
                    <SupplierOrderInfo orderID="A000001" />
                </InvoiceDetailOrderInfo>
                <InvoiceDetailItem invoiceLineNumber="1" quantity="10.00">
                    <UnitOfMeasure>EA</UnitOfMeasure>
                    <UnitPrice>
                        <Money currency="EUR">100.00</Money>
                    </UnitPrice>
                    <InvoiceDetailItemReference lineNumber="1">
                        <ItemID>
                            <SupplierPartID>ABC123</SupplierPartID>
                            <SupplierPartAuxiliaryID>123ABC</SupplierPartAuxiliaryID>
                        </ItemID>
                        <Description xml:lang="en-US">Item description</Description>
                        <ManufacturerPartID></ManufacturerPartID>
                        <ManufacturerName xml:lang="en-US"></ManufacturerName>
                    </InvoiceDetailItemReference>
                    <SubtotalAmount>
                        <Money currency="EUR">1000.00</Money>
                    </SubtotalAmount>
                    <Tax>
                        <Money alternateAmount="70.00" alternateCurrency="EUR" currency="EUR">70.00</Money>
                        <Description xml:lang="en-US">VAT</Description>
                        <TaxDetail purpose="tax" category="vat" percentageRate="7"
                        taxPointDate="2016-10-06T17:11:45-07:00">
                            <TaxableAmount>
                                <Money currency="EUR">1000.00</Money>
                            </TaxableAmount>
                            <TaxAmount>
                                <Money currency="EUR">70.00</Money>
                            </TaxAmount>
                        </TaxDetail>
                    </Tax>
                    <GrossAmount>
                        <Money currency="EUR">1070.00</Money>
                    </GrossAmount>
                    <NetAmount>
                        <Money currency="EUR">1000.00</Money>
                    </NetAmount>
                    <Distribution>
                        <Accounting name="open">
                            <Segment type="open" id="open" description="open"/>
                        </Accounting>
                        <Charge>
                            <Money currency="EUR"/>
                        </Charge>
                    </Distribution>
                    <Comments xml:lang="en-GB">
                        <Attachment>
                            <URL/>
                        </Attachment>
                    </Comments>
                </InvoiceDetailItem>
            </InvoiceDetailOrder>
            <InvoiceDetailSummary>
                <SubtotalAmount>
                    <Money currency="EUR">1000.00</Money>
                </SubtotalAmount>
                <Tax>
                    <Money alternateAmount="70.00" alternateCurrency="EUR" currency="EUR">70.00</Money>
                    <Description xml:lang="en-US">tax</Description>
                    <TaxDetail purpose="tax" category="vat" percentageRate="7"
                    taxPointDate="2016-10-06T17:11:45-07:00">
                        <TaxableAmount>
                            <Money currency="EUR">1000.00</Money>
                        </TaxableAmount>
                        <TaxAmount>
                            <Money currency="EUR">70</Money>
                        </TaxAmount>
                        <Description xml:lang="en-US"/>
                    </TaxDetail>
                </Tax>
                <GrossAmount>
                    <Money currency="EUR">1070.00</Money>
                </GrossAmount>
                <NetAmount>
                    <Money currency="EUR">1000.00</Money>
                </NetAmount>
                <DueAmount>
                    <Money currency="EUR">1070.00</Money>
                </DueAmount>
            </InvoiceDetailSummary>
        </InvoiceDetailRequest>
    </Request>
</cXML>
  • Was this article helpful?