カタログアイテムの呼び出し例

サンプルアイテムを作成

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

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

<?xml version="1.0" encoding="UTF-8"?>

<item>

	 <active>true</active>

	 APIが作成したアイテムの<description>例</description>

	 <item-number>ExpAPI 1001</item-number>

	 APIアイテム1001の<name>例</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>

	 2011 <created-at type="datetime">-04 -05 T 09:01:49 - 07:00</created-at>

	 APIが作成したアイテムの<description>例</description>

	 <item-number>ExpAPI 1001</item-number>

	 APIアイテム1001の<name>例</name>

	 2011 <updated-at type="datetime">-04 -05 T 09:01:49 - 07:00</updated-at>

	 <test-text-field type="string" />

	 <commodity>

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

			2008 <created-at type="datetime">-10 -27 T 20:04:00 Z</created-at>

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

			<name>IT</name>

			2010 <updated-at type="datetime">-02 -25 T 00:32:35 Z</updated-at>

			<created-by>

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

				 <employee-number />

				 <firstname>例</firstname>

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

				 <lastname>ユーザー</lastname>

				 <login>例</login>

			</created-by>

			<updated-by>

				 <email>example+ke@coupa.com</email>

				 <employee-number />

				 <firstname>カイル</firstname>

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

				 <lastname>アイズナー</lastname>

				 <login>administrator</login>

			</updated-by>

			<code type="string" />

	 </commodity>

	 <api-user>

			<email>example+supportAPI@coupa.com</email>

			<employee-number nil="true" />

			<firstname>例</firstname>

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

			<lastname>APIユーザー</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エンドポイントを整理しました。