CXML裏付けのない請求書のサンプル

裏付けのないcXML請求書のサンプルを使用して、Coupaの統合をテストします。

Coupaでは、cXMLを介してサプライヤーの請求書を投稿できます。

cXML裏付けのないインボイス



<?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="2014-06-30T01:24:51-07:00">

	<Header>

		<From>

			<Credential domain="Dom1">

				<Identity>カイル</Identity>

			</Credential>

		</From>

		<To>

			<Credential domain="Dom2">

				<Identity>Coupa</Identity>

			</Credential>

		</To>

		<Sender>

			<Credential domain="Dom3">

				<Identity>テスト</Identity>

				<SharedSecret>シークレット</SharedSecret>

			</Credential>

			<UserAgent>あなた自身のエージェント1.23</UserAgent>

		</Sender>

	</Header>

	<Request deploymentMode="production">

		<InvoiceDetailRequest>

			<InvoiceDetailRequestHeader invoiceID="CD24706_882015_8" purpose="standard" operation="new" invoiceDate="2015-04-30T11:45:51-07:00">

				<InvoiceDetailHeaderIndicator />

				<InvoiceDetailLineIndicator isAccountingInLine="yes" />

				<InvoicePartner>

					<Contact role="remitTo" addressID="RTCode">

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

					</Contact>

				</InvoicePartner>

				<InvoicePartner>

					<Contact role="billTo">

						<Name xml:lang="en">xxx yyyy</Name>

						<PostalAddress name="default">

							住所<Street>1</Street>

							住所<Street>2</Street>

							<City>市区町村</City>

							<State>都道府県</State>

							<PostalCode>151515</PostalCode>

							<Country isoCountryCode="BE">1</Country>

						</PostalAddress>

						<Email name="default">harinni.coupa01@gmail.com</Email>

						<Phone name="work">

							<TelephoneNumber>

								<CountryCode isoCountryCode="BE">ベルギー</CountryCode>

								<AreaOrCityCode>745</AreaOrCityCode>

								<Number>+1 (987) 654 -3210</Number>

							</TelephoneNumber>

						</Phone>

					</Contact>

				</InvoicePartner>

				<PaymentTerm payInNumberOfDays="30" />

			</InvoiceDetailRequestHeader>

			<InvoiceDetailOrder>

				<InvoiceDetailOrderInfo>

					<MasterAgreementReference>

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

						<DocumentReference payloadID="441" />

					</MasterAgreementReference>

				</InvoiceDetailOrderInfo>

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

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

					<UnitOfMeasure>EA</UnitOfMeasure>

					<UnitPrice>

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

					</UnitPrice>

					<InvoiceDetailItemReference lineNumber="1">

						Item <Description xml:lang="en">01</Description>

					</InvoiceDetailItemReference>

					<SubtotalAmount>

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

					</SubtotalAmount>

				</InvoiceDetailItem>

			</InvoiceDetailOrder>

			<InvoiceDetailSummary>

				<SubtotalAmount>

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

				</SubtotalAmount>

				<Tax>

					<Money currency="USD" alternateAmount="10" alternateCurrency="EUR">8</Money>

					税金<Description xml:lang="en">合計</Description>

					<TaxDetail purpose="tax" category="Standard Rate" percentageRate="20" taxPointDate="2014-06-30T11:45:51-07:00">

						<TaxableAmount>

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

						</TaxableAmount>

						<TaxAmount>

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

						</TaxAmount>

						<TaxLocation xml:lang="en">カナダ</TaxLocation>

					</TaxDetail>

				</Tax>

				<NetAmount>

					<Money currency="USD" />

				</NetAmount>

			</InvoiceDetailSummary>

		</InvoiceDetailRequest>

	</Request>

</cXML>

リクエスターを含むcXMLの裏付けのない請求書



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

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

<cXML payloadID="20101222 190337.2999" timestamp="2010-12-22T19:03:37" version="1.0">

	 <Header>

			<From>

				 <Credential domain="test">

						<Identity>テスト</Identity>

				 </Credential>

			</From>

			<To>

				 <Credential domain="test">

						<Identity>テスト</Identity>

				 </Credential>

			</To>

			<Sender>

				 <Credential domain="test">

						<Identity>テスト</Identity>

						<SharedSecret>テスト</SharedSecret>

				 </Credential>

				 <UserAgent>Coupa連携V 01</UserAgent>

			</Sender>

	 </Header>

	 <Request deploymentMode="production">

			<InvoiceDetailRequest>

				 <InvoiceDetailRequestHeader invoiceDate="2010-12-16T00:00:00" invoiceID="Req_test" operation="new" purpose="standard">

						<InvoiceDetailHeaderIndicator />

						<InvoiceDetailLineIndicator isAccountingInLine="yes" />

						<PaymentTerm payInNumberOfDays="30" />

						<Extrinsic name="Requester">

							 <Extrinsic name="Email">supplieremailtest11+xyz@gmail.com</Extrinsic>

							 <Extrinsic name="Name">John Doe</Extrinsic>

						</Extrinsic>

				 </InvoiceDetailRequestHeader>

				 <InvoiceDetailOrder>

						<InvoiceDetailOrderInfo>

							 <MasterAgreementReference>

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

									<DocumentReference payloadID="110033" />

							 </MasterAgreementReference>

						</InvoiceDetailOrderInfo>

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

							 <UnitOfMeasure>EA</UnitOfMeasure>

							 <UnitPrice>

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

							 </UnitPrice>

							 <InvoiceDetailItemReference lineNumber="1">

									<Description xml:lang="en">Item 1</Description>

							 </InvoiceDetailItemReference>

							 <SubtotalAmount>

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

							 </SubtotalAmount>

							 <Distribution>

									<Accounting name="Account Matt">

										 <AccountingSegment id="Seg 2">

												<Name xml:lang="en" />

												<Description xml:lang="en" />

										 </AccountingSegment>

									</Accounting>

									<Charge>

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

									</Charge>

							 </Distribution>

						</InvoiceDetailItem>

				 </InvoiceDetailOrder>

				 <InvoiceDetailSummary>

						<SubtotalAmount>

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

						</SubtotalAmount>

						<Tax>

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

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

							 <TaxDetail category="tax" purpose="tax" taxPointDate="2010-12-16T00:00:00">

									<TaxableAmount>

										 <Money currency="USD" />

									</TaxableAmount>

									<TaxAmount>

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

									</TaxAmount>

									<TaxLocation xml:lang="en">カナダ</TaxLocation>

							 </TaxDetail>

						</Tax>

						<SpecialHandlingAmount>

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

						</SpecialHandlingAmount>

						<ShippingAmount>

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

						</ShippingAmount>

						<NetAmount>

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

						</NetAmount>

				 </InvoiceDetailSummary>

			</InvoiceDetailRequest>

	 </Request>

</cXML>

正常なサプライヤー請求書応答



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

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

<cXML xml:lang="en-US" timestamp="2015-07-09T17:38:15+00:00" payloadID="201506241230171230170.926@staples.com">

	<Response>

		<Status text="OK" code="200">成功-請求書ID :9532</Status>

	</Response>

</cXML>

このページに表示されている一部、または全ての内容は、機械翻訳によるものです。ご了承ください。