見積回答API
見積回答APIエンドポイントを使用すると、ソーシングイベントに対するサプライヤーの回答、および選定明細とロットを確認できます。
アクション
| 動詞 | パス | アクション | Description |
|---|---|---|---|
| POST | /api/quote_responses /: id/award | award | 見積回答を選定します。 |
| GET | /api/quote_requests /: quote_request_id/quote_responses | インデックス | サプライヤーごとに最新の回答を取得します。 すべての応答を表示するには、 /api/quote_requests /: quote_request_id/quote_responses/all エンドポイントを使用します。 |
| GET | /api/quote_requests /: quote_request_id/quote_responses/all | all | 送信された回答とドラフトの回答を含む、ソーシングイベントのすべての回答を取得します。 |
| GET | /api/quote_responses | インデックス | 特定のソーシングイベントのすべての回答を取得します。 |
| DELETE | /api/quote_responses /: id/award | remove_award | 見積回答から選定を削除します。 |
| GET | /api/quote_responses /: id | 表示 | 特定の回答に関する情報を取得します。 |
| GET | /api/quote_responses/all | all | 送信された回答とドラフトの回答を含む、すべての回答を取得します。 |
Elements
| 要素 | Description | 必須 | 一意 | 許容値 | 入力 | 出力 | データタイプ |
|---|---|---|---|---|---|---|---|
| awarded | Awarded | yes | boolean | ||||
| コメント | Comments | yes | テキスト | ||||
| 作成日時 | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
| created-by | 作成したユーザー | yes | ユーザー | ||||
| ID | Coupaの一意の識別子 | yes | 整数 | ||||
| lines | 明細 | yes | QuoteResponseLine | ||||
| position | position | yes | 整数 | ||||
| promoted | promoted | yes | boolean | ||||
| quote-request-id | quote_request_id | yes | 整数 | ||||
| quote-request-original-id | 元のソーシングイベントのCoupaの一意の識別子 | yes | 文字列 | ||||
| quote-request-revision | ソーシングイベント修正 | yes | 文字列 | ||||
| quote-supplier | quote_supplier | yes | yes | QuoteSupplier | |||
| state | state | yes | string(255) | ||||
| submitted-at | submitted_at | yes | yes | datetime | |||
| updated-at | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
| updated-by | 更新したユーザー | yes | ユーザー | ||||
| quote-request-attachment-response | イベントレベルでのサプライヤーの添付ファイルの詳細。 | yes | 見積依頼添付ファイルの回答 |
見積回答の添付ファイル
見積回答の添付ファイルにアクセスするには、 /api/quote_requests /: quote_request_id/quote_responses エンドポイントを使用してサプライヤーごとに最新の提出された回答を取得するか、 /api/quote_requests /: quote_request_id/quote_responses/all エンドポイントを使用して過去の回答と下書きの回答を含むすべての回答を取得します。 応答本文の 行 オブジェクトの下に、添付ファイル配列の id フィールドがあります。 添付ファイルIDを取得したら、添付ファイルAPIを使用して添付ファイルにアクセスできます。
たとえば、GET要求から /api/quote_requests /: quote_request_id/quote_responses/all エンドポイントへのこのサンプル応答には、サンプル添付ファイルIDが含まれています。
[{" id ": 1, "created - at ":" 2023 -05 -03 T 08:14:37 - 07:00 ", "updated - at ":" 2023 -05 -03 T 08:48 - 07:00 ", "quote - request - id ": 1," submitted - at ": "2023 -05 -03 T 08:14:48 - 07:00 "," state ": "submitted "," promoted ": false, "position ": null," comments ": null, "exported ": false," quote - request - original - id ": null, "quote - request - revision ": null," award ": false, "lines ": [{" id ": 1," created - at ": "2023 -05 -03 T 08:37 - 07:00 "," updated - at ": "2023 -05 -24 T 04:26:55 - 07:00 "," price - amount ": "1.0 "," quantity ": "1.0 "," reporting - price - amount ":" 1.0 ", "report" null ", "cost - evalues ":"," supplier - name ": null - description ", "nesc - description ": null - description "," nesc - number ": ": ", "null - number ": ":" null - number ":", ":" null - name ": ": "," attached - name ": ", "null - name ": "," ull - attachment ": ", "ull - name ": "," Attaching - name ": "Attachment ":" null - at ", "ull - name ":" Attachment ": "null - name ":" attach ": ", "null "," Attachment ": "null - name ":" ull ", "Attachment ":" ull ": "source - file ":" file ": "source - xl ":" file ": ".x "file ":" source - xl ", "file ":" source - xl ": "http:// ": "," source - name ": ", "source - file ": ":" http:// ".xl "source - file ".xl" path ": ": ", ". xl ", ".xl ": "source - name" file ": "http://" Attchment ": ", "source - file ": ": ":" http:// "http://" file "nxl" path "n "," nxl ", ", "Attchment "," file ", "i" t ": ": ": "n" n "n ". ". "." f ", "attachment" at "d" n ", ", "uxl - name" t "n "," t "n ", "," t ", ": ": "s - name ", "," t "t" t ", "t ": ":" t "t "," t "s ":" t ", "t ":" t "t "," t "d ":" d "s "," d ", ": ": "d" d ", "ull - name "," n "s ":" ull - name ", "n" s ": "t ": ":" t ": "t" n ": "t" t "n "," t "t" s "t" n "n "," n ": "Att" t ", ", "