見積依頼API
見積依頼APIを使用すると、ソーシングイベントの作成、管理、閲覧ができます。
アクション
見積の添付ファイルとタスクに関連付けられているその他のエンドポイントについては、添付ファイルAPIおよびタスクAPIを参照してください。
| 動詞 | パス | アクション | Description |
|---|---|---|---|
| POST | /api/quote_requests | 作成 | ソーシングイベントを作成 |
| POST | /api/quote_requests/create_from_source | create_from_source | 申請書、契約、カタログ、注文パッド、発注明細、請求明細、アイテムからソーシングイベントを作成 |
| GET | /api/quote_requests | インデックス | すべてのソーシングイベントを返す |
| GET | /api/quote_requests /: id | 表示 | 特定のイベントに関する情報を取得 |
| PUT | /api/quote_requests /: id | 更新 | ソーシングイベントを更新。 |
Elements
| 要素 | Description | 必須 | 一意 | 許容値 | 入力 | 出力 | データタイプ |
|---|---|---|---|---|---|---|---|
| allow-award-individual-line-items | 個別の明細アイテムに対して選定できるかどうか | yes | yes | boolean | |||
| allow-multiple-response | 同一のサプライヤーから複数の応答を許可するかどうか | yes | yes | boolean | |||
| 添付ファイル | 添付ファイル(イベント詳細、利用規約、通常の添付などが含まれる可能性あり) | yes | yes | 添付ファイル | |||
| automatic-bid-unsealing | 有効にすると、入札が自動的に開封されます | true、false | yes | yes | boolean | ||
| business-partners | ビジネスパートナー | yes | yes | 見積依頼ユーザー | |||
| コメント | Comments | yes | yes | テキスト | |||
| commodity | コモディティ | yes | yes | コモディティ | |||
| content-groups | Content Groups | yes | yes | 期間 | |||
| currency | Currency | yes | yes | Currency | |||
| custom-fields | カスタムフィールド | yes | |||||
| exported | イベントがエクスポート済みかどうか | yes | boolean | ||||
| 説明 | イベント名 | yes | yes | テキスト | |||
| easy-forms | フォーム | no | no | any | yes | yes | フォーム |
| end-time | イベントの終了時間、形式: %m/%d/%y %I:%M %p %z | yes | yes | datetime | |||
| event-type | イベントのタイプ | yes | yes | yes | string(255) | ||
| hidden | trueの場合、イベントは非表示イベント | yes | yes | boolean | |||
| ID | Coupaの一意の識別子 | yes | 整数 | ||||
| forms | フォーム(R23で廃止、easy-formsに置き換え) | yes | yes | フォーム | |||
| lines | 明細 | yes | yes | 見積依頼明細 | |||
| lots | ロット | yes | yes | 見積依頼ロット | |||
| quote-request-attachments | 見積依頼の添付ファイル | yes | yes | 見積依頼の添付ファイル | |||
| quote-suppliers | 見積対象のサプライヤー | yes | yes | Quote Supplier | |||
| revision | 修正 | yes | string(255) | ||||
| sealed-bids | 有効にすると、入札は封印されます | yes | yes | boolean | |||
| sealing-type | 封印方法('one_step_unsealing'または'two_steps_unsealing')は「手動で開封」オプション時に選択必須 | one_step_unsealing、two_steps_unsealing | yes | yes | 整数 | ||
| sealing-stage | Sealing Stage | all_envelopes_sealed、envelope 1_unsealed、envelope 2_unsealed | yes | 整数 | |||
| start-on-submit | 送信時にイベントを開始するかどうかを示すフラグ | yes | yes | boolean | |||
| start-time | イベントの開始時間、形式: %m/%d/%y %I:%M %p %z | yes | yes | datetime | |||
| state | 州 | yes | string(255) | ||||
| タグ | タグ | yes | yes | Tag | |||
| template-id | テンプレートID | yes | 整数 | ||||
| timezone | イベントのタイムゾーン | yes | yes | string(255) | |||
| base_price_calculation_method | 基準価格の算出方法('average_of_supplier_responses'、'lowest_supplier_response_in_prebid'、または'manually_enter_base_prices')を指定することで、どの方法で基準価格が計算されるかを定義 | yes | yes | 整数 | |||
| cost_avoidance | 回避コスト | yes | yes | decimal(30,4) | |||
| cost_avoidance_currency | コスト回避通貨 | yes | yes | Currency | |||
| creatable-from-id | Creatable From Object ID | yes | 整数 | ||||
| creatable-from-type | Creatable From Object Type | yes | string(255) | ||||
| 作成日時 | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
| created-by | 作成したユーザー | yes | ユーザー | ||||
| planned_savings | 予定節減額 | yes | yes | decimal(30,6) | |||
| planned-savings-currency | 予定節減額通貨 | yes | yes | Currency | |||
| negotiated_savings | APIのキーとして使用する節減の別名 | yes | yes | decimal(32,4) | |||
| negotiated-savings-currency | 交渉による節減額通貨 | yes | yes | Currency | |||
| original-id | 元のイベントのCoupaの一意の識別子 | yes | 整数 | ||||
| allow_supplier_to_send_attachments | バイヤーがtrueに設定した場合、サプライヤーはメッセージセンターで添付ファイルを送信できます | yes | yes | boolean | |||
| submit-time | イベントを送信する必要がある時間、フォーマット: %m/%d/%y %I:%M %p %z。 デフォルト時間:なし | yes | yes | datetime | |||
| updated-at | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
| updated-by | 更新したユーザー | yes | ユーザー | ||||
| quote-message | バイヤーが送受信したメッセージ。 | yes | QuoteMessage | ||||
| allow-suppliers-to-choose-currency | 真に設定されている場合、サプライヤーは見積依頼通貨のリストから選択できます | yes | yes | boolean | |||
| quote-request-currencies | 見積依頼通貨:見積依頼の通貨のリスト | yes | yes | QuoteRequestCurrency |
テンプレートまたは既存のソーシングイベントからイベントを作成
- メソッド
- POST
/api/quote_requests - リクエストペイロード例
{" source_id ": 105 ,// Id of the template or existing event "description ":" New name for the event "," commodity ":{" id ": 9 }," currency ":{" id ": 1 }," lines ":[{" description ":" New item to be added to event "," type ":" QuoteRequestQuantityLine "," quantity ": 10 }]," quote_request_attachments ":[{" name ":" Attachmet One "," instruction ":" Some dummy instruction "," response_required ": true ," allow_to_respond ": true}]}- cURLリクエスト例
curl -- location 'https ://<your-instance>.com/api/quote_requests '\-- header' Accept: application/xml '\-- header 'Accept: application/json '\-- header' Accept: application/octet - stream '\-- header 'Content - Type: text/plain '\-- header' Authorization: • • • • • • • '\-- data '{" source_id ": 105 ,// Id of the template or existing event "description ":" New name for the event ", "commodity ": {" id ": 9}," currency ": {" id ": 1}, "lines ": [{" description ":" New item to be added to event ", "type ":" QuoteRequestQuantityLine ", "quantity ": 10}]," quote_request_attachments ": [{" name ": "Attachmet One "," instruction ": "Some dummy instruction "," response ": true, "allow_to_respond ": true}]}
複数の通貨でイベントを作成
- メソッド
- POST
/api/quote_requests - リクエストペイロード例
{" source_id ": 108 ," description ":" New name for the event "," commodity ":{" id ": 9 }," currency ":{" id ": 1 }," allow_suppliers_to_choose_currency ": true ," quote_request_currencies ":[{" from_currency ":{" code ":" INR "}," rate ": 10 }]]," lines ":[{" description ":" New item to be added to event "," type ":" QuoteRequestQuantityLine "," quantity ": 10}]}- cURLリクエスト例
curl -- location 'https ://<your-instance>/api/quote_requests '\-- header' Accept: application/xml '\-- header 'Accept: application/json '\-- header' Accept: application/octet - stream '\-- header 'Content - Type: text/plain '\-- header' Authorization: • • • • • • '\-- data '{" source_id ": 108, "description ":"イベントの新しい名前", "commodity ": {" id ": 9}," currency ": {" id ": 1}, "allow_suppliers_to_choose_currency ": true," quote_request_currencies ": [{" from_currency ": {" code ": "INR "}," rate ": 10}], "lines ": [{" description ":"イベントに追加する新しいアイテム", "type ":" QuoteRequestQuantityLine ", "quantity ": 10 }]}'