見積依頼API

見積依頼APIを使用すると、ソーシングイベントの作成、管理、閲覧ができます。

アクション

見積の添付ファイルとタスクに関連付けられているその他のエンドポイントについては、添付ファイルAPIおよびタスクAPIを参照してください。

動詞パスアクションDescription
POST/api/quote_requests作成ソーシングイベントを作成
POST/api/quote_requests/create_from_sourcecreate_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、falseyes
yes
boolean
business-partnersビジネスパートナーyes
yes
見積依頼ユーザー
コメントCommentsyes
yes
テキスト
commodityコモディティyes
yes
コモディティ
content-groupsContent Groupsyes
yes
期間
currencyCurrencyyes
yes
Currency
custom-fieldsカスタムフィールドyes

exportedイベントがエクスポート済みかどうかyes
boolean
説明イベント名yes
yes
テキスト
easy-formsフォームnonoanyyes
yes
フォーム
end-timeイベントの終了時間、形式: %m/%d/%y %I:%M %p %zyes
yes
datetime
event-typeイベントのタイプyes
yes
yes
string(255)
hiddentrueの場合、イベントは非表示イベントyes
yes
boolean
IDCoupaの一意の識別子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_unsealingyes
yes
整数
sealing-stageSealing Stageall_envelopes_sealed、envelope 1_unsealed、envelope 2_unsealedyes
整数
start-on-submit送信時にイベントを開始するかどうかを示すフラグyes
yes
boolean
start-timeイベントの開始時間、形式: %m/%d/%y %I:%M %p %zyes
yes
datetime
stateyes
string(255)
タグタグyes
yes
Tag
template-idテンプレートIDyes
整数
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-idCreatable From Object IDyes
整数
creatable-from-typeCreatable From Object Typeyes
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_savingsAPIのキーとして使用する節減の別名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-atCoupaが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 }]}'