Quality Collaboration API

外部の品質管理システムを統合して、品質検査に協力します。

品質コラボレーションを使用すると、品質検査、特にサプライヤーが実施した検査の中心的なコラボレーションポイントとしてCoupaを使用できます。

このAPIを使用すると、次のことができます。

  • 新しい品質検査リクエストをインポートまたはトリガーします。

  • バイヤーとサプライヤーのコラボレーションプロセスが完了した後、最終検査結果とステータスを受け取ります。

  • 検査とその特性に関連する添付ファイルを管理します。

品質検査プロセスでは、インバウンドデータフローとアウトバウンドデータフローの両方にAPIを使用します。

  1. Coupaで新しいオープン品質検査を作成するには、POSTリクエストを送信します。

  2. バイヤーとサプライヤーは、Coupa UIとCSPを使用してコラボレーションし、コメントの交換、結果の記入、添付ファイルのアップロードを行います。

  3. 購入者が検査を承認または拒否したら、GETリクエストを使用して最終ステータスと解決策を読み取ります。

注:

このAPIは、 早期アクセスプログラム( EAP )に参加しているお客様のみが利用できます EAPに参加するには、Coupa担当者にお問い合わせください。

アクション

動詞パス説明

GET

/qualitycollaboration/api/v 1/品質検査

すべての品質検査を受ける

GET

/qualitycollaboration/api/v 1/品質検査/{id}

クオリティチェックの詳細を見る

POST

/qualitycollaboration/api/v 1/品質検査

新しい品質検査を作成する

POST

/qualitycollaboration/api/v 1/quality - inspections/{id}/exported

品質検査をエクスポート済みとしてマークする

POST

/qualitycollaboration/api/v 1/quality - inspections/{id}/reset - exported

品質検査のエクスポートされたフラグをリセットする

GET

/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/attachments

検査のすべての添付ファイルを取得する(ヘッダー)

POST

/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/attachments

検査レベルで新しい添付ファイルを追加する(ヘッダー)

GET/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/characteristics/{characteristic_id}/attachments/{attachment_id}特性の特定の添付ファイルを取得する
GET/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/attachments/{attachment_id}品質検査の特定の添付ファイルを取得する

DELETE

/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/attachments/{attachment_id}

検査レベルで添付ファイルを削除する(ヘッダー)

GET

/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/characteristics/{characteristic_id}/attachments

特性のすべての添付ファイルを取得する(ライン)

POST

/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/characteristics/{characteristic_id}/attachments

特性レベル(ライン)で新しい添付ファイルを追加する

DELETE

/qualitycollaboration/api/v 1/quality - inspections/{inspection_id}/characteristics/{characteristic_id}/attachments/{attachment_id}

特性レベル(ライン)で添付ファイルを削除する

スコープ

このAPIには、次のスコープが必要です。

  • quality_collaboration.quality_inspection.read
  • quality_collaboration.quality_inspection.write

Elements

要素説明必須一意許容値入力出力データタイプ
ID検査ID.nononoyes
整数
type検査の種類。no検査yes
yes
文字列
ステータス検査のステータス。no
  • オープン

  • バイヤーのレビュー中

  • 進行中

  • 完了済み

noyes
文字列
reviewDecisionレビューで下された決定。no
  • 承認済み

  • 却下

noyes
文字列
resolutionReasonText解決の理由のテキスト。nonoyes
文字列
resolutionReasonType問題解決の理由の種類。nonoyes
文字列
resolutionReasonCode解決の理由コード。nonoyes
文字列
requestDateリクエストの日付。noyes
yes
datetime
dueDate期日.yes
yes
yes
datetime
supplierIdサプライヤーのID.yes
yes
yes
整数
itemIdアイテムのID。noyes
yes
整数
itemNameアイテムの名前。noyes
yes
文字列
itemDescriptionアイテムの説明.noyes
yes
文字列
warehouseId倉庫ID.nonoyes
整数
buyerBatchNumberバイヤーバッチ番号。noyes
yes
文字列
supplierPartNumberサプライヤー品番.noyes
yes
文字列
buyerPartNumberバイヤー品番.noyes
yes
文字列
itemQuantityアイテムの数量。yes
yes
yes
整数
sampleSizeサンプルサイズ。noyes
yes
整数
uom数量単位.yes
yes
yes
整数
requestedByクオリティチェックを依頼したユーザー。yes
yes
yes
整数
refDocumentType文書タイプ.no購買yes
yes
文字列
refDocumentId文書ID.noyes
yes
文字列
refDocumentItem文書項目。noyes
yes
文字列
reviewedDateレビューの日付nonoyes
datetime
reviewedByレビューしたユーザー。nonoyes
文字列
submittedDate送信日。nonoyes
datetime
submittedBy送信したユーザー。nonoyes
文字列
externalInspectionId外部検査のID。noyes
yes
文字列
createdAtクオリティチェックが作成されたとき。nonoyes
datetime
createdByインスペクションを作成したユーザー。nonoyes
整数
modifiedAt日付が変更されました。nonoyes
datetime
modifiedBy変更したユーザー。nonoyes
整数
exportedレコードがエクスポートされるかどうか。nonoyes
boolean
特性検査に関連する特性記録。noyes
yes
特徴

