JP Simple Backed Invoice (Quantity Based)

Sample cXML quantity-based, PO-backed invoice and the corresponding PDF version for Japan.

<?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="2023-10-20T00:00:00+09:00" payloadID="xxxx.xxxx.xxx@demo.coupahost">
 <Header>
  <From>
   <Credential domain="DUNS">
    <Identity>SUPPLIER</Identity>
   </Credential>
  </From>
  <To>
   <Credential domain="DUNS">
    <Identity>BUYER</Identity>
   </Credential>
  </To>
  <Sender>
   <Credential domain="DUNS">
    <Identity>SUPPLIER</Identity>
    <SharedSecret>passw0rd</SharedSecret>
   </Credential>
   <UserAgent />
  </Sender>
 </Header>
 <Request deploymentMode="production">
  <InvoiceDetailRequest>
   <InvoiceDetailRequestHeader invoiceDate="2023-10-20T00:00:00+09:00" operation="new" purpose="standard" invoiceOrigin="supplier" invoiceID="SAMPLE-JAPAN3">
    <InvoiceDetailHeaderIndicator />
    <InvoiceDetailLineIndicator isAccountingInLine="yes" isTaxInLine="yes" />
    <InvoicePartner>
     <Contact role="remitTo" addressID="100">
      <Name xml:lang="en-JP">Japan Supplier</Name>
     </Contact>
    </InvoicePartner>
    <InvoicePartner>
     <Contact role="invoiceFrom" addressID="100">
      <Name xml:lang="en">Japan SUPPLIER</Name>
     </Contact>
    </InvoicePartner>
    <InvoiceDetailShipping>
     <Contact role="shipFrom" addressID="100">
      <Name xml:lang="ja-JP">xxx</Name>
     </Contact>
     <Contact role="shipTo" addressID="353">
      <Name xml:lang="ja-JP">xxx</Name>
     </Contact>
    </InvoiceDetailShipping>
    <InvoiceDetailPaymentTerm payInNumberOfDays="30" percentageRate="0" />
   </InvoiceDetailRequestHeader>
   <InvoiceDetailOrder>
    <InvoiceDetailOrderInfo>
     <OrderReference>
      <DocumentReference payloadID="3130" />
     </OrderReference>
    </InvoiceDetailOrderInfo>
    <InvoiceDetailItem invoiceLineNumber="1" quantity="1.00">
     <UnitOfMeasure>EA</UnitOfMeasure>
     <UnitPrice>
      <Money currency="JPY">245</Money>
     </UnitPrice>
     <InvoiceDetailItemReference lineNumber="1">
      <ItemID>
       <SupplierPartID>ABC123</SupplierPartID>
       <SupplierPartAuxiliaryID>123ABC</SupplierPartAuxiliaryID>
      </ItemID>
      <Description xml:lang="ja-JP">Item description</Description>
     </InvoiceDetailItemReference>
     <SubtotalAmount>
      <Money currency="JPY">245</Money>
     </SubtotalAmount>
     <Tax>
      <Money alternateAmount="24.5" alternateCurrency="JPY" currency="JPY">24.5</Money>
      <Description xml:lang="ja-JP">tax</Description>
      <TaxDetail purpose="Japan-CT" category="CT" percentageRate="10" taxPointDate="2023-10-11T00:00:00+09:00">
       <TaxableAmount>
        <Money currency="JPY">245</Money>
       </TaxableAmount>
       <TaxAmount>
        <Money currency="JPY">24.5</Money>
       </TaxAmount>
       <Description xml:lang="ja-JP">tax</Description>
      </TaxDetail>
     </Tax>
    </InvoiceDetailItem>
   </InvoiceDetailOrder>
   <InvoiceDetailOrder>
    <InvoiceDetailOrderInfo>
     <OrderReference>
      <DocumentReference payloadID="3130" />
     </OrderReference>
    </InvoiceDetailOrderInfo>
    <InvoiceDetailItem invoiceLineNumber="2" quantity="1.00">
     <UnitOfMeasure>EA</UnitOfMeasure>
     <UnitPrice>
      <Money currency="JPY">315</Money>
     </UnitPrice>
     <InvoiceDetailItemReference lineNumber="2">
      <ItemID>
       <SupplierPartID>XYZ</SupplierPartID>
       <SupplierPartAuxiliaryID>123XYZ</SupplierPartAuxiliaryID>
      </ItemID>
      <Description xml:lang="ja-JP">Item description2</Description>
     </InvoiceDetailItemReference>
     <SubtotalAmount>
      <Money currency="JPY">315</Money>
     </SubtotalAmount>
     <Tax>
      <Money alternateAmount="31.5" alternateCurrency="JPY" currency="JPY">31.5</Money>
      <Description xml:lang="ja-JP">tax</Description>
      <TaxDetail purpose="Japan-CT" category="CT" percentageRate="10" taxPointDate="2023-10-11T00:00:00+09:00">
       <TaxableAmount>
        <Money currency="JPY">315</Money>
       </TaxableAmount>
       <TaxAmount>
        <Money currency="JPY">31.5</Money>
       </TaxAmount>
       <Description xml:lang="ja-JP">tax</Description>
      </TaxDetail>
     </Tax>
    </InvoiceDetailItem>
   </InvoiceDetailOrder>
   <InvoiceDetailSummary>
    <SubtotalAmount>
     <Money currency="JPY"></Money>
    </SubtotalAmount>
    <Tax>
     <Money alternateAmount="56" alternateCurrency="JPY" currency="JPY">56</Money>
     <Description xml:lang="ja-JP">tax</Description>
     <TaxDetail purpose="Japan-CT" category="CT" percentageRate="10" taxPointDate="2023-10-11T00:00:00+09:00">
      <TaxableAmount>
       <Money currency="JPY">560</Money>
      </TaxableAmount>
      <TaxAmount>
       <Money currency="JPY">56</Money>
      </TaxAmount>
      <Description xml:lang="ja-JP">tax</Description>
     </TaxDetail>
    </Tax>
    <GrossAmount>
     <Money currency="JPY">616</Money>
    </GrossAmount>
    <InvoiceDetailDiscount>
     <Money currency="JPY">0</Money>
    </InvoiceDetailDiscount>
    <NetAmount>
     <Money currency="JPY">560</Money>
    </NetAmount>
    <DueAmount>
     <Money currency="JPY">616</Money>
    </DueAmount>
   </InvoiceDetailSummary>
  </InvoiceDetailRequest>
 </Request>
</cXML>