Beispiel für eine cXML-Rechnung mit Verteilungen für das Abrechnungskonto

Verwenden Sie diese cXML-Beispielrechnung, die verteilte Abrechnungskonten enthält, um Ihre Coupa-Integration zu testen.

Coupa ermöglicht es, Rechnungen mit einem vorgeschlagenen Abrechnungskonto über cXML zu buchen. Der einzige Unterschied in der Spezifikation ist die Verwendung des Verteilungsknotens, der jede der einzelnen Buchhaltungsverteilungen und den Anteil für jede angibt.



...

	 <Distribution>

			<Accounting name="Buyer assigned accounting code 1">

				 <AccountingSegment id="ABC123456789">

						<Name xml:lang="en">Kaufen</Name>

						<Description xml:lang="en">Produktionskontrolle</Description>

				 </AccountingSegment>

				 <AccountingSegment id="IT">

						<Name xml:lang="en">Seg-Name</Name>

						<Description xml:lang="en">Seg-Code</Description>

				 </AccountingSegment>

			</Accounting>

			<Charge>

				 <Money currency="USD">100</Money>

			</Charge>

	 </Distribution>

	 <Distribution>

			<Accounting name="Buyer assigned accounting code 2">

				 <AccountingSegment id="ABC000000001">

						<Name xml:lang="en">Handel</Name>

						<Description xml:lang="en">Sonstiges (Gebucht)</Description>

				 </AccountingSegment>

			</Accounting>

			<Charge>

				 <Money currency="USD">245</Money>

			</Charge>

	 </Distribution>

...

cXML-Rechnung gegen Vertrag



<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">

<cXML version="1.0" payloadID="1240598937@SUBDOMAIN.coupahost.com" timestamp="2009-05-01T01:24:51-07:00">

	 <Header>

			<From>

				 <Credential domain="DUNS">

						<Identity>Kyle</Identity>

				 </Credential>

			</From>

			<To>

				 <Credential domain="DUNS">

						<Identity>Coupa</Identity>

				 </Credential>

			</To>

			<Sender>

				 <Credential domain="DUNS">

						<Identity>Kyle</Identity>

						<SharedSecret>Pssst.</SharedSecret>

				 </Credential>

				 <UserAgent>Ihr ganz eigener Agent 1.23</UserAgent>

			</Sender>

	 </Header>

	 <Request deploymentMode="production">

			<InvoiceDetailRequest>

				 <InvoiceDetailRequestHeader invoiceID="735675n3" purpose="standard" operation="new"

						invoiceDate="2009-05-01T11:45:51-07:00">

						<InvoiceDetailHeaderIndicator />

						<InvoiceDetailLineIndicator isAccountingInLine="yes" />

						<PaymentTerm payInNumberOfDays="30" />

				 </InvoiceDetailRequestHeader>

				 <InvoiceDetailOrder>

						<InvoiceDetailOrderInfo>

							 <MasterAgreementReference>

									<!-- payloadID is the Contract number -->

									<DocumentReference payloadID="2257" />

							 </MasterAgreementReference>

						</InvoiceDetailOrderInfo>

						<!-- First invoice quantity line. -->

						<InvoiceDetailItem invoiceLineNumber="1" quantity="1">

							 <UnitOfMeasure>EA</UnitOfMeasure>

							 <UnitPrice>

									<Money currency="USD">365</Money>

							 </UnitPrice>

							 <!-- The lineNumber here is the backing PO line number, i.e. in this case, line 2 of PO #10 -->

							 <InvoiceDetailItemReference lineNumber="1">

									<!-- Die Beschreibung wird in der Zeilenbeschreibung der Rechnung angezeigt. Obwohl es 

									alles, Coupa empfiehlt, dass Sie dies mit der Beschreibung der unterstützenden PO-Linie übereinstimmen. -->

									<Description xml:lang="en">NEU 1 NINTENDO WII SPIELKONSOLE + WII FIT BUNDLE +SPIELE</Description>

							 </InvoiceDetailItemReference>

							 <!-- Shows up as "Total" on the invoice line -->

							 <SubtotalAmount>

									<Money currency="USD">365</Money>

							 </SubtotalAmount>

							 <!-- Rechnungskontosegmente.	-->

							 <Distribution>

									<Accounting name="Chart of Accounts">

										 <!-- id value represents the segment in Coupa -->

										 <AccountingSegment id="ABC123456789">

												<Name xml:lang="en">Kaufen</Name>

												<Description xml:lang="en">Produktionskontrolle</Description>

										 </AccountingSegment>

										 <AccountingSegment id="IT">

												<Name xml:lang="en">Seg-Name</Name>

												<Description xml:lang="en">Seg-Code</Description>

										 </AccountingSegment>

									</Accounting>

									<Charge>

										 <Money currency="USD">100</Money>

									</Charge>

							 </Distribution>

							 <Distribution>

									<Accounting name="Buyer assigned accounting code 2">

										 <AccountingSegment id="ABC000000001">

												<Name xml:lang="en">Handel</Name>

												<Description xml:lang="en">Sonstiges (Gebucht)</Description>

										 </AccountingSegment>

									</Accounting>

									<Charge>

										 <Money currency="USD">245</Money>

									</Charge>

							 </Distribution>

						</InvoiceDetailItem>

				 </InvoiceDetailOrder>

				 <InvoiceDetailSummary>

						<!-- Should add-up and be consistent with the subtotals on the invoice lines -->

						<SubtotalAmount>

							 <Money currency="USD">365</Money>

						</SubtotalAmount>

						<Tax>

							 <Money currency="USD">8</Money>

							 steuern <Description xml:lang="en">gesamt</Description>

							 <TaxDetail purpose="tax" category="VAT" percentageRate="1" taxPointDate="2009-04-24T11:45:51-07:00">

									<TaxableAmount>

										 <Money currency="USD">365</Money>

									</TaxableAmount>

									<TaxAmount>

										 <Money currency="USD">8</Money>

									</TaxAmount>

									<TaxLocation xml:lang="en">CA</TaxLocation>

							 </TaxDetail>

						</Tax>

						<SpecialHandlingAmount>

							 <Money currency="USD">5</Money>

						</SpecialHandlingAmount>

						<!-- Shipping costs -->

						<ShippingAmount>

							 <Money currency="USD">30</Money>

						</ShippingAmount>

						<NetAmount>

							 <Money currency="USD" />

						</NetAmount>

				 </InvoiceDetailSummary>

			</InvoiceDetailRequest>

	 </Request>

</cXML>