CXMLクレジットメモのサンプル
このサンプルcXMLクレジットメモ/メモを使用して、Coupa統合をテストします。
<?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="DUNS">
nothing <Identity>01</Identity>
</Credential>
</From>
<To>
<Credential domain="DUNS">
12 -345<Identity> -6799</Identity>
</Credential>
</To>
<Sender>
<Credential domain="DUNS">
nothing <Identity>01</Identity>
<SharedSecret>パスワード</SharedSecret>
</Credential>
<UserAgent>あなた自身のエージェント1.23</UserAgent>
</Sender>
</Header>
<Request deploymentMode="production">
<InvoiceDetailRequest>
<InvoiceDetailRequestHeader invoiceID="credit-note-2" purpose="creditMemo" operation="new" invoiceDate="2014-04-30T11:45:51-07:00">
<InvoiceDetailHeaderIndicator />
<InvoiceDetailLineIndicator isAccountingInLine="yes" />
<InvoicePartner>
<Contact role="remitTo" addressID="RTC-GB-4">
<Name xml:lang="en">RTN GB</Name>
</Contact>
</InvoicePartner>
<InvoicePartner>
<Contact role="billTo">
<Name xml:lang="en">xxx yyyy</Name>
<PostalAddress name="default">
<DeliverTo>xxx yyyy</DeliverTo>
住所<Street>1</Street>
住所<Street>2</Street>
<City>市区町村</City>
<State>都道府県</State>
<PostalCode>151515</PostalCode>
<Country isoCountryCode="BE">1</Country>
</PostalAddress>
<Email name="default">user@example.com</Email>
<Phone name="work">
<TelephoneNumber>
<CountryCode isoCountryCode="BE">ベルギー</CountryCode>
<AreaOrCityCode>745</AreaOrCityCode>
<Number>+1 (987) 654 -3210</Number>
</TelephoneNumber>
</Phone>
</Contact>
</InvoicePartner>
<DocumentReference payloadID="inv123112" />
<!--請求書ヘッダーレベルで配送先住所を指定するためのInvoiceDetailShipping、
は必要ありません
-->
<InvoiceDetailShipping>
<Contact role="shipFrom">
<Name xml:lang="en">ミン・トラン</Name>
<PostalAddress name="default">
<DeliverTo>ミン・トラン</DeliverTo>
<Street>2 W Fifth Street</Street>
<Street>スイート300</Street>
<City>サンマテオ</City>
<State>カナダ</State>
<PostalCode>94402</PostalCode>
<Country isoCountryCode="US">米国</Country>
</PostalAddress>
</Contact>
<Contact role="shipTo">
<Name xml:lang="en">ゴルマル</Name>
<PostalAddress name="default">
<DeliverTo>ゴルマル</DeliverTo>
<Street>qwerty</Street>
<Street>ytrewq</Street>
<City>ブロンコッリ</City>
<State>レモン</State>
<PostalCode>223344</PostalCode>
<Country isoCountryCode="US">米国</Country>
</PostalAddress>
</Contact>
</InvoiceDetailShipping>
<PaymentTerm payInNumberOfDays="30" />
<Extrinsic name="CustomFields">
<IdReference identifier="original_invoice_date" domain="CustomField">
2014 <Description xml:lang="en">-08 -06 T 11:45:51 - 07:00</Description>
</IdReference>
</Extrinsic>
<Extrinsic name="CustomFields">
<IdReference identifier="original_invoice" domain="CustomField">
<Description xml:lang="en">inv 123112</Description>
</IdReference>
</Extrinsic>
</InvoiceDetailRequestHeader>
<InvoiceDetailOrder>
<InvoiceDetailOrderInfo>
<MasterAgreementReference>
<!-- payloadID is the Contract number -->
<DocumentReference payloadID="2200" />
</MasterAgreementReference>
</InvoiceDetailOrderInfo>
<!-- First invoice quantity line. -->
<InvoiceDetailItem invoiceLineNumber="1" quantity="1">
<UnitOfMeasure>EA</UnitOfMeasure>
<UnitPrice>
<Money currency="USD">100</Money>
</UnitPrice>
<InvoiceDetailItemReference lineNumber="1">
<Description xml:lang="en">Tortuga_Item 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>