• Zuletzt bearbeitet am: 12 August 2019

Anforderungs-API-Beispielaufrufe

Beispiel für eine Anforderungsabfrage - Abfrage nach spezifischem Benutzer

In diesem Beispiel suchen wir nach Anforderungen, die vom Benutzer mit einem Login von 'ejohnson' erstellt wurden. Wir könnten den folgenden Anmeldeparameter einfach durch eine E-Mail-Adresse oder eine Mitarbeiternummer ersetzen

  • Http GET https://<instance>.coupahost.com/api/requisitions?requested-by[login]=<login>
    In diesem Fall 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">2009-04-27T09:27:56-07:00</created-at>

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

			<buyer-note nil="true" />

			<justification nil="true" />

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

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

			<status>entwurf</status>

			<submitted-at nil="true" />

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

			<ship-to-attention>Ellis (Marketingleiter) 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">2008-10-27T13: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">wahr</active>

				 <created-by>

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

						<login>coupasupport</login>

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

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Support</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

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

						<login>administrator</login>

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

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>hallo,,,,</height>

				 </updated-by>

			</department>

			<requested-by>

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

				 <login>ejohnson</login>

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

				 <employee-number />

				 <firstname>Ellis (Marketingleiter)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</requested-by>

			<ship-to-address>

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

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

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

				 <name>Zentrale</name>

				 <street1>28 Nevada Blvd</street1>

				 <street2 />

				 <city>Laughlin</city>

				 <state>NV</state>

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

				 <attention />

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

				 <country>

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

						<code>US</code>

						<name>Vereinigte Staaten</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>Support</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

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

						<login>administrator</login>

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

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>hallo,,,,</height>

				 </updated-by>

			</ship-to-address>

			<attachments type="array" />

			<requisition-lines type="array">

				 <requisition-line>

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

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

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

						Vermietung <description>der Einrichtung für 8 Stunden</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>Nicht-Kataloganfrage</source-type>

						<line-type>BanfMengeZeile</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>HQ-Marketing, Events</name>

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

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

							 <segment-1>Zentrale</segment-1>

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

							 <segment-3>Events</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">2008-10-27T13: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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

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

									<login>administrator</login>

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

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>hallo,,,,</height>

							 </created-by>

							 <updated-by>

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

									<login>amanning</login>

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

									<employee-number />

									<firstname>Anna (AP-Direktorin)</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">2008-10-27T13:04:00-07:00</created-at>

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

							 <active type="boolean">false</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>Support</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>Support</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">2011-07-25T16: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 (Marketingleiter)</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>Support</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">2011-07-25T16:49:07-07:00</updated-at>

									<name>Aston's Hotel</name>

									<street1>3615 Untere Honoapiilani Straße</street1>

									<street2 />

									<city>Lahaina</city>

									<state>HI</state>

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

									<attention nil="true" />

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

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</name>

									</country>

									<created-by>

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

										 <login>ejohnson</login>

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

										 <employee-number />

										 <firstname>Ellis (Marketingleiter)</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>Support</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>Jede</name>

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

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

						</uom>

						<payment-term>

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

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30 (30 Tage netto</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">wahr</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 (Marketingleiter)</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 (Marketingleiter)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

				 <requisition-line>

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

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

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

						<description>Eisskulptur</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>Nicht-Kataloganfrage</source-type>

						<line-type>Anforderungsbetragszeile</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>HQ-Marketing, Events</name>

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

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

							 <segment-1>Zentrale</segment-1>

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

							 <segment-3>Events</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">2008-10-27T13: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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

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

									<login>administrator</login>

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

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>hallo,,,,</height>

							 </created-by>

							 <updated-by>

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

									<login>amanning</login>

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

									<employee-number />

									<firstname>Anna (AP-Direktorin)</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">2008-10-27T13:04:00-07:00</created-at>

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

							 <active type="boolean">false</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>Support</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>Support</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">2011-07-25T16: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 (Marketingleiter)</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>Support</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">2011-07-25T16:49:07-07:00</updated-at>

									<name>Aston's Hotel</name>

									<street1>3615 Untere Honoapiilani Straße</street1>

									<street2 />

									<city>Lahaina</city>

									<state>HI</state>

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

									<attention nil="true" />

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

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</name>

									</country>

									<created-by>

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

										 <login>ejohnson</login>

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

										 <employee-number />

										 <firstname>Ellis (Marketingleiter)</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>Support</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 (30 Tage netto</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">wahr</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 (Marketingleiter)</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 (Marketingleiter)</firstname>

							 <lastname>Johnson</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</updated-by>

				 </requisition-line>

				 <requisition-line>

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

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

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

						<description>Lebensmittel von 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>Nicht-Kataloganfrage</source-type>

						<line-type>Anforderungsbetragszeile</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>HQ-Marketing, Events</name>

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

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

							 <segment-1>Zentrale</segment-1>

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

							 <segment-3>Events</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">2008-10-27T13: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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</height>

									</updated-by>

							 </account-type>

							 <created-by>

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

									<login>administrator</login>

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

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>hallo,,,,</height>

							 </created-by>

							 <updated-by>

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

									<login>amanning</login>

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

									<employee-number />

									<firstname>Anna (AP-Direktorin)</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">2008-10-27T13:03:59-07:00</created-at>

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

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

							 <name>Arbeit</name>

							 <acct>Temporäre Arbeit</acct>

							 <created-by>

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

									<login>coupasupport</login>

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

									<employee-number />

									<firstname>Coupa</firstname>

									<lastname>Support</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>Support</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>Cheung Catering</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">2009-08-13T14: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">2009-08-13T14: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 (Marketingleiter)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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">2009-08-13T14: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 (Marketingleiter)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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">2009-08-13T14: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 (Marketingleiter)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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 (Marketingleiter)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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">2009-08-13T14:30:23-07:00</updated-at>

									<name>Cheung Catering</name>

									<street1>2516 Pacific Coast Highway</street1>

									<street2 />

									<city>Hermosa Beach</city>

									<state>CA</state>

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

									<attention nil="true" />

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

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</name>

									</country>

									<created-by>

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

										 <login>ejohnson</login>

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

										 <employee-number />

										 <firstname>Ellis (Marketingleiter)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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 (30 Tage netto</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">wahr</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 (Marketingleiter)</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 (Marketingleiter)</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>ausstehende_Genehmigung</status>

						<approval-date nil="true" />

						<note nil="true" />

						<type>ManagementHierarchieGenehmigung</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 (Marketing VP)</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 (Marketingleiter)</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 (Marketingleiter)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </requisition-header>

	 <requisition-header>

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

			<created-at type="datetime">2009-04-27T09: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 - das ist für die Q2-Marketing-Offsite, die ich einrichten sollte.	Ich habe es unter 25.000 gehalten, damit es in Ihr Budget passt.</justification>

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

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

			<status>bestellt</status>

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

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

			<ship-to-attention>Ellis (Marketingleiter) Johnson</ship-to-attention>

			<total type="decimal">22.500,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">2008-10-27T13: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">wahr</active>

				 <created-by>

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

						<login>coupasupport</login>

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

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Support</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

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

						<login>administrator</login>

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

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>hallo,,,,</height>

				 </updated-by>

			</department>

			<requested-by>

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

				 <login>ejohnson</login>

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

				 <employee-number />

				 <firstname>Ellis (Marketingleiter)</firstname>

				 <lastname>Johnson</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</requested-by>

			<ship-to-address>

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

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

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

				 <name>Zentrale</name>

				 <street1>28 Nevada Blvd</street1>

				 <street2 />

				 <city>Laughlin</city>

				 <state>NV</state>

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

				 <attention />

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

				 <country>

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

						<code>US</code>

						<name>Vereinigte Staaten</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>Support</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

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

						<login>administrator</login>

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

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>hallo,,,,</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>Facility Rental für Q2 Marketing Offsite</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">16.000,00</total>

						<source-type>Nicht-Kataloganforderung</source-type>

						<line-type>BanfMengeZeile</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">false</active>

							 <segment-1>Zentrale</segment-1>

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

							 <segment-3>Events</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">2008-10-27T13: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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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 (Marketingleiter)</firstname>

									<lastname>Johnson</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

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

									<login>administrator</login>

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

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>hallo,,,,</height>

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

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

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

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

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

							 <name>Einrichtungen</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>Support</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>Support</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>U-Bahn-Gateway-Zentrum</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>„handeln“</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>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</height>

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</height>

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</height>

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</height>

										 </updated-by>

									</phone-fax>

									<created-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</height>

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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>U-Bahn-Gateway-Zentrum</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">wahr</active>

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</name>

									</country>

									<created-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</height>

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</height>

									</updated-by>

							 </primary-address>

						</supplier>

						<uom>

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

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>EA</code>

							 <name>Jede</name>

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

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

						</uom>

						<payment-term>

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

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 30 <code>Tage netto</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">wahr</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 (Marketingleiter)</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 (Marketing VP)</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>Catering- und Reinigungsdienste für 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>

						Nicht <source-type>katalogisierte Anfrage</source-type>

						<line-type>Anforderungsbetragszeile</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">false</active>

							 <segment-1>Zentrale</segment-1>

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

							 <segment-3>Events</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">2008-10-27T13: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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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 (Marketingleiter)</firstname>

									<lastname>Johnson</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

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

									<login>administrator</login>

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

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>hallo,,,,</height>

							 </updated-by>

						</account>

						<account-allocations type="array" />

						<commodity>

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

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

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

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

							 <name>Einrichtungen</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>Support</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>Support</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>Cheung Catering</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">2009-08-13T14: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">2009-08-13T14: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 (Marketingleiter)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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">2009-08-13T14: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 (Marketingleiter)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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">2009-08-13T14: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 (Marketingleiter)</firstname>

												<lastname>Johnson</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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 (Marketingleiter)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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">2009-08-13T14:30:23-07:00</updated-at>

									<name>Cheung Catering</name>

									<street1>2516 Pacific Coast Highway</street1>

									<street2 />

									<city>Hermosa Beach</city>

									<state>CA</state>

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

									<attention nil="true" />

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

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</name>

									</country>

									<created-by>

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

										 <login>ejohnson</login>

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

										 <employee-number />

										 <firstname>Ellis (Marketingleiter)</firstname>

										 <lastname>Johnson</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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 (30 Tage netto</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">wahr</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 (Marketingleiter)</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 (Marketing VP)</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>genehmigt</status>

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

						<note nil="true" />

						<type>ManagementHierarchieGenehmigung</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 (Marketing VP)</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 (Marketingleiter)</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 (Marketing VP)</firstname>

				 <lastname>Hostler</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </requisition-header>

</requisition-headers>

Beispiel für eine Abfrage von Anforderungen - Abfrageanforderungen mit dem Status „Bestellt“, die innerhalb eines Datumsbereichs erstellt wurden

In diesem Beispiel suchen wir nach Anforderungen mit dem Status „Bestellt“, die zwischen zwei Daten erstellt wurden.

Wir haben zwei Methoden, um diesen Datensatz abzufragen. Wir können verwenden:

  • Http GET https://<instance>.coupahost.com/api/requisitions?status=<status>&created-at[gt]=<date>&created-at[lt]=<date>
    In diesem Fall 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>bestellt</status>

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

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

			<ship-to-attention>Blair (Marketing VP) 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">2008-10-27T13: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">wahr</active>

				 <created-by>

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

						<login>coupasupport</login>

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

						<employee-number />

						<firstname>Coupa</firstname>

						<lastname>Support</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

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

						<login>administrator</login>

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

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>hallo,,,,</height>

				 </updated-by>

			</department>

			<requested-by>

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

				 <login>bhostler</login>

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

				 <employee-number />

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

				 <lastname>Hostler</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</requested-by>

			<ship-to-address>

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

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

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

				 <name>Zentrale</name>

				 <street1>28 Nevada Blvd</street1>

				 <street2 />

				 <city>Laughlin</city>

				 <state>NV</state>

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

				 <attention />

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

				 <country>

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

						<code>US</code>

						<name>Vereinigte Staaten</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>Support</lastname>

						<salesforce-id nil="true" />

						<height />

				 </created-by>

				 <updated-by>

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

						<login>administrator</login>

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

						<employee-number />

						<firstname>Kyle</firstname>

						<lastname>Eisner</lastname>

						<salesforce-id nil="true" />

						<height>hallo,,,,</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>Anzeigen</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>entwurf</status>

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

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

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

						<source-type>Webformular</source-type>

						<line-type>BanfMengeZeile</line-type>

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

						<account>

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

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

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

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

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

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

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

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

							 <segment-3>Indirekte</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">2008-10-27T13: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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</created-by>

									<updated-by>

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

										 <login>administrator</login>

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

										 <employee-number />

										 <firstname>Kyle</firstname>

										 <lastname>Eisner</lastname>

										 <salesforce-id nil="true" />

										 <height>hallo,,,,</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>Support</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

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

									<login>coupa_metrics_collecter</login>

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

									<employee-number nil="true" />

									<firstname>Coupa</firstname>

									<lastname>Metriken</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>Werbung</response>

									</responses>

									<prompt>Art der Marketinganfrage</prompt>

							 </prompt-response>

							 <prompt-response>

									<responses type="array">

										 <response>Anzeige in Lokalzeitungen</response>

									</responses>

									<prompt>Beschreibung</prompt>

							 </prompt-response>

						</form-response>

						<supplier>

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

							 <name>Omniture-Marketing-Services</name>

							 <number nil="true" />

							 <supplier-diversity />

							 <primary-contact>

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

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

									<updated-at type="datetime">2008-10-27T14: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">2008-10-27T14: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>Support</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</height>

										 </updated-by>

									</phone-work>

									<phone-mobile>

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

										 <created-at type="datetime">2008-10-27T14: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>Support</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</height>

										 </updated-by>

									</phone-mobile>

									<phone-fax>

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

										 <created-at type="datetime">2008-10-27T14: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>Support</lastname>

												<salesforce-id nil="true" />

												<height />

										 </created-by>

										 <updated-by>

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

												<login>administrator</login>

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

												<employee-number />

												<firstname>Kyle</firstname>

												<lastname>Eisner</lastname>

												<salesforce-id nil="true" />

												<height>hallo,,,,</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>Support</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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-contact>

							 <primary-address>

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

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

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

									<name>Omniture-Marketing-Services</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">wahr</active>

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</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>Support</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>Support</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>Jede</name>

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

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

						</uom>

						<payment-term>

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

							 <created-at nil="true" />

							 <updated-at nil="true" />

							 <code>2/10 Net 30 (30 Tage netto</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">wahr</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 (Marketing VP)</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 (CEO)</firstname>

							 <lastname>Jordanien</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>genehmigt</status>

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

						<note nil="true" />

						<type>ManagementHierarchieGenehmigung</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 (CEO)</firstname>

							 <lastname>Jordanien</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 (Marketing VP)</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 (CEO)</firstname>

				 <lastname>Jordanien</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</updated-by>

	 </requisition-header>

</requisition-headers>

Beispiel für eine Anforderungsabfrage - Abfragespezifische Anforderung

In diesem Beispiel suchen wir nach Anforderung Nr.235. Dies ist die Nummer, die Coupa automatisch für diese Anforderung generiert hat, und fungiert auch als Coupa-ID für diesen Datensatz.

Wir haben zwei Methoden, um diesen Datensatz abzufragen. Wir können verwenden:

  • Format 1: https://<instance>.coupahost.com/api/requisitions/<id>
    In diesem Fall https://<instance>.coupahost.com/api/requisitions/235
    Die Ausgabe wird unten angezeigt.
  • Format 2: https://<instance>.coupahost.com/api/requisitions?id=<id>
    In diesem Fall https://.coupahost.com/api/requisitions?id=235<instance> Es
    gibt einen leichten Unterschied in der Ausgabe mit diesem Format.  Das unten gezeigte <requisition-header> Tag ist nicht das Wurzelelement.  Stattdessen befindet es sich in einem <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>bestellt</status>

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

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

	 <ship-to-attention>Ellis (Marketingleiter) 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">2008-10-27T13: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">wahr</active>

			<created-by>

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

				 <login>coupasupport</login>

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

				 <employee-number />

				 <firstname>Coupa</firstname>

				 <lastname>Support</lastname>

				 <salesforce-id nil="true" />

				 <height />

			</created-by>

			<updated-by>

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

				 <login>administrator</login>

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

				 <employee-number />

				 <firstname>Kyle</firstname>

				 <lastname>Eisner</lastname>

				 <salesforce-id nil="true" />

				 <height>hallo,,,,</height>

			</updated-by>

	 </department>

	 <requested-by>

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

			<login>ejohnson</login>

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

			<employee-number />

			<firstname>Ellis (Marketingleiter)</firstname>

			<lastname>Johnson</lastname>

			<salesforce-id nil="true" />

			<height />

	 </requested-by>

	 <ship-to-address>

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

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

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

			<name>San Francisco Büro</name>

			<street1>150 Main Street</street1>

			<street2 />

			<city>San Francisco</city>

			<state>CA</state>

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

			<attention />

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

			<country>

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

				 <code>US</code>

				 <name>Vereinigte Staaten</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>Support</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>Support</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>Standardbatterie, Batterietyp Alkaline, Batteriegröße C, Spannung 1,5, Verpackungsmenge 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>BanfMengeZeile</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, Marketing Services</name>

						<code>SF-Marketing-Marketing-Services</code>

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

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

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

						<segment-3>Marketingsservices</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">2008-10-27T13: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>Support</lastname>

									<salesforce-id nil="true" />

									<height />

							 </created-by>

							 <updated-by>

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

									<login>administrator</login>

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

									<employee-number />

									<firstname>Kyle</firstname>

									<lastname>Eisner</lastname>

									<salesforce-id nil="true" />

									<height>hallo,,,,</height>

							 </updated-by>

						</account-type>

						<created-by>

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

							 <login>administrator</login>

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

							 <employee-number />

							 <firstname>Kyle</firstname>

							 <lastname>Eisner</lastname>

							 <salesforce-id nil="true" />

							 <height>hallo,,,,</height>

						</created-by>

						<updated-by>

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

							 <login>amanning</login>

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

							 <employee-number />

							 <firstname>Anna (AP-Direktorin)</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>inaktiv</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">false</supplier-invoiceable>

						<is-default type="boolean">false</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">2008-10-27T12:56:40-07:00</created-at>

									<updated-at type="datetime">2008-10-27T12: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>Support</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>Support</lastname>

										 <salesforce-id nil="true" />

										 <height />

									</updated-by>

							 </primary-contact>

							 <primary-address>

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

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

									<updated-at type="datetime">2008-10-27T12: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">wahr</active>

									<country>

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

										 <code>US</code>

										 <name>Vereinigte Staaten</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>Support</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>Support</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">2008-10-27T13:00:19-07:00</updated-at>

									<name>Global</name>

									<description>Standard-Geschäftsgruppe, auf die alle Benutzer Zugriff haben</description>

									<updated-by>

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

										 <login>coupasupport</login>

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

										 <employee-number />

										 <firstname>Coupa</firstname>

										 <lastname>Support</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>Support</lastname>

							 <salesforce-id nil="true" />

							 <height />

						</created-by>

						<updated-by>

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

							 <login>administrator</login>

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

							 <employee-number />

							 <firstname>Kyle</firstname>

							 <lastname>Eisner</lastname>

							 <salesforce-id nil="true" />

							 <height>hallo,,,,</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">2008-10-27T12:56:40-07:00</created-at>

							 <updated-at type="datetime">2008-10-27T12: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>Support</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>Support</lastname>

									<salesforce-id nil="true" />

									<height />

							 </updated-by>

						</primary-contact>

						<primary-address>

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

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

							 <updated-at type="datetime">2008-10-27T12: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">wahr</active>

							 <country>

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

									<code>US</code>

									<name>Vereinigte Staaten</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>Support</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>Support</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>Jede</name>

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

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

				 </uom>

				 <payment-term>

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

						<created-at nil="true" />

						<updated-at nil="true" />

						30 <code>Tage netto</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">wahr</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 (Marketingleiter)</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 (Marketing VP)</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>genehmigt</status>

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

				 <note nil="true" />

				 <type>ManagementHierarchieGenehmigung</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 (Marketing VP)</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 (Marketingleiter)</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 (Marketing VP)</firstname>

			<lastname>Hostler</lastname>

			<salesforce-id nil="true" />

			<height />

	 </updated-by>

</requisition-header>

Anforderungserstellung - Beispiel für eine betragsbasierte Position

In diesem Beispiel erstellen wir einen Anforderungsentwurf für den Benutzer 'kyle'. Wir verwenden keine Coupa-System-IDs für die Referenzobjekte. Die Referenzlinie ist eine betragsbasierte Linie.

Wir haben es unter der URL: https://.coupahost.com/api/requisitions<instance> gepostet.  Dadurch wurde die Anforderung in einem Entwurfsstatus erstellt.

<?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>Hauptsitz</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <description>Reinigungsdienste für Gebäude 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>Wartungs-Mart</name>

				 </supplier>

				 <account>

						<code>Reinigungsdienste</code>

						<account-type>

							 <name>Kontenplan</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>Beratungsservices</name>

				 </commodity>

			</requisition-line>

	 </requisition-lines>

</requisition-header> 

Anforderungserstellungsbeispiel - Katalogartikel

In diesem Beispiel erstellen wir einen Anforderungsentwurf für den Benutzer 'kyle'. Wir verwenden keine Coupa-System-IDs für die Referenzobjekte. Die Banfzeile basiert auf einer Katalogposition. Sie werden feststellen, dass Sie, anstatt Dinge wie Maßeinheit, Preis, Lieferant usw. einzugeben, einfach den Artikelnamen eingeben können, und das System wird dann alles basierend auf dem Artikel einstellen, genau wie über die Benutzeroberfläche.

Wir haben es unter der URL: https://.coupahost.com/api/requisitions<instance> gepostet. Dadurch wurde die Anforderung in einem Entwurfsstatus erstellt.

<?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>Hauptsitz</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <item>

						<name>Fensterreiniger</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>Reinigungsservices</code>

						<account-type>

							 <name>Kontenplan</name>

						</account-type>

				 </account>

			</requisition-line>

	 </requisition-lines>

</requisition-header>

Anforderungserstellung - Beispiel für eine mengenbasierte Position

In diesem Beispiel erstellen wir einen Anforderungsentwurf für den Benutzer 'kyle'. Wir verwenden keine Coupa-System-IDs für die Referenzobjekte. Die Anforderungszeile ist eine mengenbasierte Einzelposition.

Wir haben es unter der URL: https://.coupahost.com/api/requisitions<instance> gepostet.  Dadurch wurde die Anforderung in einem Entwurfsstatus erstellt. 

<?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>Hauptsitz</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <description>Neue Projektorlampen</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>Wartungs-Mart</name>

				 </supplier>

				 <account>

						<code>Reinigungsdienste</code>

						<account-type>

							 <name>Kontenplan</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>Beratungsservices</name>

				 </commodity>

			</requisition-line>

	 </requisition-lines>

</requisition-header>

Beispiel für die Erstellung von Anforderungen - Mehrzeilige Anforderung

In diesem Beispiel erstellen und senden wir eine Anforderung für den Benutzer 'kyle'. Wir verwenden keine Coupa-System-IDs für die Referenzobjekte. Die Anforderung besteht aus drei Einzelposten: Mengenposition, Mengenposition und Katalogposition.

Wir haben es unter der URL: https://.coupahost.com/api/requisitions/new/submit_for_approval<instance> gepostet.  Dadurch wurde die Anforderung erstellt und zur Genehmigung eingereicht. 

<?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>Hauptsitz</name>

	 </ship-to-address>

	 <justification />

	 <attachments />

	 <requisition-lines>

			<requisition-line>

				 <description>Neue Projektorlampen</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>Wartungs-Mart</name>

				 </supplier>

				 <account>

						<code>Reinigungsservices</code>

						<account-type>

							 <name>Kontenplan</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>Beratungsservices</name>

				 </commodity>

			</requisition-line>

			<requisition-line>

				 <description>Reinigungsdienste für Gebäude 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>Wartungs-Mart</name>

				 </supplier>

				 <account>

						<code>Reinigungsservices</code>

						<account-type>

							 <name>Kontenplan</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>Beratungsservices</name>

				 </commodity>

			</requisition-line>

			<requisition-line>

				 <item>

						<name>Fensterreiniger</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>Reinigungsservices</code>

						<account-type>

							 <name>Kontenplan</name>

						</account-type>

				 </account>

			</requisition-line>

	 </requisition-lines>

</requisition-header>

Anforderungen ERHALTEN (Abfrage)

 

Anforderungen BUCHEN

Übersicht

Im Folgenden wird beschrieben, wie Sie die Coupa-API zum Erstellen von Anforderungen verwenden können.

Mit unserer Anforderungserstellungs-API können Sie:

1. Eine Anforderung im ENTWURFSMODUS für einen bestimmten Benutzer erstellen

2. Erstellen und übermitteln Sie eine Anforderung zur Genehmigung im Namen des angegebenen Benutzers.

Es gibt 2 URLs, unter denen Sie jetzt neue Anforderungen stellen können:

  • <instance url>/api/requisitions - Dadurch wird eine Anforderung im Entwurfsstatus erstellt, die dann manuell eingereicht werden muss.
  • <instance url>/api/requisitions/new/submit_for_approval - Dadurch wird eine Anforderung erstellt und versucht, sie zur Genehmigung / Käuferaktion einzureichen.

In beiden Fällen muss eine Anforderung gültig und einreichbar sein, um gespeichert zu werden. Im Einzelnen sind diese Elemente erforderlich:

  • Mindestens eine Anforderungszeile
  • Eine Beschreibung oder ein Artikel für jede Position
  • Eine Währung für jede Zeile
  • Eine Menge für mengenbasierte Positionen
  • Alle erforderlichen benutzerdefinierten Felder
  • Alle benutzerdefinierten Validierungen müssen bestanden werden

Erfolgreiche Anfragen geben HTTP 201 Created zurück. Der Text der Antwort enthält die erstellte Anforderung.

Bei nicht erfolgreichen Anfragen wird http 400 Bad Request zurückgegeben. Der Text der Antwort enthält Validierungsfehler, die als XML formatiert sind.

Coupa 14

 

Coupa 13

Laden Sie die Coupa 13 Flat File Integration Mapping Excel-Datei herunter, wenn Sie sie noch benötigen.

Referenzierte Objekte

Diese API erstellt nur die folgenden Objekte im Rahmen des Aufrufs:

  • Anforderungsköpfe
  • Anforderungspositionen
  • Textanhänge
  • URL-Anhänge

Alle anderen referenzierten Objekte (Einheiten, Artikel, Benutzer, Lieferanten, Konten, Adressen, P-Karten usw.) müssen bereits im System vorhanden sein.

Im Folgenden finden Sie eine Liste der referenzierten Objekte und die alternativen Methoden zum Nachschlagen des Objekts im Rahmen des API-Aufrufs. Wenn Sie beispielsweise den angeforderten Benutzer angeben, können Sie die ID des Benutzers, seine Anmeldung oder seine E-Mail-Adresse angeben. Das System sucht dann nach ihm. Sie müssen nicht mehr als eine davon einbeziehen. Wenn mehrere Suchkriterien verwendet werden, müssen alle übereinstimmen, um einen Datensatz erfolgreich zu finden. Klicken Sie hier, um Anweisungen und Beispiele sowie Anweisungen zur Abfrage mit der Coupa-API zu erhalten.

Referenzobjekt Suchkriterien-Optionen
Angefordert von anmelden
  e-Mail-Adresse
  Coupa-Benutzer-ID
Abteilung name
  Coupa-Abteilungs-ID
Lief. an Adresse spitzname
  Coupa-Adress-ID
Lieferant name
  Coupa-Lieferanten-ID
Kontenart (Kontenplan) name
  Coupa Kontenplan-ID
Kontocode  
  Coupa-Konto-ID
Währung währungscode
  Coupa-Währungs-ID
Einheit code
  Coupa-ME-ID
Zahlungsbedingung code
  Coupa Zahlungsbedingungs-ID
Lieferbedingung code
  Coupa Versandbedingungs-ID
Warengruppe name
  Coupa-Waren-ID

 

Feld Definitionen
Name Erforderlich? Typ Zulässige Werte Beschreibung
begründung  nein text 2000 Zeichen Dies ist das Anforderungsbelegfeld, das verwendet wird, um zu beschreiben, warum der Kauf getätigt wird.
anhänge (Text) nein text  2000 Zeichen Hierbei handelt es sich um textbasierte Anhänge, die Sie innerhalb einer Anforderung kommunizieren können.
anhänge (URL) nein text 500 Zeichen Diese geben einen URL-Speicherort an, den Sie auf der Anforderung kommunizieren möchten.
beschreibung ja text 255 Zeichen Dies ist die Einzelpostenbeschreibung, wenn kein Katalogartikel verwendet wird.
line-num ja ganze Zahl Nur ganze Zahlen Dies ist die Zeilennummer für die Anforderungszeile, die Sie übergeben. Dies muss für jede eingereichte Anforderungsposition um 1 erhöht werden.
source-part-num nein  text 255 Zeichen Dies ist die Lieferanten-Teilenummer, die standardmäßig ein optionales Feld in der Anforderungszeile ist.
stückpreis ja dezimalzahl Basierend auf Ihrer Präzision. Bei einer mengenbasierten Zeile ist dies der Einzelpreis für jede Einheit. Für eine betragsbasierte Zeile ist dies der Wert für den Gesamtdienst.
bedarf nach Datum nein datum/Uhrzeit Datetimne-Format  
menge nein  ganze Zahl Basierend auf Ihrem Präzisions-Setup für Ihre UOM Diese Funktion wird nur für mengenbasierte Zeilen verwendet.

 

Notizen
  • In einer Banfzeile können Sie entweder eine Beschreibung (Freiform) oder einen Artikel (Katalogartikel) verwenden. Wenn eine Artikel-ID verwendet wird, muss der Artikel vorhanden sein. Der <source-type></source-type> wird nicht verwendet und ignoriert.
  • Währungen, Benutzer im angeforderten Bereich und Lieferanten müssen sich im System mit dem Status aktiv befinden.
  • Artikel: Wenn ein bevorzugter Lieferant und Preis für einen Artikel verfügbar ist, wird er verwendet, es sei denn, der Stückpreis ist angegeben. Wenn ein Stückpreis angegeben wird, wird der für den Artikel verfügbare Standardpreis überschrieben. Es ist zwar kein Fehler, eine Beschreibung und ein Element anzugeben, aber mit einem Element wird die Beschreibung auf die Artikelbeschreibung gesetzt, wobei das übergebene Beschreibungsfeld ignoriert wird.
  • Voreinstellung: Sofern in der XML nicht anders angegeben, beachtet das System die entsprechenden Standardwerte innerhalb des Systems. Wie z.B. säumige Zahlungs- und Versandbedingungen aus dem Lieferantendatensatz.
  • Positionsnummerierung: Die API erwartet, dass die Zeilennummer für jede neue Zeilennummer um eins erhöht wird. Wenn Sie die gleiche Zeilennummer verwenden, ignoriert das System alle anderen Zeilen mit der gleichen Nummer. 

Vergleichbare Artikel


Die Coupa Core-API

Unsere RESTful-API bietet robusten Zugriff zum Lesen, Bearbeiten oder Integrieren Ihrer Daten mit der Coupa-Plattform.

Erste Schritte mit der API

Allgemeine Informationen zur Verwendung der Coupa-API und wann Sie CSV verwenden sollten.

Übergang zu OAuth 2.0 und OIDC

Coupa veraltet ältere API-Schlüssel und erfordert die Verwendung von OAuth 2.0 / OIDC. Ab R34 werden keine neuen API-Schlüssel ausgegeben und API-Schlüssel werden mit R35 nicht mehr unterstützt.

Bauen Sie auf der Coupa-Plattform auf

Unsere API-basierte offene Integrationsplattform ermöglicht Technologiepartnern und unabhängigen Softwareanbietern (ISVs) die Integration ihrer Produkte in Coupa