ピックリスト/フルフィルメント予約API (/pick lists)
概要
ピックリストAPIを使用すると、ピックリストの一覧を取得し、フルフィルメントを更新できます。 選択リストにアクセスするURLは次のとおりです。 https ://{your_instance_name}/api/pick_lists
詳細については、ピックリストを参照してください。
アクション
| 動詞 | パス | アクション | Description |
|---|---|---|---|
| GET | /api/pick_lists | Index | フルフィルメント予約を検索 |
| POST | /api/pick_lists/update_fulfillments | フルフィルメントを更新 | フルフィルメント予約を更新 |
Elements
| 要素 | Description | 必須 | 一意 | 許容値 | 入力 | 出力 | データタイプ |
|---|---|---|---|---|---|---|---|
| 作成日時 | フルフィルメントの時刻予約の作成 (形式: YYYY-MM-DDTHH:MM:SS+HH:MMZ) | yes | datetime | ||||
| ID | Coupaの内部一意識別子 | yes | 整数 | ||||
| inventory-balance | アイテムの在庫残高 | yes | 在庫バランス | ||||
| アイテム | アイテム | yes | アイテム | ||||
| order-line | 発注明細 | yes | OrderLine | ||||
| qty-fulfilled | 実行された数量 | yes | decimal(30,6) | ||||
| qty-ordered | 発注数量 | yes | yes | decimal(30,6) | |||
| ステータス | 値は「アクティブ」または「クローズ」にすることができます。 | yes | string(255) | ||||
| タイプ | フルフィルメント予約のタイプ。 値は「FulfillmentReservation」または「FulfillmentShortfall」になります | yes | string(255) | ||||
| updated-at | フルフィルメントの時刻予約の更新 (形式: YYYY-MM-DDTHH:MM:SS+HH:MMZ) | yes | datetime | ||||
| 倉庫 | アイテムがある倉庫 | yes | 倉庫 | ||||
| warehouse-location | アイテムがある倉庫内の所在地 | yes | 倉庫内の所在地 |
呼び出しの例
特定の選択リストを取得
https ://{your_instance_name}/api/pick_lists? id ={id}を取得します。
出力
<?xml version="1.0" encoding="UTF-8"?> <fulfillment-reservations type="array"> <fulfillment-reservation> <id type="integer">3</id> <created-at type="dateTime">2020-02-17T06:52:16+01:00</created-at> <updated-at type="dateTime">2020-04-01T09:14:19+02:00</updated-at> <type>FulfillmentReservation</type> <status>active</status> <qty-ordered type="decimal">1.0</qty-ordered> <qty-fulfilled type="decimal">0.1</qty-fulfilled> <item> ... </item> <inventory-balance> <id type="integer">211</id> <created-at type="dateTime">2019-12-02T21:24:05+01:00</created-at> <updated-at type="dateTime">2020-04-01T09:14:19+02:00</updated-at> <quantity type="decimal">23.689</quantity> <allocated type="decimal">0.9</allocated> <available type="decimal">22.789</available> <item> ... </item> <inventory-valuations type="array"> <inventory-valuation> <id type="integer">206</id> <created-at type="dateTime">2019-12-02T21:24:05+01:00</created-at> <updated-at type="dateTime">2020-04-01T09:14:19+02:00</updated-at> <unit-price type="decimal">12.26</unit-price> <total type="decimal">290.427140</total> <currency> ... </currency> </inventory-valuation> </inventory-valuations> <warehouse> ... </warehouse> <warehouse-location> ... </warehouse-location> <created-by> ... </created-by> <updated-by> ... </updated-by> </inventory-balance> <warehouse> ... </warehouse> <warehouse-location> ... </warehouse-location> </fulfillment-reservation> </fulfillment-reservations>フルフィルメント計画を更新
https ://{your_instance_name}/api/pick_lists/update_fulfillmentsに投稿
ペイロード
<?xml version="1.0" encoding="UTF-8"?> <fulfillment-reservation> <id type="integer">999</id> <qty-pick-amt>5</qty-pick-amt> </fulfillment-reservation>