カタログアイテムのサンプル呼び出し

サンプルアイテムを作成

この例では、アイテムを作成しています。

URLに投稿しました: https://<instance>.coupahost.com/api/items

<?xml version="1.0" encoding="UTF-8"?>
<item>
	 <active>true</active>
	 <description>Example API Created Item</description>
	 <item-number>ExpAPI1001</item-number>
	 <name>Example API Item 1001</name>
	 <commodity>
			<name>IT</name>
	 </commodity>
	 <uom>
			<code>EA</code>
	 </uom>
	 <reorder-alerts />
</item>

以下は、上記を投稿したときに返された回答です。

 <?xml version="1.0" encoding="UTF-8"?>
<item>
	 <id type="integer">51</id>
	 <active type="boolean">true</active>
	 <created-at type="datetime">2011-04-05T09:01:49-07:00</created-at>
	 <description>Example API Created Item</description>
	 <item-number>ExpAPI1001</item-number>
	 <name>Example API Item 1001</name>
	 <updated-at type="datetime">2011-04-05T09:01:49-07:00</updated-at>
	 <test-text-field type="string" />
	 <commodity>
			<active type="boolean">true</active>
			<created-at type="datetime">2008-10-27T20:04:00Z</created-at>
			<id type="integer">2</id>
			<name>IT</name>
			<updated-at type="datetime">2010-02-25T00:32:35Z</updated-at>
			<created-by>
				 <email>example@coupa.com</email>
				 <employee-number />
				 <firstname>Example</firstname>
				 <id type="integer">101</id>
				 <lastname>User</lastname>
				 <login>example</login>
			</created-by>
			<updated-by>
				 <email>example+ke@coupa.com</email>
				 <employee-number />
				 <firstname>Kyle</firstname>
				 <id type="integer">16</id>
				 <lastname>Eisner</lastname>
				 <login>administrator</login>
			</updated-by>
			<code type="string" />
	 </commodity>
	 <api-user>
			<email>example+supportAPI@coupa.com</email>
			<employee-number nil="true" />
			<firstname>Example</firstname>
			<id type="integer">44</id>
			<lastname>API User</lastname>
			<login>example+supportAPI@coupa.com</login>
	 </api-user>
	 <uom>
			<code>EA</code>
			<id type="integer">1</id>
	 </uom>
	 <reorder-alerts />
</item>

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

関連アイテム


Coupa Core API

CoupaのRESTful APIは、お客様のデータをCoupaプラットフォームで読み取り、編集し、統合するための堅牢なアクセスを提供します。

APIの開始

Coupa APIの使用に関する一般情報、およびCSVの使用を検討するタイミング。

OAuth 2.0およびOIDCへの移行

Coupaは従来のAPIキーを廃止し、OAuth 2.0 / OIDCの使用を必要としています。R34以降、新しいAPIキーは発行されず、R35ではAPIキーはサポートされなくなります。

リソース

参照データ、トランザクションデータ、共有リソースなど、オブジェクトのタイプ別にAPIエンドポイントを整理しました。