1つの価格分岐の作成
post
/fscmRestApi/resources/11.13.18.05/supplierNegotiations/{supplierNegotiationsUniqID}/child/lines/{LineId}/child/priceBreaks
リクエスト
パス・パラメータ
- LineId(required): number
ネゴシエーション明細を一意に識別する値です。
- supplierNegotiationsUniqID(required): string
これは、サプライヤ・ネゴシエーション・リソースの複合キーを構成し、サプライヤ・ネゴシエーションのインスタンスを一意に識別するために使用される属性のハッシュ・キーです。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントは、ハッシュ・キーを取得するためにサプライヤ・ネゴシエーションの特定のインスタンスにナビゲートするために、サプライヤ・ネゴシエーション収集リソースを問い合せる必要があります。
ヘッダー・パラメータ
- Metadata-Context:
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version:
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
- Upsert-Mode:
次のいずれかの値が含まれます: trueまたはfalse。 trueの場合、サーバーは作成操作ではなくアップサート操作を実行します。 アップサート操作中、サーバーはペイロードに一致する既存のリソースを検索しようとします。 一致が見つかった場合、サーバーは新しいリソースを作成するのではなく、既存のリソースを更新します。 見つからないかfalse (デフォルト)の場合、サーバーは作成操作を実行します。 アップサート操作は有効日RESTリソースではサポートされていません。
サポートされているメディア・タイプ
- application/json
ルート・スキーマ : スキーマ
タイプ:
ソースを表示
object-
Line: string
ネゴシエーション明細を識別する番号。
-
LineDescription: string
ネゴシエーション明細の摘要。
-
PriceBreakEndDate: string (date)
タイトル:
End Date価格分岐が失効する日付。 -
PriceBreakStartDate: string (date)
タイトル:
Start Date価格分岐が有効になる日付。 -
Quantity: number
タイトル:
Quantity価格分岐の数量。 -
ShipToLocation: string
タイトル:
Location最大長:60サプライヤが品目を出荷する事業所の名前です。 -
ShipToLocationId: integer (int64)
タイトル:
Ship-to Location IDサプライヤが品目を出荷する事業所を一意に識別する値です。 -
ShipToOrganization: string
タイトル:
Ship-to Organization最大長:240サプライヤが品目を出荷する在庫組織の名前です。 -
ShipToOrganizationId: integer (int64)
タイトル:
Ship-to Organization IDサプライヤが品目を出荷する在庫組織を一意に識別する値です。 -
TargetPrice: number
タイトル:
Target Price価格分岐のターゲット価格。
レスポンス
サポートされているメディア・タイプ
- application/json
デフォルトのレスポンス
次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
- Metadata-Context(required):
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version(required):
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
ルート・スキーマ : supplierNegotiations-lines-priceBreaks-item-response
タイプ:
ソースを表示
object-
AuctionHeaderId: integer (int64)
読取り専用:
trueネゴシエーションを一意に識別する値です。 -
CreatedBy: string
読取り専用:
true最大長:64価格分岐を作成したユーザー。 -
CreationDate: string (date-time)
読取り専用:
trueユーザーが価格分岐を作成した日時。 -
LastUpdateDate: string (date-time)
読取り専用:
trueユーザーが最後に価格分岐を更新した日時。 -
LastUpdatedBy: string
読取り専用:
true最大長:64価格分岐を最後に更新したユーザー。 -
Line: string
ネゴシエーション明細を識別する番号。
-
LineDescription: string
ネゴシエーション明細の摘要。
-
LineId: number
読取り専用:
trueネゴシエーション明細を一意に識別する値です。 -
links: array Links
タイトル:
Linksリソース・インスタンスに関連付けられたリンク関係。 -
PriceBreakEndDate: string (date)
タイトル:
End Date価格分岐が失効する日付。 -
PriceBreakId: number
タイトル:
Price Break ID読取り専用:true価格分岐を識別する値です。 -
PriceBreakStartDate: string (date)
タイトル:
Start Date価格分岐が有効になる日付。 -
Quantity: number
タイトル:
Quantity価格分岐の数量。 -
ShipToLocation: string
タイトル:
Location最大長:60サプライヤが品目を出荷する事業所の名前です。 -
ShipToLocationId: integer (int64)
タイトル:
Ship-to Location IDサプライヤが品目を出荷する事業所を一意に識別する値です。 -
ShipToOrganization: string
タイトル:
Ship-to Organization最大長:240サプライヤが品目を出荷する在庫組織の名前です。 -
ShipToOrganizationId: integer (int64)
タイトル:
Ship-to Organization IDサプライヤが品目を出荷する在庫組織を一意に識別する値です。 -
TargetPrice: number
タイトル:
Target Price価格分岐のターゲット価格。
ネストされたスキーマ : リンク
タイプ:
ソースを表示
object-
href: string
タイトル:
hyperlink reference関連リソースへのURI。 -
kind: string
タイトル:
kind許可された値:[ "collection", "item", "describe", "other" ]関連リソースの種類。 -
name: string
タイトル:
name関連リソースへのリンクの名前。 -
properties: object properties
-
rel: string
タイトル:
relation許可された値:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]リソース・インスタンスとの関係の名前。 例: self.
例
この例では、価格分岐を作成する方法を説明します。
cURLコマンドの例
次のcURLコマンドを使用して、RESTリソースに対するリクエストを送信します。
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/supplierNegotiations/supplierNegotiationsUniqID/child/lines/LineId/child/priceBreaks"
リクエスト本文の例
次の例には、JSON形式のリクエスト本文のコンテンツが含まれます。 cURLコマンドの「リクエスト・ペイロード」は、リクエスト本文の例の内容に置き換えます。 リクエスト・ペイロードでは、コマンドが作成するレコードで使用される属性値を指定します。
{
"Quantity": 100,
"TargetPrice": 150,
"ShipToOrganizationId": 204,
"ShipToOrganization": "Tall Manufacturing",
"ShipToLocationId": 300100025283979,
"ShipToLocation": "Seattle"
}
レスポンス本文の例
次の例には、レスポンス本文の内容がJSON形式で含まれます:
{
"AuctionHeaderId": 300100179449495,
"LineId": 1,
"PriceBreakId": 1,
"ShipToOrganizationId": 204,
"ShipToOrganization": "Tall Manufacturing",
"ShipToLocationId": 300100025283979,
"ShipToLocation": "Seattle",
"Quantity": 100,
"TargetPrice": 150,
"PriceBreakStartDate": null,
"PriceBreakEndDate": null,
"CreatedBy": "CVBUYER01",
"CreationDate": "2019-05-23T01:46:08+00:00",
"LastUpdatedBy": "CVBUYER01",
"LastUpdateDate": "2019-05-23T01:46:13.644+00:00",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100179449495/child/lines/1/child/priceBreaks/1",
"name": "priceBreaks",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100179449495/child/lines/1/child/priceBreaks/1",
"name": "priceBreaks",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100179449495/child/lines/1",
"name": "lines",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100179449495/child/lines/1/child/priceBreaks/1/lov/ShipToLocationVO",
"name": "ShipToLocationVO",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100179449495/child/lines/1/child/priceBreaks/1/lov/ShipToOrgVO",
"name": "ShipToOrgVO",
"kind": "collection"
}
]
}