• Dernière modification le: 12 August 2019

Exemples d'appels d'API de demandes

Exemple de requête de demandes - Requête par utilisateur spécifique

Dans cet exemple, nous recherchons des demandes créées par l'utilisateur avec un login de 'ejohnson'. Nous pourrions facilement remplacer le paramètre de connexion ci-dessous par un e-mail ou un numéro d'employé

  • HTTP GET https ://<instance>.coupahost.com/api/requisitions?requested-by[login]=<login>
    Dans ce cas, https ://<instance>.coupahost.com/api/requisitions?requested-by[login]=ejohnson
<?xml version="1.0" encoding="UTF-8"?>

<requisition-headers type="array">

	 <requisition-header>

			<id type="integer">97</id>

			<created-at type="datetime">27/04/2009T09:27:56-07:00</created-at>

			<updated-at type="datetime">27/04/2009T09:27:56-07:00</updated-at>

			<buyer-note nil="true" />

			<justification nil="true" />

			<need-by-date nil="true" />

			<reject-reason-comment nil="true" />

			<status>brouillon</status>

			<submitted-at nil="true" />

			<exported type="boolean">faux</exported>

			<ship-to-attention>Ellis (responsable marketing) Johnson</ship-to-attention>

			<total type="decimal">20575,00</total>

			<height-passthrough />

			<custom-attach />

			<custom-field-3 />

			<currency>

				 <id type="integer">1</id>

				 <code>USD</code>

			</currency>

			<department>

				 <id type="integer">1</id>

				 <created-at type="datetime">27/10/2008T13:00:48-07:00</created-at>

				 <updated-at type="datetime">2009-05-04T18:20:29-07:00</updated-at>

				 <name>Marketing</name>

				 <active type="boolean">true</active>

				 <created-by>

						<id type="integer">1</id>

						<login>coupasupport</login>

						<email>robert.monahon+feardemo@coupa.com</email>

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Assistance</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">16</id>

						<login>administrateur</login>

						<email>jonathan.fear@coupa.com</email>

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>bonjour,,,,,</height>

				 </updated-by>

			</department>

			<requested-by>

				 <id type="integer">7</id>

				 <login>ejohnson</login>

				 <email>upgrade+ej@coupa.com</email>

				 <employee-number />

				 <firstname>Ellis (responsable marketing)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</requested-by>

			<ship-to-address>

				 <id type="integer">16</id>

				 <created-at type="datetime">27/10/2008T13:00:19-07:00</created-at>

				 <updated-at type="datetime">2009-07-11T13:33:25-07:00</updated-at>

				 <name>Siège social</name>

				 <street1>28 Nevada Blvd</street1>

				 <street2 />

				 <city>Laughlin</city>

				 <state>NV</state>

				 <postal-code>89028</postal-code>

				 <attention />

				 <active type="boolean">true</active>

				 <country>

						<id type="integer">223</id>

						<code>États-Unis</code>

						<name>États-Unis</name>

				 </country>

				 <created-by>

						<id type="integer">1</id>

						<login>coupasupport</login>

						<email>robert.monahon+feardemo@coupa.com</email>

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Soutien</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">16</id>

						<login>administrateur</login>

						<email>jonathan.fear@coupa.com</email>

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>bonjour,,,,,</height>

				 </updated-by>

			</ship-to-address>

			<attachments type="array" />

			<requisition-lines type="array">

				 <requisition-line>

						<id type="integer">179</id>

						<created-at type="datetime">27/04/2009T09:27:56-07:00</created-at>

						<updated-at type="datetime">27/04/2009T09:27:57-07:00</updated-at>

						<description>Location d'installations pendant 8 heures</description>

						<line-num type="integer">1</line-num>

						<need-by-date nil="true" />

						<order-line-id nil="true" />

						<quantity type="float">8.0</quantity>

						<source-part-num />

						<status nil="true" />

						<sub-line-num nil="true" />

						<supp-aux-part-num nil="true" />

						<total type="decimal">16400,00</total>

						<source-type>Demande hors catalogue</source-type>

						<line-type>RequisitionQuantityLine</line-type>

						<unit-price type="decimal">2050,00</unit-price>

						<account>

							 <id type="integer">164</id>

							 <created-at type="datetime">2009-05-04T22:06:02-07:00</created-at>

							 <updated-at type="datetime">2009-05-05T23:23:54-07:00</updated-at>

							 <name>Siège social - Marketing, événements</name>

							 <code>HQ-Marketing-Events</code>

							 <active type="boolean">true</active>

							 <segment-1>Siège social</segment-1>

							 <segment-2>Marketing</segment-2>

							 <segment-3>Événements</segment-3>

							 <segment-4 />

							 <segment-5 />

							 <segment-6 />

							 <segment-7 />

							 <segment-8 />

							 <segment-9 />

							 <segment-10 />

							 <segment-11 />

							 <segment-12 />

							 <segment-13 />

							 <segment-14 />

							 <segment-15 />

							 <segment-16 />

							 <segment-17 />

							 <segment-18 />

							 <segment-19 />

							 <segment-20 />

							 <account-type>

									<id type="integer">1</id>

									<created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

									<updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

									<name>Ace Corporate</name>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Soutien</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

									<id type="integer">16</id>

									<login>administrateur</login>

									<email>jonathan.fear@coupa.com</email>

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>bonjour,,,,,</height>

							 </created-by>

							 <updated-by>

									<id type="integer">10</id>

									<login>amanning</login>

									<email>upgrade+am@coupa.com</email>

									<employee-number />

									<firstname>Anna (directrice de l'AP)</firstname>

									<lastname>Manning</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

							 <id type="integer">7</id>

							 <created-at type="datetime">27/10/2008T13:04:00-07:00</created-at>

							 <updated-at type="datetime">2011-04-12T14:08:22-07:00</updated-at>

							 <active type="boolean">faux</active>

							 <name>Marketing-Services</name>

							 <acct />

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</commodity>

						<currency>

							 <id type="integer">1</id>

							 <code>USD</code>

						</currency>

						<supplier>

							 <id type="integer">25</id>

							 <name>Aston' s Hotel</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">27</id>

									<created-at type="datetime">2008-12-09T13:08:11-08:00</created-at>

									<updated-at type="datetime">25/07/2011T16:49:07-07:00</updated-at>

									<email />

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Sanae</name-given>

									<name-family>Kadomoto</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">33</id>

									<created-at type="datetime">2008-12-09T13:08:11-08:00</created-at>

									<updated-at type="datetime">25/07/2011T16:49:07-07:00</updated-at>

									<name>Aston' s Hotel</name>

									<street1>3615 Lower Honoapiilani Road</street1>

									<street2 />

									<city>Lahaina</city>

									<state>HI</state>

									<postal-code>96761</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-address>

						</supplier>

						<uom>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>EA</code>

							 <name>Chacun</name>

							 <allowable-precision type="integer">0</allowable-precision>

							 <active type="boolean">true</active>

						</uom>

						<payment-term>

							 <id type="integer">3</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30</code>

							 <description />

							 <days-for-net-payment type="integer">30</days-for-net-payment>

							 <days-for-discount-payment type="integer">10</days-for-discount-payment>

							 <discount-rate type="float">2.0</discount-rate>

							 <active type="boolean">true</active>

						</payment-term>

						<shipping-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>Standard</code>

						</shipping-term>

						<asset-tags type="array" />

						<attachments type="array" />

						<created-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

				 <requisition-line>

						<id type="integer">180</id>

						<created-at type="datetime">27/04/2009T09:27:56-07:00</created-at>

						<updated-at type="datetime">27/04/2009T09:27:57-07:00</updated-at>

						<description>Sculpture sur glace</description>

						<line-num type="integer">2</line-num>

						<need-by-date nil="true" />

						<order-line-id nil="true" />

						<source-part-num />

						<status nil="true" />

						<sub-line-num nil="true" />

						<supp-aux-part-num nil="true" />

						<total type="decimal">1500,00</total>

						<source-type>Demande hors catalogue</source-type>

						<line-type>RequisitionAmountLine</line-type>

						<unit-price type="decimal">1500,00</unit-price>

						<account>

							 <id type="integer">164</id>

							 <created-at type="datetime">2009-05-04T22:06:02-07:00</created-at>

							 <updated-at type="datetime">2009-05-05T23:23:54-07:00</updated-at>

							 <name>Siège social - Marketing, événements</name>

							 <code>HQ-Marketing-Events</code>

							 <active type="boolean">true</active>

							 <segment-1>Siège social</segment-1>

							 <segment-2>Marketing</segment-2>

							 <segment-3>Événements</segment-3>

							 <segment-4 />

							 <segment-5 />

							 <segment-6 />

							 <segment-7 />

							 <segment-8 />

							 <segment-9 />

							 <segment-10 />

							 <segment-11 />

							 <segment-12 />

							 <segment-13 />

							 <segment-14 />

							 <segment-15 />

							 <segment-16 />

							 <segment-17 />

							 <segment-18 />

							 <segment-19 />

							 <segment-20 />

							 <account-type>

									<id type="integer">1</id>

									<created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

									<updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

									<name>Ace Corporate</name>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

									<id type="integer">16</id>

									<login>administrateur</login>

									<email>jonathan.fear@coupa.com</email>

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>bonjour,,,,,</height>

							 </created-by>

							 <updated-by>

									<id type="integer">10</id>

									<login>amanning</login>

									<email>upgrade+am@coupa.com</email>

									<employee-number />

									<firstname>Anna (directrice de l'AP)</firstname>

									<lastname>Manning</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

							 <id type="integer">7</id>

							 <created-at type="datetime">27/10/2008T13:04:00-07:00</created-at>

							 <updated-at type="datetime">2011-04-12T14:08:22-07:00</updated-at>

							 <active type="boolean">faux</active>

							 <name>Marketing-Services</name>

							 <acct />

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Soutien</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</commodity>

						<currency>

							 <id type="integer">1</id>

							 <code>USD</code>

						</currency>

						<supplier>

							 <id type="integer">25</id>

							 <name>Aston' s Hotel</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">27</id>

									<created-at type="datetime">2008-12-09T13:08:11-08:00</created-at>

									<updated-at type="datetime">25/07/2011T16:49:07-07:00</updated-at>

									<email />

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Sanae</name-given>

									<name-family>Kadomoto</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">33</id>

									<created-at type="datetime">2008-12-09T13:08:11-08:00</created-at>

									<updated-at type="datetime">25/07/2011T16:49:07-07:00</updated-at>

									<name>Aston' s Hotel</name>

									<street1>3615 Lower Honoapiilani Road</street1>

									<street2 />

									<city>Lahaina</city>

									<state>HI</state>

									<postal-code>96761</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Soutien</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-address>

						</supplier>

						<payment-term>

							 <id type="integer">3</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30</code>

							 <description />

							 <days-for-net-payment type="integer">30</days-for-net-payment>

							 <days-for-discount-payment type="integer">10</days-for-discount-payment>

							 <discount-rate type="float">2.0</discount-rate>

							 <active type="boolean">true</active>

						</payment-term>

						<shipping-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>Standard</code>

						</shipping-term>

						<asset-tags type="array" />

						<attachments type="array" />

						<created-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

				 <requisition-line>

						<id type="integer">181</id>

						<created-at type="datetime">27/04/2009T09:27:56-07:00</created-at>

						<updated-at type="datetime">27/04/2009T09:27:58-07:00</updated-at>

						<description>Nourriture de Cheung</description>

						<line-num type="integer">3</line-num>

						<need-by-date nil="true" />

						<order-line-id nil="true" />

						<source-part-num />

						<status nil="true" />

						<sub-line-num nil="true" />

						<supp-aux-part-num nil="true" />

						<total type="decimal">2675,00</total>

						<source-type>Demande hors catalogue</source-type>

						<line-type>RequisitionAmountLine</line-type>

						<unit-price type="decimal">2675,00</unit-price>

						<account>

							 <id type="integer">164</id>

							 <created-at type="datetime">2009-05-04T22:06:02-07:00</created-at>

							 <updated-at type="datetime">2009-05-05T23:23:54-07:00</updated-at>

							 <name>Siège social - Marketing, événements</name>

							 <code>HQ-Marketing-Events</code>

							 <active type="boolean">true</active>

							 <segment-1>Siège social</segment-1>

							 <segment-2>Marketing</segment-2>

							 <segment-3>Événements</segment-3>

							 <segment-4 />

							 <segment-5 />

							 <segment-6 />

							 <segment-7 />

							 <segment-8 />

							 <segment-9 />

							 <segment-10 />

							 <segment-11 />

							 <segment-12 />

							 <segment-13 />

							 <segment-14 />

							 <segment-15 />

							 <segment-16 />

							 <segment-17 />

							 <segment-18 />

							 <segment-19 />

							 <segment-20 />

							 <account-type>

									<id type="integer">1</id>

									<created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

									<updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

									<name>Ace Corporate</name>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Soutien</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

									<id type="integer">16</id>

									<login>administrateur</login>

									<email>jonathan.fear@coupa.com</email>

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>bonjour,,,,,</height>

							 </created-by>

							 <updated-by>

									<id type="integer">10</id>

									<login>amanning</login>

									<email>upgrade+am@coupa.com</email>

									<employee-number />

									<firstname>Anna (directrice de l'AP)</firstname>

									<lastname>Manning</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

							 <id type="integer">1</id>

							 <created-at type="datetime">27/10/2008T13:03:59-07:00</created-at>

							 <updated-at type="datetime">2011-04-12T14:58:18-07:00</updated-at>

							 <active type="boolean">true</active>

							 <name>Travail</name>

							 <acct>Travail temporaire</acct>

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Soutien</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</commodity>

						<currency>

							 <id type="integer">1</id>

							 <code>USD</code>

						</currency>

						<supplier>

							 <id type="integer">24</id>

							 <name>Restauration à Cheung</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">26</id>

									<created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

									<updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

									<email />

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Conway</name-given>

									<name-family>Cheung</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<phone-work>

										 <id type="integer">67</id>

										 <created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

										 <updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">7</id>

												<login>ejohnson</login>

												<email>upgrade+ej@coupa.com</email>

												<employee-number />

												<firstname>Ellis (responsable marketing)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-work>

									<phone-mobile>

										 <id type="integer">68</id>

										 <created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

										 <updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">7</id>

												<login>ejohnson</login>

												<email>upgrade+ej@coupa.com</email>

												<employee-number />

												<firstname>Ellis (responsable marketing)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-mobile>

									<phone-fax>

										 <id type="integer">69</id>

										 <created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

										 <updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">7</id>

												<login>ejohnson</login>

												<email>upgrade+ej@coupa.com</email>

												<employee-number />

												<firstname>Ellis (responsable marketing)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-fax>

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">32</id>

									<created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

									<updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

									<name>Restauration à Cheung</name>

									<street1>2516 Pacific Coast Hwy</street1>

									<street2 />

									<city>Hermosa Beach</city>

									<state>CA</state>

									<postal-code>90254</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </primary-address>

						</supplier>

						<payment-term>

							 <id type="integer">3</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30</code>

							 <description />

							 <days-for-net-payment type="integer">30</days-for-net-payment>

							 <days-for-discount-payment type="integer">10</days-for-discount-payment>

							 <discount-rate type="float">2.0</discount-rate>

							 <active type="boolean">true</active>

						</payment-term>

						<shipping-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>Standard</code>

						</shipping-term>

						<asset-tags type="array" />

						<attachments type="array" />

						<created-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

			</requisition-lines>

			<approvals type="array">

				 <approval>

						<id type="integer">480</id>

						<created-at nil="true" />

						<updated-at nil="true" />

						<position type="integer">1</position>

						<approval-chain-id nil="true" />

						<status>pending_approval</status>

						<approval-date nil="true" />

						<note nil="true" />

						<type>ManagementHierarchyApproval</type>

						<approvable-type>RequisitionHeader</approvable-type>

						<approvable-id type="integer">97</approvable-id>

						<approver>

							 <id type="integer">6</id>

							 <login>bhostler</login>

							 <email>upgrade+bh@coupa.com</email>

							 <employee-number />

							 <firstname>Blair (VP Marketing)</firstname>

							 <lastname>Hostler</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</approver>

				 </approval>

			</approvals>

			<created-by>

				 <id type="integer">7</id>

				 <login>ejohnson</login>

				 <email>upgrade+ej@coupa.com</email>

				 <employee-number />

				 <firstname>Ellis (responsable marketing)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</created-by>

			<updated-by>

				 <id type="integer">7</id>

				 <login>ejohnson</login>

				 <email>upgrade+ej@coupa.com</email>

				 <employee-number />

				 <firstname>Ellis (responsable marketing)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </requisition-header>

	 <requisition-header>

			<id type="integer">99</id>

			<created-at type="datetime">27/04/2009T09:41:52-07:00</created-at>

			<updated-at type="datetime">2009-05-11T11:39:23-07:00</updated-at>

			<buyer-note nil="true" />

			<justification>Blair - c'est pour le marketing hors site du deuxième trimestre que vous vouliez que je mette en place.	Je l'ai gardé sous la barre des 25 000 afin qu'il corresponde à votre budget.</justification>

			<need-by-date nil="true" />

			<reject-reason-comment nil="true" />

			<status>commandé</status>

			<submitted-at type="datetime">2009-05-11T11:38:58-07:00</submitted-at>

			<exported type="boolean">faux</exported>

			<ship-to-attention>Ellis (responsable marketing) Johnson</ship-to-attention>

			<total type="decimal">22500,00</total>

			<height-passthrough />

			<custom-attach />

			<custom-field-3 />

			<currency>

				 <id type="integer">1</id>

				 <code>USD</code>

			</currency>

			<department>

				 <id type="integer">1</id>

				 <created-at type="datetime">27/10/2008T13:00:48-07:00</created-at>

				 <updated-at type="datetime">2009-05-04T18:20:29-07:00</updated-at>

				 <name>Marketing</name>

				 <active type="boolean">true</active>

				 <created-by>

						<id type="integer">1</id>

						<login>coupasupport</login>

						<email>robert.monahon+feardemo@coupa.com</email>

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Assistance</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">16</id>

						<login>administrateur</login>

						<email>jonathan.fear@coupa.com</email>

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>bonjour,,,,,</height>

				 </updated-by>

			</department>

			<requested-by>

				 <id type="integer">7</id>

				 <login>ejohnson</login>

				 <email>upgrade+ej@coupa.com</email>

				 <employee-number />

				 <firstname>Ellis (responsable marketing)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</requested-by>

			<ship-to-address>

				 <id type="integer">16</id>

				 <created-at type="datetime">27/10/2008T13:00:19-07:00</created-at>

				 <updated-at type="datetime">2009-07-11T13:33:25-07:00</updated-at>

				 <name>Siège social</name>

				 <street1>28 Nevada Blvd</street1>

				 <street2 />

				 <city>Laughlin</city>

				 <state>NV</state>

				 <postal-code>89028</postal-code>

				 <attention />

				 <active type="boolean">true</active>

				 <country>

						<id type="integer">223</id>

						<code>États-Unis</code>

						<name>États-Unis</name>

				 </country>

				 <created-by>

						<id type="integer">1</id>

						<login>coupasupport</login>

						<email>robert.monahon+feardemo@coupa.com</email>

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Assistance</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">16</id>

						<login>administrateur</login>

						<email>jonathan.fear@coupa.com</email>

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>bonjour,,,,,</height>

				 </updated-by>

			</ship-to-address>

			<attachments type="array" />

			<requisition-lines type="array">

				 <requisition-line>

						<id type="integer">219</id>

						<created-at type="datetime">2009-05-10T21:22:32-07:00</created-at>

						<updated-at type="datetime">2009-05-11T11:39:19-07:00</updated-at>

						<description>Location d'installations pour le marketing hors site du deuxième trimestre</description>

						<line-num type="integer">1</line-num>

						<need-by-date type="datetime">2009-05-11T00:00:00-07:00</need-by-date>

						<order-line-id type="integer">127</order-line-id>

						<quantity type="float">8.0</quantity>

						<source-part-num />

						<status nil="true" />

						<sub-line-num nil="true" />

						<supp-aux-part-num nil="true" />

						<total type="decimal">16000,00</total>

						<source-type>Demande hors catalogue</source-type>

						<line-type>RequisitionQuantityLine</line-type>

						<unit-price type="decimal">2000,00</unit-price>

						<account>

							 <id type="integer">182</id>

							 <created-at type="datetime">2009-05-10T21:22:32-07:00</created-at>

							 <updated-at type="datetime">2009-06-29T19:38:09-07:00</updated-at>

							 <name nil="true" />

							 <code>HQ-Marketing-Events</code>

							 <active type="boolean">faux</active>

							 <segment-1>Siège social</segment-1>

							 <segment-2>Marketing</segment-2>

							 <segment-3>Événements</segment-3>

							 <segment-4 nil="true" />

							 <segment-5 nil="true" />

							 <segment-6 nil="true" />

							 <segment-7 nil="true" />

							 <segment-8 nil="true" />

							 <segment-9 nil="true" />

							 <segment-10 nil="true" />

							 <segment-11 nil="true" />

							 <segment-12 nil="true" />

							 <segment-13 nil="true" />

							 <segment-14 nil="true" />

							 <segment-15 nil="true" />

							 <segment-16 nil="true" />

							 <segment-17 nil="true" />

							 <segment-18 nil="true" />

							 <segment-19 nil="true" />

							 <segment-20 nil="true" />

							 <account-type>

									<id type="integer">1</id>

									<created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

									<updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

									<name>Ace Corporate</name>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

									<id type="integer">7</id>

									<login>ejohnson</login>

									<email>upgrade+ej@coupa.com</email>

									<employee-number />

									<firstname>Ellis (responsable marketing)</firstname>

									<lastname>Johnson</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">16</id>

									<login>administrateur</login>

									<email>jonathan.fear@coupa.com</email>

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>bonjour,,,,,</height>

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

							 <id type="integer">5</id>

							 <created-at type="datetime">27/10/2008T13:04:00-07:00</created-at>

							 <updated-at type="datetime">25/08/2011T06:43:41-07:00</updated-at>

							 <active type="boolean">true</active>

							 <name>Installations</name>

							 <acct>98765</acct>

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</commodity>

						<currency>

							 <id type="integer">1</id>

							 <code>USD</code>

						</currency>

						<supplier>

							 <id type="integer">19</id>

							 <name>Metro Gateway Center</name>

							 <number>233434</number>

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">20</id>

									<created-at type="datetime">2009-05-04T18:08:08-07:00</created-at>

									<updated-at type="datetime">2009-05-04T18:08:08-07:00</updated-at>

									<email>regus.berry@metro.com</email>

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Regus</name-given>

									<name-family>Baies</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<phone-work>

										 <id type="integer">47</id>

										 <created-at type="datetime">2009-05-04T18:08:08-07:00</created-at>

										 <updated-at type="datetime">2009-05-04T18:08:08-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code>650</area-code>

										 <number>2321991</number>

										 <extension nil="true" />

										 <created-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-work>

									<phone-mobile>

										 <id type="integer">48</id>

										 <created-at type="datetime">2009-05-04T18:08:08-07:00</created-at>

										 <updated-at type="datetime">2009-05-04T18:08:08-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-mobile>

									<phone-fax>

										 <id type="integer">49</id>

										 <created-at type="datetime">2009-05-04T18:08:08-07:00</created-at>

										 <updated-at type="datetime">2009-05-04T18:08:08-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-fax>

									<created-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">26</id>

									<created-at type="datetime">2009-05-04T18:08:09-07:00</created-at>

									<updated-at type="datetime">2009-05-04T18:08:09-07:00</updated-at>

									<name>Metro Gateway Center</name>

									<street1>239 Blizzard Drive</street1>

									<street2 />

									<city>San Francisco</city>

									<state>CA</state>

									<postal-code>92302</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </primary-address>

						</supplier>

						<uom>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>EA</code>

							 <name>Chacun</name>

							 <allowable-precision type="integer">0</allowable-precision>

							 <active type="boolean">true</active>

						</uom>

						<payment-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>30 jours nets</code>

							 <description />

							 <days-for-net-payment type="integer">30</days-for-net-payment>

							 <days-for-discount-payment nil="true" />

							 <discount-rate nil="true" />

							 <active type="boolean">true</active>

						</payment-term>

						<shipping-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>Standard</code>

						</shipping-term>

						<asset-tags type="array" />

						<attachments type="array" />

						<created-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">6</id>

							 <login>bhostler</login>

							 <email>upgrade+bh@coupa.com</email>

							 <employee-number />

							 <firstname>Blair (VP Marketing)</firstname>

							 <lastname>Hostler</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

				 <requisition-line>

						<id type="integer">222</id>

						<created-at type="datetime">2009-05-10T21:35:45-07:00</created-at>

						<updated-at type="datetime">2009-05-11T11:39:21-07:00</updated-at>

						<description>Services de restauration et de nettoyage pour Q2 Marketing Offiste</description>

						<line-num type="integer">2</line-num>

						<need-by-date type="datetime">2009-05-11T00:00:00-07:00</need-by-date>

						<order-line-id type="integer">128</order-line-id>

						<source-part-num />

						<status nil="true" />

						<sub-line-num nil="true" />

						<supp-aux-part-num nil="true" />

						<total type="decimal">6500,00</total>

						<source-type>Demande hors catalogue</source-type>

						<line-type>RequisitionAmountLine</line-type>

						<unit-price type="decimal">6500,00</unit-price>

						<account>

							 <id type="integer">182</id>

							 <created-at type="datetime">2009-05-10T21:22:32-07:00</created-at>

							 <updated-at type="datetime">2009-06-29T19:38:09-07:00</updated-at>

							 <name nil="true" />

							 <code>HQ-Marketing-Events</code>

							 <active type="boolean">faux</active>

							 <segment-1>Siège social</segment-1>

							 <segment-2>Marketing</segment-2>

							 <segment-3>Événements</segment-3>

							 <segment-4 nil="true" />

							 <segment-5 nil="true" />

							 <segment-6 nil="true" />

							 <segment-7 nil="true" />

							 <segment-8 nil="true" />

							 <segment-9 nil="true" />

							 <segment-10 nil="true" />

							 <segment-11 nil="true" />

							 <segment-12 nil="true" />

							 <segment-13 nil="true" />

							 <segment-14 nil="true" />

							 <segment-15 nil="true" />

							 <segment-16 nil="true" />

							 <segment-17 nil="true" />

							 <segment-18 nil="true" />

							 <segment-19 nil="true" />

							 <segment-20 nil="true" />

							 <account-type>

									<id type="integer">1</id>

									<created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

									<updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

									<name>Ace Corporate</name>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

									<id type="integer">7</id>

									<login>ejohnson</login>

									<email>upgrade+ej@coupa.com</email>

									<employee-number />

									<firstname>Ellis (responsable marketing)</firstname>

									<lastname>Johnson</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">16</id>

									<login>administrateur</login>

									<email>jonathan.fear@coupa.com</email>

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>bonjour,,,,,</height>

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

							 <id type="integer">5</id>

							 <created-at type="datetime">27/10/2008T13:04:00-07:00</created-at>

							 <updated-at type="datetime">25/08/2011T06:43:41-07:00</updated-at>

							 <active type="boolean">true</active>

							 <name>Installations</name>

							 <acct>98765</acct>

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Soutien</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Soutien</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</commodity>

						<currency>

							 <id type="integer">1</id>

							 <code>USD</code>

						</currency>

						<supplier>

							 <id type="integer">24</id>

							 <name>Restauration à Cheung</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">26</id>

									<created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

									<updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

									<email />

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Conway</name-given>

									<name-family>Cheung</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<phone-work>

										 <id type="integer">67</id>

										 <created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

										 <updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">7</id>

												<login>ejohnson</login>

												<email>upgrade+ej@coupa.com</email>

												<employee-number />

												<firstname>Ellis (responsable marketing)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-work>

									<phone-mobile>

										 <id type="integer">68</id>

										 <created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

										 <updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">7</id>

												<login>ejohnson</login>

												<email>upgrade+ej@coupa.com</email>

												<employee-number />

												<firstname>Ellis (responsable marketing)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-mobile>

									<phone-fax>

										 <id type="integer">69</id>

										 <created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

										 <updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code nil="true" />

										 <number />

										 <extension nil="true" />

										 <created-by>

												<id type="integer">7</id>

												<login>ejohnson</login>

												<email>upgrade+ej@coupa.com</email>

												<employee-number />

												<firstname>Ellis (responsable marketing)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-fax>

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">32</id>

									<created-at type="datetime">2008-12-09T12:56:47-08:00</created-at>

									<updated-at type="datetime">13/08/2009T14:30:23-07:00</updated-at>

									<name>Restauration à Cheung</name>

									<street1>2516 Pacific Coast Hwy</street1>

									<street2 />

									<city>Hermosa Beach</city>

									<state>CA</state>

									<postal-code>90254</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">7</id>

										 <login>ejohnson</login>

										 <email>upgrade+ej@coupa.com</email>

										 <employee-number />

										 <firstname>Ellis (responsable marketing)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </primary-address>

						</supplier>

						<payment-term>

							 <id type="integer">3</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30</code>

							 <description />

							 <days-for-net-payment type="integer">30</days-for-net-payment>

							 <days-for-discount-payment type="integer">10</days-for-discount-payment>

							 <discount-rate type="float">2.0</discount-rate>

							 <active type="boolean">true</active>

						</payment-term>

						<shipping-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>Standard</code>

						</shipping-term>

						<asset-tags type="array" />

						<attachments type="array" />

						<created-by>

							 <id type="integer">7</id>

							 <login>ejohnson</login>

							 <email>upgrade+ej@coupa.com</email>

							 <employee-number />

							 <firstname>Ellis (responsable marketing)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">6</id>

							 <login>bhostler</login>

							 <email>upgrade+bh@coupa.com</email>

							 <employee-number />

							 <firstname>Blair (VP Marketing)</firstname>

							 <lastname>Hostler</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

			</requisition-lines>

			<approvals type="array">

				 <approval>

						<id type="integer">562</id>

						<created-at nil="true" />

						<updated-at nil="true" />

						<position type="integer">1</position>

						<approval-chain-id nil="true" />

						<status>approuvé</status>

						<approval-date type="datetime">2009-05-11T11:39:19-07:00</approval-date>

						<note nil="true" />

						<type>ManagementHierarchyApproval</type>

						<approvable-type>RequisitionHeader</approvable-type>

						<approvable-id type="integer">99</approvable-id>

						<approver>

							 <id type="integer">6</id>

							 <login>bhostler</login>

							 <email>upgrade+bh@coupa.com</email>

							 <employee-number />

							 <firstname>Blair (VP Marketing)</firstname>

							 <lastname>Hostler</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</approver>

				 </approval>

			</approvals>

			<created-by>

				 <id type="integer">7</id>

				 <login>ejohnson</login>

				 <email>upgrade+ej@coupa.com</email>

				 <employee-number />

				 <firstname>Ellis (responsable marketing)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</created-by>

			<updated-by>

				 <id type="integer">6</id>

				 <login>bhostler</login>

				 <email>upgrade+bh@coupa.com</email>

				 <employee-number />

				 <firstname>Blair (VP Marketing)</firstname>

				 <lastname>Hostler</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </requisition-header>

</requisition-headers>

Exemple de requête de demandes - Requête de demandes avec statut de commande, créée dans une plage de dates

Dans cet exemple, nous recherchons des demandes ayant le statut Commandé créées entre deux dates.

Nous avons deux méthodes pour interroger cet enregistrement. Nous pouvons utiliser :

  • HTTP GET https ://<instance>.coupahost.com/api/requisitions?status=<status>&created-at[gt]=<date>&created-at[lt]=<date>
    Dans ce cas, https ://<instance>.coupahost.com/api/requisitions?status=ordered&created-at[gt]=2010-01-01&created-at[lt]=2010-02-01 
<?xml version="1.0" encoding="UTF-8"?>

<requisition-headers type="array">

	 <requisition-header>

			<id type="integer">187</id>

			<created-at type="datetime">2010-01-06T13:26:54-08:00</created-at>

			<updated-at type="datetime">2010-02-09T10:26:39-08:00</updated-at>

			<buyer-note nil="true" />

			<justification />

			<need-by-date nil="true" />

			<reject-reason-comment nil="true" />

			<status>commandé</status>

			<submitted-at type="datetime">2010-02-09T10:26:14-08:00</submitted-at>

			<exported type="boolean">faux</exported>

			<ship-to-attention>Blair (VP Marketing) Hostler</ship-to-attention>

			<total type="decimal">750,00</total>

			<height-passthrough />

			<custom-attach />

			<custom-field-3 />

			<currency>

				 <id type="integer">1</id>

				 <code>USD</code>

			</currency>

			<department>

				 <id type="integer">1</id>

				 <created-at type="datetime">27/10/2008T13:00:48-07:00</created-at>

				 <updated-at type="datetime">2009-05-04T18:20:29-07:00</updated-at>

				 <name>Marketing</name>

				 <active type="boolean">true</active>

				 <created-by>

						<id type="integer">1</id>

						<login>coupasupport</login>

						<email>robert.monahon+feardemo@coupa.com</email>

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Soutien</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">16</id>

						<login>administrateur</login>

						<email>jonathan.fear@coupa.com</email>

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>bonjour,,,,,</height>

				 </updated-by>

			</department>

			<requested-by>

				 <id type="integer">6</id>

				 <login>bhostler</login>

				 <email>upgrade+bh@coupa.com</email>

				 <employee-number />

				 <firstname>Blair (VP Marketing)</firstname>

				 <lastname>Hostler</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</requested-by>

			<ship-to-address>

				 <id type="integer">16</id>

				 <created-at type="datetime">27/10/2008T13:00:19-07:00</created-at>

				 <updated-at type="datetime">2009-07-11T13:33:25-07:00</updated-at>

				 <name>Siège social</name>

				 <street1>28 Nevada Blvd</street1>

				 <street2 />

				 <city>Laughlin</city>

				 <state>NV</state>

				 <postal-code>89028</postal-code>

				 <attention />

				 <active type="boolean">true</active>

				 <country>

						<id type="integer">223</id>

						<code>États-Unis</code>

						<name>États-Unis</name>

				 </country>

				 <created-by>

						<id type="integer">1</id>

						<login>coupasupport</login>

						<email>robert.monahon+feardemo@coupa.com</email>

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Assistance</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">16</id>

						<login>administrateur</login>

						<email>jonathan.fear@coupa.com</email>

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>bonjour,,,,,</height>

				 </updated-by>

			</ship-to-address>

			<attachments type="array" />

			<requisition-lines type="array">

				 <requisition-line>

						<id type="integer">588</id>

						<created-at type="datetime">2010-02-09T10:25:56-08:00</created-at>

						<updated-at type="datetime">2010-02-09T10:26:37-08:00</updated-at>

						<description>Annonces</description>

						<line-num type="integer">1</line-num>

						<need-by-date nil="true" />

						<order-line-id type="integer">340</order-line-id>

						<quantity type="float">1,0</quantity>

						<source-part-num nil="true" />

						<status>brouillon</status>

						<sub-line-num nil="true" />

						<supp-aux-part-num nil="true" />

						<total type="decimal">750,00</total>

						<source-type>Formulaire Web</source-type>

						<line-type>RequisitionQuantityLine</line-type>

						<unit-price type="decimal">750,00</unit-price>

						<account>

							 <id type="integer">14</id>

							 <created-at type="datetime">27/10/2008T13:20:36-07:00</created-at>

							 <updated-at type="datetime">2011-09-22T16:25:23-07:00</updated-at>

							 <name>San Francisco - Marketing, Actifs</name>

							 <code>SF-Marketing-Assets</code>

							 <active type="boolean">true</active>

							 <segment-1>SF</segment-1>

							 <segment-2>Marketing</segment-2>

							 <segment-3>Actifs</segment-3>

							 <segment-4 />

							 <segment-5 />

							 <segment-6 />

							 <segment-7 />

							 <segment-8 />

							 <segment-9 />

							 <segment-10 />

							 <segment-11 />

							 <segment-12 />

							 <segment-13 />

							 <segment-14 />

							 <segment-15 />

							 <segment-16 />

							 <segment-17 />

							 <segment-18 />

							 <segment-19 />

							 <segment-20 />

							 <account-type>

									<id type="integer">1</id>

									<created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

									<updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

									<name>Ace Corporate</name>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Soutien</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">16</id>

										 <login>administrateur</login>

										 <email>jonathan.fear@coupa.com</email>

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>bonjour,,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">17</id>

									<login>coupa_metrics_gatherer</login>

									<email>do_not_reply_metrics@coupa.com</email>

									<employee-number nil="true" />

									<firstname>Coupa</firstname>

									<lastname>Indicateurs</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<currency>

							 <id type="integer">1</id>

							 <code>USD</code>

						</currency>

						<form-response type="array">

							 <prompt-response>

									<responses type="array">

										 <response>Publicité</response>

									</responses>

									<prompt>Type de demande de marketing</prompt>

							 </prompt-response>

							 <prompt-response>

									<responses type="array">

										 <response>Annonce dans les journaux locaux</response>

									</responses>

									<prompt>Description</prompt>

							 </prompt-response>

						</form-response>

						<supplier>

							 <id type="integer">15</id>

							 <name>Services de marketing Omniture</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">16</id>

									<created-at type="datetime">27/10/2008T14:04:45-07:00</created-at>

									<updated-at type="datetime">27/10/2008T14:04:45-07:00</updated-at>

									<email>upgrade@coupa.com</email>

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Brad</name-given>

									<name-family>Franklin</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<phone-work>

										 <id type="integer">16</id>

										 <created-at type="datetime">27/10/2008T14:04:45-07:00</created-at>

										 <updated-at type="datetime">2009-08-12T17:01:02-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code>650</area-code>

										 <number>5856306</number>

										 <extension nil="true" />

										 <created-by>

												<id type="integer">1</id>

												<login>coupasupport</login>

												<email>robert.monahon+feardemo@coupa.com</email>

												<employee-number />

												<firstname>Coupa</firstname>

												<lastname>Soutien</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-work>

									<phone-mobile>

										 <id type="integer">17</id>

										 <created-at type="datetime">27/10/2008T14:04:45-07:00</created-at>

										 <updated-at type="datetime">2009-08-12T17:01:02-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code>650</area-code>

										 <number>5856306</number>

										 <extension nil="true" />

										 <created-by>

												<id type="integer">1</id>

												<login>coupasupport</login>

												<email>robert.monahon+feardemo@coupa.com</email>

												<employee-number />

												<firstname>Coupa</firstname>

												<lastname>Soutien</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-mobile>

									<phone-fax>

										 <id type="integer">18</id>

										 <created-at type="datetime">27/10/2008T14:04:45-07:00</created-at>

										 <updated-at type="datetime">2009-08-12T17:01:02-07:00</updated-at>

										 <country-code>1</country-code>

										 <area-code>650</area-code>

										 <number>5856306</number>

										 <extension nil="true" />

										 <created-by>

												<id type="integer">1</id>

												<login>coupasupport</login>

												<email>robert.monahon+feardemo@coupa.com</email>

												<employee-number />

												<firstname>Coupa</firstname>

												<lastname>Soutien</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

												<id type="integer">16</id>

												<login>administrateur</login>

												<email>jonathan.fear@coupa.com</email>

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>bonjour,,,,,</height>

										 </updated-by>

									</phone-fax>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Soutien</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">19</id>

									<created-at type="datetime">27/10/2008T14:04:45-07:00</created-at>

									<updated-at type="datetime">27/10/2008T14:04:45-07:00</updated-at>

									<name>Services de marketing Omniture</name>

									<street1>2200 Old Germantown Road</street1>

									<street2 />

									<city>Redwood City</city>

									<state>CA</state>

									<postal-code>94402</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Soutien</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-address>

						</supplier>

						<uom>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>EA</code>

							 <name>Chacun</name>

							 <allowable-precision type="integer">0</allowable-precision>

							 <active type="boolean">true</active>

						</uom>

						<payment-term>

							 <id type="integer">3</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30</code>

							 <description />

							 <days-for-net-payment type="integer">30</days-for-net-payment>

							 <days-for-discount-payment type="integer">10</days-for-discount-payment>

							 <discount-rate type="float">2.0</discount-rate>

							 <active type="boolean">true</active>

						</payment-term>

						<shipping-term>

							 <id type="integer">1</id>

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>Standard</code>

						</shipping-term>

						<asset-tags type="array" />

						<attachments type="array" />

						<created-by>

							 <id type="integer">6</id>

							 <login>bhostler</login>

							 <email>upgrade+bh@coupa.com</email>

							 <employee-number />

							 <firstname>Blair (VP Marketing)</firstname>

							 <lastname>Hostler</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">2</id>

							 <login>mjordan</login>

							 <email>upgrade+mj@coupa.com</email>

							 <employee-number />

							 <firstname>Meg (PDG)</firstname>

							 <lastname>Jordanie</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

			</requisition-lines>

			<approvals type="array">

				 <approval>

						<id type="integer">1704</id>

						<created-at nil="true" />

						<updated-at nil="true" />

						<position type="integer">1</position>

						<approval-chain-id nil="true" />

						<status>approuvé</status>

						<approval-date type="datetime">2010-02-09T10:26:37-08:00</approval-date>

						<note nil="true" />

						<type>ManagementHierarchyApproval</type>

						<approvable-type>RequisitionHeader</approvable-type>

						<approvable-id type="integer">187</approvable-id>

						<approver>

							 <id type="integer">2</id>

							 <login>mjordan</login>

							 <email>upgrade+mj@coupa.com</email>

							 <employee-number />

							 <firstname>Meg (PDG)</firstname>

							 <lastname>Jordanie</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</approver>

				 </approval>

			</approvals>

			<created-by>

				 <id type="integer">6</id>

				 <login>bhostler</login>

				 <email>upgrade+bh@coupa.com</email>

				 <employee-number />

				 <firstname>Blair (VP Marketing)</firstname>

				 <lastname>Hostler</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</created-by>

			<updated-by>

				 <id type="integer">2</id>

				 <login>mjordan</login>

				 <email>upgrade+mj@coupa.com</email>

				 <employee-number />

				 <firstname>Meg (PDG)</firstname>

				 <lastname>Jordanie</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </requisition-header>

</requisition-headers>

Exemple de requête de demande - Requête spécifique à la demande

Dans cet exemple, nous recherchons la demande n °235. Il s'agit du numéro Coupa généré automatiquement pour cette demande et sert également d'identifiant Coupa pour cet enregistrement.

Nous avons deux méthodes pour interroger cet enregistrement. Nous pouvons utiliser :

  • Format 1 : https ://<instance>.coupahost.com/api/requisitions/<id>
    Dans ce cas, https ://<instance>.coupahost.com/api/requisitions/235
    Le résultat est indiqué ci-dessous.
  • Format 2 : https ://<instance>.coupahost.com/api/requisitions?id=<id>
    Dans ce cas, https ://<instance>.coupahost.com/api/requisitions?id=235
    Il existe une légère différence de sortie avec ce format.  L'<requisition-header> étiquette ci-dessous ne sera pas l'élément racine.  Au lieu de cela, il se trouvera à l'intérieur d'un <requisition-headers type="array"> 
<?xml version="1.0" encoding="UTF-8"?>

<requisition-header>

	 <id type="integer">235</id>

	 <created-at type="datetime">2010-02-06T19:03:50-08:00</created-at>

	 <updated-at type="datetime">2010-02-06T19:07:50-08:00</updated-at>

	 <buyer-note nil="true" />

	 <justification />

	 <need-by-date nil="true" />

	 <reject-reason-comment nil="true" />

	 <status>commandé</status>

	 <submitted-at type="datetime">2010-02-06T19:05:25-08:00</submitted-at>

	 <exported type="boolean">faux</exported>

	 <ship-to-attention>Ellis (responsable marketing) Johnson</ship-to-attention>

	 <total type="decimal">22,56</total>

	 <height-passthrough />

	 <custom-attach />

	 <custom-field-3 />

	 <currency>

			<id type="integer">1</id>

			<code>USD</code>

	 </currency>

	 <department>

			<id type="integer">1</id>

			<created-at type="datetime">27/10/2008T13:00:48-07:00</created-at>

			<updated-at type="datetime">2009-05-04T18:20:29-07:00</updated-at>

			<name>Marketing</name>

			<active type="boolean">true</active>

			<created-by>

				 <id type="integer">1</id>

				 <login>coupasupport</login>

				 <email>robert.monahon+feardemo@coupa.com</email>

				 <employee-number />

				 <firstname>Coupa</firstname>

				 <lastname>Assistance</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</created-by>

			<updated-by>

				 <id type="integer">16</id>

				 <login>administrateur</login>

				 <email>jonathan.fear@coupa.com</email>

				 <employee-number />

				 <firstname>Kyle</firstname>

				 <lastname>Eisner</lastname>

				 <salesforce-id nil="true" />

				 <height>bonjour,,,,,</height>

			</updated-by>

	 </department>

	 <requested-by>

			<id type="integer">7</id>

			<login>ejohnson</login>

			<email>upgrade+ej@coupa.com</email>

			<employee-number />

			<firstname>Ellis (responsable marketing)</firstname>

			<lastname>Johnson</lastname>

			<salesforce-id nil="true" />

			<height />

	 </requested-by>

	 <ship-to-address>

			<id type="integer">14</id>

			<created-at type="datetime">27/10/2008T12:58:55-07:00</created-at>

			<updated-at type="datetime">2010-03-23T21:03:22-07:00</updated-at>

			<name>Bureau de San Francisco</name>

			<street1>150 rue principale</street1>

			<street2 />

			<city>San Francisco</city>

			<state>CA</state>

			<postal-code>94450</postal-code>

			<attention />

			<active type="boolean">true</active>

			<country>

				 <id type="integer">223</id>

				 <code>États-Unis</code>

				 <name>États-Unis</name>

			</country>

			<created-by>

				 <id type="integer">1</id>

				 <login>coupasupport</login>

				 <email>robert.monahon+feardemo@coupa.com</email>

				 <employee-number />

				 <firstname>Coupa</firstname>

				 <lastname>Soutien</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</created-by>

			<updated-by>

				 <id type="integer">1</id>

				 <login>coupasupport</login>

				 <email>robert.monahon+feardemo@coupa.com</email>

				 <employee-number />

				 <firstname>Coupa</firstname>

				 <lastname>Soutien</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </ship-to-address>

	 <attachments type="array" />

	 <requisition-lines type="array">

			<requisition-line>

				 <id type="integer">573</id>

				 <created-at type="datetime">2010-02-06T19:05:12-08:00</created-at>

				 <updated-at type="datetime">2010-02-06T19:07:48-08:00</updated-at>

				 <description>Batterie standard, type de batterie alcaline, taille de batterie C, tension 1,5, quantité d'emballage 6</description>

				 <line-num type="integer">1</line-num>

				 <need-by-date nil="true" />

				 <order-line-id type="integer">330</order-line-id>

				 <quantity type="float">2.0</quantity>

				 <source-part-num>3WA31</source-part-num>

				 <status nil="true" />

				 <sub-line-num nil="true" />

				 <supp-aux-part-num>WWG3WA31</supp-aux-part-num>

				 <total type="decimal">22,56</total>

				 <source-type>Punchout</source-type>

				 <line-type>RequisitionQuantityLine</line-type>

				 <unit-price type="decimal">11,28</unit-price>

				 <account>

						<id type="integer">50</id>

						<created-at type="datetime">2009-05-04T17:45:26-07:00</created-at>

						<updated-at type="datetime">2009-05-05T23:23:31-07:00</updated-at>

						<name>San Francisco - Marketing, services marketing</name>

						<code>Services SF-Marketing-Marketing</code>

						<active type="boolean">true</active>

						<segment-1>SF</segment-1>

						<segment-2>Marketing</segment-2>

						<segment-3>Services de marketing</segment-3>

						<segment-4 />

						<segment-5 />

						<segment-6 />

						<segment-7 />

						<segment-8 />

						<segment-9 />

						<segment-10 />

						<segment-11 />

						<segment-12 />

						<segment-13 />

						<segment-14 />

						<segment-15 />

						<segment-16 />

						<segment-17 />

						<segment-18 />

						<segment-19 />

						<segment-20 />

						<account-type>

							 <id type="integer">1</id>

							 <created-at type="datetime">27/10/2008T13:10:01-07:00</created-at>

							 <updated-at type="datetime">2011-09-01T11:57:27-07:00</updated-at>

							 <name>Ace Corporate</name>

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">16</id>

									<login>administrateur</login>

									<email>jonathan.fear@coupa.com</email>

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>bonjour,,,,,</height>

							 </updated-by>

						</account-type>

						<created-by>

							 <id type="integer">16</id>

							 <login>administrateur</login>

							 <email>jonathan.fear@coupa.com</email>

							 <employee-number />

							 <firstname>Kyle</firstname>

							 <lastname>Eisner</lastname>

							 <salesforce-id nil="true" />

							 <height>bonjour,,,,,</height>

						</created-by>

						<updated-by>

							 <id type="integer">10</id>

							 <login>amanning</login>

							 <email>upgrade+am@coupa.com</email>

							 <employee-number />

							 <firstname>Anna (directrice de l'AP)</firstname>

							 <lastname>Manning</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </account>

				 <account-allocations type="array" />

				 <contract>

						<id type="integer">7</id>

						<created-at type="datetime">2009-04-16T19:09:26-07:00</created-at>

						<updated-at type="datetime">2010-02-17T14:56:47-08:00</updated-at>

						<name>Grainger</name>

						<number>5</number>

						<version nil="true" />

						<start-date type="datetime">2009-04-16T00:00:00-07:00</start-date>

						<end-date type="datetime">2010-04-16T00:00:00-07:00</end-date>

						<status>inactif</status>

						<minimum-value type="decimal">0,00</minimum-value>

						<maximum-value type="decimal">0,00</maximum-value>

						<terms nil="true" />

						<preferred nil="true" />

						<savings-pct type="decimal">8.0</savings-pct>

						<min-commit type="decimal">0,00</min-commit>

						<max-commit type="decimal">0,00</max-commit>

						<supplier-invoiceable type="boolean">faux</supplier-invoiceable>

						<is-default type="boolean">faux</is-default>

						<supplier>

							 <id type="integer">9</id>

							 <name>Grainger</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

									<id type="integer">9</id>

									<created-at type="datetime">27/10/2008T12:56:40-07:00</created-at>

									<updated-at type="datetime">27/10/2008T12:56:40-07:00</updated-at>

									<email>upgrade@coupa.com</email>

									<name-prefix nil="true" />

									<name-suffix nil="true" />

									<name-additional nil="true" />

									<name-given>Ben</name-given>

									<name-family>Miller</name-family>

									<name-fullname nil="true" />

									<notes nil="true" />

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-contact>

							 <primary-address>

									<id type="integer">9</id>

									<created-at type="datetime">27/10/2008T12:56:40-07:00</created-at>

									<updated-at type="datetime">27/10/2008T12:56:40-07:00</updated-at>

									<name nil="true" />

									<street1>1 Grainger Road</street1>

									<street2 nil="true" />

									<city>Newark</city>

									<state>NJ</state>

									<postal-code>92321</postal-code>

									<attention nil="true" />

									<active type="boolean">true</active>

									<country>

										 <id type="integer">223</id>

										 <code>États-Unis</code>

										 <name>États-Unis</name>

									</country>

									<created-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-address>

						</supplier>

						<content-groups type="array">

							 <content-group>

									<id type="integer">1</id>

									<created-at type="datetime">2006-08-27T19:40:04-07:00</created-at>

									<updated-at type="datetime">27/10/2008T13:00:19-07:00</updated-at>

									<name>Mondial</name>

									<description>Groupe d'affaires par défaut auquel tous les utilisateurs ont accès</description>

									<updated-by>

										 <id type="integer">1</id>

										 <login>coupasupport</login>

										 <email>robert.monahon+feardemo@coupa.com</email>

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Assistance</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </content-group>

						</content-groups>

						<created-by>

							 <id type="integer">1</id>

							 <login>coupasupport</login>

							 <email>robert.monahon+feardemo@coupa.com</email>

							 <employee-number />

							 <firstname>Coupa</firstname>

							 <lastname>Assistance</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

							 <id type="integer">16</id>

							 <login>administrateur</login>

							 <email>jonathan.fear@coupa.com</email>

							 <employee-number />

							 <firstname>Kyle</firstname>

							 <lastname>Eisner</lastname>

							 <salesforce-id nil="true" />

							 <height>bonjour,,,,,</height>

						</updated-by>

				 </contract>

				 <currency>

						<id type="integer">1</id>

						<code>USD</code>

				 </currency>

				 <supplier>

						<id type="integer">9</id>

						<name>Grainger</name>

						<number nil="true" />

						<supplier-diversity />

						<primary-contact>

							 <id type="integer">9</id>

							 <created-at type="datetime">27/10/2008T12:56:40-07:00</created-at>

							 <updated-at type="datetime">27/10/2008T12:56:40-07:00</updated-at>

							 <email>upgrade@coupa.com</email>

							 <name-prefix nil="true" />

							 <name-suffix nil="true" />

							 <name-additional nil="true" />

							 <name-given>Ben</name-given>

							 <name-family>Miller</name-family>

							 <name-fullname nil="true" />

							 <notes nil="true" />

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Soutien</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</primary-contact>

						<primary-address>

							 <id type="integer">9</id>

							 <created-at type="datetime">27/10/2008T12:56:40-07:00</created-at>

							 <updated-at type="datetime">27/10/2008T12:56:40-07:00</updated-at>

							 <name nil="true" />

							 <street1>1 Grainger Road</street1>

							 <street2 nil="true" />

							 <city>Newark</city>

							 <state>NJ</state>

							 <postal-code>92321</postal-code>

							 <attention nil="true" />

							 <active type="boolean">true</active>

							 <country>

									<id type="integer">223</id>

									<code>États-Unis</code>

									<name>États-Unis</name>

							 </country>

							 <created-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Soutien</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

									<id type="integer">1</id>

									<login>coupasupport</login>

									<email>robert.monahon+feardemo@coupa.com</email>

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Assistance</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</primary-address>

				 </supplier>

				 <uom>

						<id type="integer">1</id>

						<created-at nil="true" />

						<updated-at nil="true" />

						<code>EA</code>

						<name>Chacun</name>

						<allowable-precision type="integer">0</allowable-precision>

						<active type="boolean">true</active>

				 </uom>

				 <payment-term>

						<id type="integer">1</id>

						<created-at nil="true" />

						<updated-at nil="true" />

						<code>30 jours nets</code>

						<description />

						<days-for-net-payment type="integer">30</days-for-net-payment>

						<days-for-discount-payment nil="true" />

						<discount-rate nil="true" />

						<active type="boolean">true</active>

				 </payment-term>

				 <shipping-term>

						<id type="integer">1</id>

						<created-at nil="true" />

						<updated-at nil="true" />

						<code>Standard</code>

				 </shipping-term>

				 <asset-tags type="array" />

				 <attachments type="array" />

				 <created-by>

						<id type="integer">7</id>

						<login>ejohnson</login>

						<email>upgrade+ej@coupa.com</email>

						<employee-number />

						<firstname>Ellis (responsable marketing)</firstname>

						<lastname>Johnson</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

						<id type="integer">6</id>

						<login>bhostler</login>

						<email>upgrade+bh@coupa.com</email>

						<employee-number />

						<firstname>Blair (VP Marketing)</firstname>

						<lastname>Hostler</lastname>

						<salesforce-id nil="true" />

						<height />

				 </updated-by>

			</requisition-line>

	 </requisition-lines>

	 <approvals type="array">

			<approval>

				 <id type="integer">1672</id>

				 <created-at nil="true" />

				 <updated-at nil="true" />

				 <position type="integer">1</position>

				 <approval-chain-id nil="true" />

				 <status>approuvé</status>

				 <approval-date type="datetime">2010-02-06T19:07:48-08:00</approval-date>

				 <note nil="true" />

				 <type>ManagementHierarchyApproval</type>

				 <approvable-type>RequisitionHeader</approvable-type>

				 <approvable-id type="integer">235</approvable-id>

				 <approver>

						<id type="integer">6</id>

						<login>bhostler</login>

						<email>upgrade+bh@coupa.com</email>

						<employee-number />

						<firstname>Blair (VP Marketing)</firstname>

						<lastname>Hostler</lastname>

						<salesforce-id nil="true" />

						<height />

				 </approver>

			</approval>

	 </approvals>

	 <created-by>

			<id type="integer">7</id>

			<login>ejohnson</login>

			<email>upgrade+ej@coupa.com</email>

			<employee-number />

			<firstname>Ellis (responsable marketing)</firstname>

			<lastname>Johnson</lastname>

			<salesforce-id nil="true" />

			<height />

	 </created-by>

	 <updated-by>

			<id type="integer">6</id>

			<login>bhostler</login>

			<email>upgrade+bh@coupa.com</email>

			<employee-number />

			<firstname>Blair (VP Marketing)</firstname>

			<lastname>Hostler</lastname>

			<salesforce-id nil="true" />

			<height />

	 </updated-by>

</requisition-header>

Créer une demande - Exemple de ligne basée sur le montant

Dans cet exemple, nous créons un brouillon de demande pour l'utilisateur « kyle ». Nous n'utilisons aucun ID système Coupa pour aucun des objets de référence. La ligne de référence est une ligne basée sur le montant.

Nous l'avons posté à l'URL : https ://<instance>.coupahost.com/api/requisitions.  Cela a créé la demande dans un état de brouillon.

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

<requisition-header>

	 <requested-by>

			<login>kyle</login>

	 </requested-by>

	 <department>

			<name>Marketing</name>

	 </department>

	 <pcard />

	 <ship-to-address>

			<name>Siège social</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <description>Services de nettoyage pour le bâtiment A</description>

				 <line-num type="integer">1</line-num>

				 <need-by-date type="datetime">2010-09-23T00:00:00-07:00</need-by-date>

				 <source-part-num />

				 <supp-aux-part-num />

				 <unit-price type="decimal">3000,00</unit-price>

				 <supplier>

						<name>Maintenance Mart</name>

				 </supplier>

				 <account>

						<code>Services de nettoyage</code>

						<account-type>

							 <name>Plan comptable</name>

						</account-type>

				 </account>

				 <currency>

						<code>USD</code>

				 </currency>

				 <payment-term>

						<code>Net30</code>

				 </payment-term>

				 <shipping-term>

						<code>UPS</code>

				 </shipping-term>

				 <commodity>

						<name>Services de consultation</name>

				 </commodity>

			</requisition-line>

	 </requisition-lines>

</requisition-header> 

Exemple de création de demande - Article de catalogue

Dans cet exemple, nous créons un brouillon de demande pour l'utilisateur « kyle ». Nous n'utilisons aucun ID système Coupa pour aucun des objets de référence. La ligne de demande est basée sur un article du catalogue. Vous remarquerez qu'au lieu de passer des éléments tels que l'UDM, le prix, le fournisseur, etc., vous pouvez simplement passer le nom de l'article et le système affichera alors tout par défaut en fonction de l'article, tout comme il le fait via l'interface utilisateur.

Nous l'avons posté à l'URL : https ://<instance>.coupahost.com/api/requisitions. Cela a créé la demande dans un état de brouillon.

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

<requisition-header>

	 <requested-by>

			<login>kyle</login>

	 </requested-by>

	 <department>

			<name>Marketing</name>

	 </department>

	 <pcard />

	 <ship-to-address>

			<name>Siège social</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <item>

						<name>Nettoyant pour vitres</name>

				 </item>

				 <line-num type="integer">1</line-num>

				 <need-by-date type="datetime">2010-09-23T00:00:00-07:00</need-by-date>

				 <account>

						<code>Services de nettoyage</code>

						<account-type>

							 <name>Plan comptable</name>

						</account-type>

				 </account>

			</requisition-line>

	 </requisition-lines>

</requisition-header>

Créer une demande - Exemple de ligne basée sur la quantité

Dans cet exemple, nous créons un brouillon de demande pour l'utilisateur « kyle ». Nous n'utilisons aucun ID système Coupa pour aucun des objets de référence. La ligne de demande est un article de ligne basé sur la quantité.

Nous l'avons posté à l'URL : https ://<instance>.coupahost.com/api/requisitions.  Cela a créé la demande dans un état de brouillon. 

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

<requisition-header>

	 <requested-by>

			<login>kyle</login>

	 </requested-by>

	 <department>

			<name>Marketing</name>

	 </department>

	 <pcard />

	 <ship-to-address>

			<name>Siège social</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <description>Nouvelles ampoules de projecteur</description>

				 <line-num type="integer">1</line-num>

				 <need-by-date type="datetime">2010-07-23T00:00:00-07:00</need-by-date>

				 <source-part-num />

				 <supp-aux-part-num />

				 <unit-price type="decimal">3000,00</unit-price>

				 <quantity>2</quantity>

				 <uom>

						<code>EA</code>

				 </uom>

				 <supplier>

						<name>Maintenance Mart</name>

				 </supplier>

				 <account>

						<code>Services de nettoyage</code>

						<account-type>

							 <name>Plan comptable</name>

						</account-type>

				 </account>

				 <currency>

						<code>USD</code>

				 </currency>

				 <payment-term>

						<code>Net30</code>

				 </payment-term>

				 <shipping-term>

						<code>UPS</code>

				 </shipping-term>

				 <commodity>

						<name>Services de consultation</name>

				 </commodity>

			</requisition-line>

	 </requisition-lines>

</requisition-header>

Exemple de création de demandes - Demande multi-lignes

Dans cet exemple, nous créons et soumettons une demande pour l'utilisateur « kyle ». Nous n'utilisons aucun ID système Coupa pour aucun des objets de référence. La demande comporte trois lignes : ligne de quantité, ligne de montant et ligne de catalogue.

Nous l'avons posté à l'URL : https ://<instance>.coupahost.com/api/requisitions/new/submit_for_approval.  Cela a créé et soumis la demande pour approbation. 

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

<requisition-header>

	 <requested-by>

			<login>kyle</login>

	 </requested-by>

	 <department>

			<name>Marketing</name>

	 </department>

	 <pcard />

	 <ship-to-address>

			<name>Siège social</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <description>Nouvelles ampoules de projecteur</description>

				 <line-num type="integer">1</line-num>

				 <need-by-date type="datetime">2010-07-23T00:00:00-07:00</need-by-date>

				 <source-part-num />

				 <supp-aux-part-num />

				 <unit-price type="decimal">3000,00</unit-price>

				 <quantity>2</quantity>

				 <uom>

						<code>EA</code>

				 </uom>

				 <supplier>

						<name>Maintenance Mart</name>

				 </supplier>

				 <account>

						<code>Services de nettoyage</code>

						<account-type>

							 <name>Plan comptable</name>

						</account-type>

				 </account>

				 <currency>

						<code>USD</code>

				 </currency>

				 <payment-term>

						<code>Net30</code>

				 </payment-term>

				 <shipping-term>

						<code>UPS</code>

				 </shipping-term>

				 <commodity>

						<name>Services de consultation</name>

				 </commodity>

			</requisition-line>

			<requisition-line>

				 <description>Services de nettoyage pour le bâtiment A</description>

				 <line-num type="integer">2</line-num>

				 <need-by-date type="datetime">2010-09-23T00:00:00-07:00</need-by-date>

				 <source-part-num />

				 <supp-aux-part-num />

				 <unit-price type="decimal">3000,00</unit-price>

				 <supplier>

						<name>Maintenance Mart</name>

				 </supplier>

				 <account>

						<code>Services de nettoyage</code>

						<account-type>

							 <name>Plan comptable</name>

						</account-type>

				 </account>

				 <currency>

						<code>USD</code>

				 </currency>

				 <payment-term>

						<code>Net30</code>

				 </payment-term>

				 <shipping-term>

						<code>UPS</code>

				 </shipping-term>

				 <commodity>

						<name>Services de consultation</name>

				 </commodity>

			</requisition-line>

			<requisition-line>

				 <item>

						<name>Nettoyant pour vitres</name>

				 </item>

				 <line-num type="integer">3</line-num>

				 <need-by-date type="datetime">2010-09-23T00:00:00-07:00</need-by-date>

				 <account>

						<code>Services de nettoyage</code>

						<account-type>

							 <name>Plan comptable</name>

						</account-type>

				 </account>

			</requisition-line>

	 </requisition-lines>

</requisition-header>

OBTENTION des demandes (Requête)

 

POSTE de demandes

Aperçu

Ce qui suit décrit comment vous pouvez utiliser l'API Coupa pour créer des demandes.

Notre API de création de demande vous permet de :

1. Créer une demande en mode BROUILLON pour un utilisateur spécifié

2. Créer et soumettre une demande pour approbation au nom de l'utilisateur spécifié.

Vous pouvez désormais PUBLIER de nouvelles demandes sur 2 URL :

  • <instance url>/api/réquisitions - Cela créera une demande à l'état de brouillon, qui devra ensuite être soumise manuellement.
  • <instance url>/api/requisitions/new/submit_for_approval - Cela créera une demande et tentera de la soumettre pour approbation /action de l'acheteur.

Dans les deux cas, une demande doit être valide et soumise pour être enregistrée. Plus précisément, ces éléments sont requis :

  • Au moins une ligne de demande
  • Une description ou un élément pour chaque ligne
  • Une devise pour chaque ligne
  • Une quantité pour les lignes basées sur la quantité
  • Tous les champs personnalisés obligatoires
  • Toutes les validations personnalisées doivent passer

Les demandes réussies renverront HTTP 201 Créé. Le corps de la réponse inclura la demande créée.

Les demandes infructueuses renverront HTTP 400 Bad Request. Le corps de la réponse comprendra des erreurs de validation formatées en XML.

Coupa 14

 

Coupa 13

Téléchargez le fichier Excel Coupa 13 Flat File Integration Mapping, si vous en avez encore besoin.

Objets référencés

Cette API créera uniquement les objets suivants dans le cadre de l'appel :

  • En-têtes de demande
  • Lignes de demande
  • Pièces jointes du texte
  • Pièces jointes de l'URL

Tous les autres objets référencés (UDM, articles, utilisateurs, fournisseurs, comptes, adresses, cartes d'achat, etc.) doivent déjà exister dans le système.

Vous trouverez ci-dessous la liste des objets référencés et la façon dont les méthodes alternatives de recherche de l'objet dans le cadre de l'appel API. Par exemple, lors de la spécification de l'utilisateur demandé, vous pouvez inclure l'identifiant de l'utilisateur, son identifiant de connexion ou son adresse e-mail, et le système les recherchera. Vous n'avez pas besoin d'en inclure plus d'un. Si plusieurs critères de recherche sont utilisés, tous doivent correspondre afin de trouver avec succès un enregistrement. Cliquer ici pour obtenir des instructions, des exemples et des instructions pour effectuer une requête à l'aide de l'API Coupa.

Objet de référence Options de critères de recherche
Demandé par connexion
  adresse e-mail
  ID d'utilisateur Coupa
Département nom
  ID du département de Coupa
Adresse d'expédition nom du pseudo
  ID d'adresse Coupa
Gestion des Fournisseurs nom
  ID fournisseur Coupa
Type de compte (plan comptable) nom
  ID du plan comptable Coupa
Code de compte  
  ID de compte Coupa
Devise code de devises
  ID de devise Coupa
UDM code
  ID UOM Coupa
Délai de paiement code
  ID des modalités de paiement Coupa
Délai d'expédition code
  ID de modalité d'expédition Coupa
Catégorie d ´ achat nom
  ID de produit Coupa

 

Définition du champ
Nom Obligatoire ? Type Valeurs admissibles Description
justification  non texte 2 000 Caractères Il s'agit du champ de justification de la demande qui doit être utilisé pour décrire pourquoi l'achat est effectué.
pièces jointes (texte) non texte  2 000 Caractères Il s'agit de pièces jointes textuelles que vous pouvez communiquer dans une demande.
pièces jointes (url) non texte 500 caractères Ceux-ci fournissent un emplacement d'URL à un que vous souhaitez communiquer sur la demande.
description oui texte 255 Caractères Il s'agit de la description de l'article de ligne, lorsque vous n'utilisez pas d'article de catalogue.
line-num oui nombre entier Entiers uniquement Il s'agit du numéro de ligne pour la ligne de demande que vous passez. Cela doit augmenter de 1 pour chaque ligne de demande soumise.
source-part-num non  texte 255 Caractères Il s'agit du numéro de pièce du fournisseur qui est par défaut un champ facultatif sur la ligne de demande.
prix unitaire oui décimale En fonction de votre précision. Pour une ligne basée sur la quantité, il s'agit du prix unitaire pour chaque unité. Pour une ligne basée sur le montant, il s'agit de la valeur pour le service total.
besoin par date non datetime Format Datetimne  
quantité non  nombre entier En fonction de votre configuration de précision pour votre UDM Ceci n'est utilisé que pour les lignes basées sur la quantité.

 

Remarques
  • Dans une ligne de demande, vous pouvez utiliser une description (forme libre) ou un article (article de catalogue). Si un ID d'article est utilisé, l'article doit exister. Le n'<source-type></source-type>est pas utilisé et ignoré.
  • Les devises, les utilisateurs du par-demandé et les fournisseurs doivent être dans le système avec un statut actif.
  • Article : Si un fournisseur et un prix préférés sont disponibles pour un article, ils seront utilisés à moins que le prix unitaire ne soit spécifié. Si un prix unitaire est spécifié, il annulera le prix par défaut disponible pour l'article. Bien que ce ne soit pas une erreur de spécifier une description et un élément, l'utilisation d'un élément définira la description sur la description de l'élément, en ignorant le champ de description passé.
  • Par défaut : Sauf indication contraire dans le XML, le système respectera les valeurs par défaut pertinentes dans le système. Par exemple, les conditions de paiement et d'expédition par défaut à partir du dossier du fournisseur.
  • Numérotation des lignes : L'API s'attend à ce que le numéro de ligne augmente d'une unité pour chaque nouveau numéro de ligne. Si vous utilisez le même numéro de ligne, le système ignorera toutes les autres lignes avec le même numéro. 

Articles associés


API de violation des dépenses

24 April 2017

Utilisez l'API de violation de frais pour envoyer des violations de frais à votre système tiers.

API de kilométrage de la ligne de dépenses

29 November 2017

API d'allocation des lignes de frais

30 November 2017

API d'allocation de kilométrage de la ligne de dépenses

30 November 2017

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