クオリティチェックを受ける

メソッド

GET /qualitycollaboration/api/v 1/quality - inspections/{id}

cURLリクエスト例
curl -- location 'https ://<your-instance>.com/qualitycollaboration/api/v 1/quality - inspections/1 '\-- header' Accept: application/json '\-- header 'Accept: application/xml '\-- header'承認: • • • • • •'
レスポンス例
{" id ": 1, "type ":" Inspection ", "status ":" Closed ", "resolutionReasonText ":" accepted ", "dueDate ":" 2025 -11 -20 T 10:00:00 Z ", "supplierId ": 1," itemId ": 1, "itemName ":" Inspection Material ", "itemDescription ":" Inspection material ", "supplierPartNumber ":" SLNG -123 ", "buyerPartNumber ":" BLNG -123 ", "itemQuantity ": 50.000000 "," uom ": 1, "requestedBy ": 10," refDocumentType ": ": "Purchase Order "," refDocumentId ": "EXTPO_003 "," refDocumentItem ": "0010 "," createdAt ": "2025 -11 -04 T 16:07:02 Z "," modifiedAt ": ": "2025 -11 -04 T 16:17:49 Z "," exported ": false ", "characteristics ":[" id ": 1," lineNum ": 1, "inspectionId ": 1," name ": "Color" Color ", "type ": ":" isQuantitative ": "false," specification ": "clearless "" value ":" value "," characteristicVues ":" 1, "domainId ": 1," COLOR "value ":" value ", "value" 2 "value ": "," COLOR ": "2" value ", "value "" 2 ":" value" 2 ":"": "light yellow "}, {" id ": 3, "characteristicId ": 1," code ": "3 "," domain ": "COLOR "," value ": "No colour "}]," expectedResults ": {"id ": 1," characteristicId ": 1, "numericValue ": 3.000000}," expectedLimits ": [], "recordedCharacteristic ": {" id ": 1, "characteristicId ": 1," code ": "1 "}}, {" id ": 2, "lineNum ": 2," inspectionId ": 1, "name ":" non - volatile residue ", "type ":" required ", "isQuantitative ": true," specification ": "Not more than 0.1%"," valueType ": ": "numeric "," characteristicValues ":[], "expectedResults ": {" id ": 2, "characteristicId ": 2," numericValue ": 0.320000000, "valuePrecision ": 2}," expectedLimits ": [" id ": 1, "characteristicId ": 2," limitType "min "," comparisonOperator ": "gt," comparisonValue: 0.0000}, "id ": 2," maxId ": 2, "comparison ":" max ": Oper ":" 0%以下"," valueType ": ":" numericValue ": 0.32000000 ": 2, "expectedLimits ": 2," expectedLimits ": {": 1, "characteristicId ": 2," limitType ", "min ":" ": 2 ," numericValue ": 0.050000000 }},{" id ": 3 ," lineNum ": 3 ," inspectionId ": 1 ," name ":" Reducing substances "," type ":" required "," isQuantitative ": true ," specification ":" Not more than 70 mg/kg as sulfur dioxide "," valueType ":" numeric "," characteristicValues ":[]," expectedResults ":{" id ": 3 ," characteristicId ": 3 ," numericValue ": 55.000000000 ," valuePrecision ": 2 }," expectedLimits ":[{" id ": 3 ," characteristicId ": 3 ," limitType ":" min "," comparisonOperator ":" gt "," comparisonValue ": 0.000000 },{" id ": 4 ," characteristicId ": 3 ," limitType ":" max "," comparisonOperator ":" lt "," comparisonValue ": 70.000000 }]," recordedCharacteristic ":{" id: 3 ," characteristicId ": 3 ," numericValue ": 69.000000}}

品質検査を作成する

メソッド

POST /qualitycollaboration/api/v1/quality-inspections

cURLリクエスト例
curl --location 'https://<your-instance>/qualitycollaboration/api/v1/quality-inspections' \ --header 'Accept: application/json' \ --header 'Accept: application/xml' \ --header 'Content-Type: application/json' \ --header 'Authorization: ••••••' \ --data '{ "type": "inspection", "dueDate": "2025-12-20T10:00:00Z", "supplierId": 1, "itemId": 1, "supplierPartNumber": "SLNG-123", "buyerPartNumber": "BLNG-123", "buyerBatchNumber": "MPNBATCHNO-LNG456", "itemQuantity": 50.0, "sampleSize": 1, "uom": 1, "requestedBy": 10, "refDocumentType": "Purchase Order", "refDocumentId": "EXTPO_004", "refDocumentItem": "0010", "externalInspectionId": "EXT_QI_004", "characteristics": [ { "name": "Color", "type": "REQUIRED", "isQuantitative": false, "requirement": "Clear colourless ", "valueType": "CHOICE", "characteristicValues": [ { "code": "1", "domain": "COLOR", "value": "Yellow" }, { "code": "2", "domain": "COLOR", "value": "light yellow" }, { "code": "3", "domain": "COLOR", "value": "No colour" } ], "expectedResults": { "targetValue": "3" }, "expectedLimits": [] }, { "name": "Non-volatile residue", "type": "REQUIRED", "isQuantitative": true, "requirement": "Not more than 0.1%", "valueType": "NUMERIC", "characteristicValues": [], "expectedResults": { "targetValue": ".32", "valuePrecision": "2" }, "expectedLimits": [ { "limitType": "MIN", "comparisonOperator": "GT", "comparisonValue": "0" }, { "limitType": "MAX", "comparisonOperator": "LT", "comparisonValue": "0.1" } ] }, { "name": "Reducing substances", "type": "REQUIRED", "isQuantitative": true, "requirement": "Not more than 70 mg/kg as sulfur dioxide", "valueType": "NUMERIC", "characteristicValues": [], "expectedResults": { "targetValue": "55", "valuePrecision": "2" }, "expectedLimits": [ { "limitType": "MIN", "comparisonOperator": "GT", "comparisonValue": "0" }, { "limitType": "MAX", "comparisonOperator": "LT", "comparisonValue": "70" } ] } ] }'
レスポンス例
{ "id": 606, "type": "Inspection", "status": "Open", "dueDate": "2025-12-20T10:00:00Z", "supplierId": 1, "itemId": 1, "itemName": "Inspection Material", "itemDescription": "Inspection material", "supplierPartNumber": "SLNG-123", "buyerPartNumber": "BLNG-123", "itemQuantity": 50.0, "uom": 1, "requestedBy": 10, "refDocumentType": "Purchase Order", "refDocumentId": "EXTPO_004", "refDocumentItem": "0010", "createdAt": "2025-12-02T16:55:45.416467Z", "modifiedAt": "2025-12-02T16:55:51.185949Z", "exported": false, "characteristics": [ { "id": 2976, "lineNum": 1, "inspectionId": 606, "name": "Color", "type": "required", "isQuantitative": false, "specification": "Clear colourless ", "valueType": "choice", "characteristicValues": [ { "id": 3193, "code": "1", "domain": "COLOR", "value": "Yellow" }, { "id": 3194, "code": "2", "domain": "COLOR", "value": "light yellow" }, { "id": 3195, "code": "3", "domain": "COLOR", "value": "No colour" } ], "expectedResults": { "id": 2976, "characteristicId": 2976, "numericValue": 3 }, "recordedCharacteristic": { "id": 2976, "characteristicId": 2976 } }, { "id": 2977, "lineNum": 2, "inspectionId": 606, "name": "Non-volatile residue", "type": "required", "isQuantitative": true, "specification": "Not more than 0.1%", "valueType": "numeric", "expectedResults": { "id": 2977, "characteristicId": 2977, "numericValue": 0.32, "valuePrecision": 2 }, "expectedLimits": [ { "id": 3339, "limitType": "min", "comparisonOperator": "gt", "comparisonValue": 0 }, { "id": 3340, "limitType": "max", "comparisonOperator": "lt", "comparisonValue": 0.1 } ], "recordedCharacteristic": { "id": 2977, "characteristicId": 2977 } }, { "id": 2978, "lineNum": 3, "inspectionId": 606, "name": "Reducing substances", "type": "required", "isQuantitative": true, "specification": "Not more than 70 mg/kg as sulfur dioxide", "valueType": "numeric", "expectedResults": { "id": 2978, "characteristicId": 2978, "numericValue": 55, "valuePrecision": 2 }, "expectedLimits": [ { "id": 3341, "limitType": "min", "comparisonOperator": "gt", "comparisonValue": 0 }, { "id": 3342, "limitType": "max", "comparisonOperator": "lt", "comparisonValue": 70 } ], "recordedCharacteristic": { "id": 2978, "characteristicId": 2978 } } ] }