• Dernière modification le: 11 October 2017

Exemple de note de crédit cXML

Utilisez cet exemple de note de crédit cXML pour tester votre intégration 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">

						<Identity>rien01</Identity>

				 </Credential>

			</From>

			<To>

				 <Credential domain="DUNS">

						<Identity>12-345-6799</Identity>

				 </Credential>

			</To>

			<Sender>

				 <Credential domain="DUNS">

						<Identity>rien01</Identity>

						<SharedSecret>mot de passe</SharedSecret>

				 </Credential>

				 <UserAgent>Votre propre agent 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 Go</Name>

							 </Contact>

						</InvoicePartner>

						<InvoicePartner>

							 <Contact role="billTo">

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

									<PostalAddress name="default">

										 <DeliverTo>xxx yyy</DeliverTo>

										 <Street>Ligne 1</Street>

										 <Street>Ligne 2</Street>

										 <City>Ville</City>

										 <State>État</State>

										 <PostalCode>151515</PostalCode>

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

									</PostalAddress>

									<Email name="default">user@example.com</Email>

									<Phone name="work">

										 <TelephoneNumber>

												<CountryCode isoCountryCode="BE">Belgique</CountryCode>

												<AreaOrCityCode>745</AreaOrCityCode>

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

										 </TelephoneNumber>

									</Phone>

							 </Contact>

						</InvoicePartner>

						<DocumentReference payloadID="inv123112" />

						<!-- InvoiceDetailShipping pour spécifier les ajouts d'expédition au niveau de l'en-tête de la facture,

										n'est pas nécessaire

									-->

						<InvoiceDetailShipping>

							 <Contact role="shipFrom">

									<Name xml:lang="en">Minh Tran</Name>

									<PostalAddress name="default">

										 <DeliverTo>Minh Tran</DeliverTo>

										 <Street>2 W Fifth Street</Street>

										 <Street>Suite 300</Street>

										 <City>San Mateo</City>

										 <State>CA</State>

										 <PostalCode>94402</PostalCode>

										 <Country isoCountryCode="US">États-Unis</Country>

									</PostalAddress>

							 </Contact>

							 <Contact role="shipTo">

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

									<PostalAddress name="default">

										 <DeliverTo>Golmal</DeliverTo>

										 <Street>qwerty</Street>

										 <Street>ytrewq</Street>

										 <City>Broncolli</City>

										 <State>citron</State>

										 <PostalCode>223344</PostalCode>

										 <Country isoCountryCode="US">États-Unis</Country>

									</PostalAddress>

							 </Contact>

						</InvoiceDetailShipping>

						<PaymentTerm payInNumberOfDays="30" />

						<Extrinsic name="CustomFields">

							 <IdReference identifier="original_invoice_date" domain="CustomField">

									<Description xml:lang="en">2014-08-06T11:45:51-07:00</Description>

							 </IdReference>

						</Extrinsic>

						<Extrinsic name="CustomFields">

							 <IdReference identifier="original_invoice" domain="CustomField">

									<Description xml:lang="en">inv123112</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_Item01</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">total des impôts</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">CA</TaxLocation>

							 </TaxDetail>

						</Tax>

						<NetAmount>

							 <Money currency="USD" />

						</NetAmount>

				 </InvoiceDetailSummary>

			</InvoiceDetailRequest>

	 </Request>

</cXML>

Une partie ou la totalité de cette page peut avoir été traduite par machine. Toutes nos excuses pour les inexactitudes.