明細制限のあるサプライヤの追加
サプライヤ・ネゴシエーションRESTリソースを使用して、下書きネゴシエーションにサプライヤを追加できます。 これらのサプライヤを追加するときに、それらの明細アクセスを管理できます。 サプライヤ・ネゴシエーション・リソースを使用して、サプライヤの明細アクセス制限を追加できます。
シナリオの一般的なアプリケーション処理フローを次に示します:
- 明細アクセス制限とともにサプライヤを追加
- サプライヤの明細アクセス制限の削除(アクセス権の付与)
- 下書きネゴシエーションにすでに追加されているサプライヤの明細アクセス制限を取り消します
明細アクセス制限とともにサプライヤを追加
Clare Jonesが、2つのサプライヤPennyPack SystemsとGreen Corp.を、各サプライヤの2つの明細に対するアクセス制限付きでネゴシエーションに招待しているとします。
URLの例
このリソースURL形式を使用します。
POST
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.batch+json" -d 'request payload' "https://servername/fscmRestApi/resources/version"
リクエストの例
JSON形式のリクエスト本文の例を次に示します。
パス: /supplierNegotiations/ AuctionHeaderId /child/suppliers
{
"parts": [
{
"id": "part1",
"path": "/supplierNegotiations/300100194925269/child/suppliers",
"operation": "create",
"payload": {
"Supplier": "PennyPack Systems",
"SupplierSite": "New York",
"SupplierContact": "Smith, Jim",
"supplierLineAccessRestrictions": [
{
"Line": 1
},
{
"Line": 3
}
]
}
},
{
"id": "part1",
"path": "/supplierNegotiations/300100194925269/child/suppliers",
"operation": "create",
"payload": {
"Supplier": "Green Corp.",
"SupplierSite": "PARIS_HQ",
"SupplierContact": "Johnson, Marcel",
"supplierLineAccessRestrictions": [
{
"Line": 1
},
{
"Line": 2
}
]
}
}
]
}
レスポンスの例
JSON形式のレスポンス本文の例を次に示します。
{
"parts": [
{
"id": "part1",
"path": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100194925269/child/suppliers",
"operation": "create",
"payload": {
"AuctionHeaderId": 300100194925269,
"SupplierInvitationId": 40,
"SupplierNumber": 300100148050915,
"Supplier": "PennyPack Systems",
"SupplierId": 300100148050913,
"SupplierSite": "New York",
"SupplierSiteId": 300100148050949,
"SupplierContact": "Smith, Jim",
"SupplierContactId": 300100148050934,
"AdditionalContactEmail": null,
"RequestedSupplier": null,
"RequestedSupplierId": null,
"RequestedSupplierContact": null,
"RequestedSupplierContactId": null,
"ResponseCurrency": null,
"ResponseCurrencyCode": null,
"ConversionRate": null,
"PricePrecision": null,
"NotifyAllSupplierContactsFlag": false,
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T15:14:01.018+00:00",
"LastUpdateDate": "2020-05-22T15:14:03.487+00:00",
"LastUpdatedBy": "CLARE.JONES",
"supplierLineAccessRestrictions": {
"items": [
{
"AuctionHeaderId": 300100194925269,
"LineId": 1,
"SupplierInvitationId": 40,
"Line": "1",
"LineDescription": "UHD 4K Smart LED TV",
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T15:14:02.217+00:00",
"LastUpdatedBy": "CLARE.JONES",
"LastUpdateDate": "2020-05-22T15:14:03.437+00:00",
"links": [...]
},
{
"AuctionHeaderId": 300100194925269,
"LineId": 2,
"SupplierInvitationId": 40,
"Line": "3",
"LineDescription": "Plain Item",
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T15:14:02.818+00:00",
"LastUpdatedBy": "CLARE.JONES",
"LastUpdateDate": "2020-05-22T15:14:03.437+00:00",
"links": [...]
}
],
"count": 2,
"hasMore": false,
"limit": 9,
"offset": 0,
"links": [...]
},
"links": [...]
}
},
{
"id": "part1",
"path": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100194925269/child/suppliers",
"operation": "create",
"payload": {
"AuctionHeaderId": 300100194925269,
"SupplierInvitationId": 50,
"SupplierNumber": 557,
"Supplier": "Green Corp.",
"SupplierId": 12465,
"SupplierSite": "PARIS_HQ",
"SupplierSiteId": 1534,
"SupplierContact": "Johnson, Marcel",
"SupplierContactId": 299918,
"AdditionalContactEmail": null,
"RequestedSupplier": null,
"RequestedSupplierId": null,
"RequestedSupplierContact": null,
"RequestedSupplierContactId": null,
"ResponseCurrency": null,
"ResponseCurrencyCode": null,
"ConversionRate": null,
"PricePrecision": null,
"NotifyAllSupplierContactsFlag": false,
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T15:14:03.317+00:00",
"LastUpdateDate": "2020-05-22T15:14:03.490+00:00",
"LastUpdatedBy": "CLARE.JONES",
"supplierLineAccessRestrictions": {
"items": [
{
"AuctionHeaderId": 300100194925269,
"LineId": 1,
"SupplierInvitationId": 50,
"Line": "1",
"LineDescription": "UHD 4K Smart LED TV",
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T15:14:03.399+00:00",
"LastUpdatedBy": "CLARE.JONES",
"LastUpdateDate": "2020-05-22T15:14:03.437+00:00",
"links": [...]
},
{
"AuctionHeaderId": 300100194925269,
"LineId": 3,
"SupplierInvitationId": 50,
"Line": "2",
"LineDescription": "FOS Laptop Battery",
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T15:14:03.420+00:00",
"LastUpdatedBy": "CLARE.JONES",
"LastUpdateDate": "2020-05-22T15:14:03.438+00:00",
"links": [...]
}
],
"count": 2,
"hasMore": false,
"limit": 9,
"offset": 0,
"links": [...]
},
"links": [...]
}
}
]
}
サプライヤの明細アクセス制限の削除(アクセス・バックの付与)
Clare Jonesが、PennyPack Systemsの行1および行3へのアクセスを取り消し、これらの行へのアクセス権を付与することを考えてみます。
URLの例
このリソースURL形式を使用します。
POST
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.batch+json" -d 'request payload' "https://servername/fscmRestApi/resources/version"
リクエストの例
JSON形式のリクエスト本文の例を次に示します。
パス: /supplierNegotiations/ AuctionHeaderId /child/suppliers/{SupplierInvitationId /child/supplierLineAccessRestrictions/ LineId
{
"parts": [
{
"id": "part1",
"path": "/supplierNegotiations/300100194925269/child/suppliers/40/child/supplierLineAccessRestrictions/1",
"operation":"delete"
},
{
"id": "part2",
"path": "/supplierNegotiations/300100194925269/child/suppliers/40/child/supplierLineAccessRestrictions/2",
"operation": "delete"
}
]
}
レスポンスの例
JSON形式のレスポンス本文の例を次に示します。
{
"parts": [
{
"id": "part1",
"path": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100194925269/child/suppliers/40/child/supplierLineAccessRestrictions/1",
"operation": "delete",
"payload": null
},
{
"id": "part2",
"path": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100194925269/child/suppliers/40/child/supplierLineAccessRestrictions/2",
"operation": "delete",
"payload": null
}
]
}
下書きネゴシエーションにすでに追加されているサプライヤの明細アクセス制限の取消
Clare JonesがサプライヤGreen Corpをすでに招待したとします。すでにネゴシエーションに追加されている明細1と明細3へのアクセス権を取り消します。
URLの例
このリソースURL形式を使用します。
POST
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.batch+json" -d 'request payload' "https://servername/fscmRestApi/resources/version"
リクエストの例
JSON形式のリクエスト本文の例を次に示します。
パス: /supplierNegotiations/ AuctionHeaderId /child/suppliers/ SupplierInvitationId /child/supplierLineAccessRestrictions
{
"parts": [
{
"id": "part1",
"path": "/supplierNegotiations/300100194925269/child/suppliers/30/child/supplierLineAccessRestrictions",
"operation": "create",
"payload": {
"Line": "1"
}
},
{
"id": "part2",
"path": "/supplierNegotiations/300100194925269/child/suppliers/30/child/supplierLineAccessRestrictions",
"operation": "create",
"payload": {
"Line": "3"
}
}
]
}
レスポンスの例
JSON形式のレスポンス本文の例を次に示します。
{
"parts": [
{
"id": "part1",
"path": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100194925269/child/suppliers/30/child/supplierLineAccessRestrictions",
"operation": "create",
"payload": {
"AuctionHeaderId": 300100194925269,
"LineId": 1,
"SupplierInvitationId": 30,
"Line": "1",
"LineDescription": "UHD 4K Smart LED TV",
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T11:51:47+00:00",
"LastUpdatedBy": "CLARE.JONES",
"LastUpdateDate": "2020-05-22T11:51:47.188+00:00",
"links": [...]
}
},
{
"id": "part2",
"path": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100194925269/child/suppliers/30/child/supplierLineAccessRestrictions",
"operation": "create",
"payload": {
"AuctionHeaderId": 300100194925269,
"LineId": 2,
"SupplierInvitationId": 30,
"Line": "3",
"LineDescription": "Plain Item",
"CreatedBy": "CLARE.JONES",
"CreationDate": "2020-05-22T11:51:47.172+00:00",
"LastUpdatedBy": "CLARE.JONES",
"LastUpdateDate": "2020-05-22T11:51:47.188+00:00",
"links": [...]
}
}
]
}