検索語句を1つ作成
post
/fscmRestApi/resources/11.13.18.05/shoppingSearches
リクエスト
ヘッダー・パラメータ
- Metadata-Context:
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version:
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
サポートされているメディア・タイプ
- application/json
ルート・スキーマ : スキーマ
タイプ:
ソースを表示
object
-
brandFilters: array Brand Filters
タイトル:
Brand Filters
ブランド・フィルタ・リソースは、検索結果の品目を個別のブランドにフィルタします。 -
RequisitioningBUId(required): integer (int64)
検索が実行された購買依頼発行BUを一意に識別する値。
-
resultItems: array Result Items
タイトル:
Result Items
結果品目リソースは検索結果を管理します。 -
resultPunchoutCatalogs: array Result Punchout Catalogs
タイトル:
Result Punchout Catalogs
結果パンチアウト・カタログ・リソースは、検索結果からのパンチアウト・カタログを管理します。 -
SearchPhraseId: integer (int64)
検索語句を一意に識別する値。
-
SearchPhraseTerms(required): string
最大長:
700
検索に使用できる文字の文字列。
ネストされたスキーマ : ブランド・フィルタ
タイプ:
array
タイトル:
Brand Filters
ブランド・フィルタ・リソースは、検索結果の品目を個別のブランドにフィルタします。
ソースを表示
ネストされたスキーマ : 結果パンチアウト・カタログ
タイプ:
array
タイトル:
Result Punchout Catalogs
結果パンチアウト・カタログ・リソースは、検索結果からのパンチアウト・カタログを管理します。
ソースを表示
ネストされたスキーマ : shoppingSearches-brandFilters-item-post-request
タイプ:
ソースを表示
object
-
TotalItems: string
特定の製造元からの品目の合計数。
ネストされたスキーマ : shoppingSearches-resultItems-item-post-request
タイプ:
ソースを表示
object
-
Amount: number
タイトル:
Amount
機能通貨での品目の金額です。 -
CurrencyAmount: number
タイトル:
Amount
品目の金額(外貨)。 -
ThumbnailImage: string
最大長:
700
品目のサムネイル・イメージ。
レスポンス
サポートされているメディア・タイプ
- application/json
デフォルトのレスポンス
次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
- Metadata-Context(required):
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version(required):
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
ルート・スキーマ : shoppingSearches-item-response
タイプ:
ソースを表示
object
-
brandFilters: array Brand Filters
タイトル:
Brand Filters
ブランド・フィルタ・リソースは、検索結果の品目を個別のブランドにフィルタします。 -
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
RequisitioningBUId: integer (int64)
検索が実行された購買依頼発行BUを一意に識別する値。
-
resultItems: array Result Items
タイトル:
Result Items
結果品目リソースは検索結果を管理します。 -
resultPunchoutCatalogs: array Result Punchout Catalogs
タイトル:
Result Punchout Catalogs
結果パンチアウト・カタログ・リソースは、検索結果からのパンチアウト・カタログを管理します。 -
SearchDate: string (date)
読取り専用:
true
検索が実行された日付。 -
SearchPhraseId: integer (int64)
検索語句を一意に識別する値。
-
SearchPhraseTerms: string
最大長:
700
検索に使用できる文字の文字列。
ネストされたスキーマ : ブランド・フィルタ
タイプ:
array
タイトル:
Brand Filters
ブランド・フィルタ・リソースは、検索結果の品目を個別のブランドにフィルタします。
ソースを表示
ネストされたスキーマ : 結果パンチアウト・カタログ
タイプ:
array
タイトル:
Result Punchout Catalogs
結果パンチアウト・カタログ・リソースは、検索結果からのパンチアウト・カタログを管理します。
ソースを表示
ネストされたスキーマ : shoppingSearches-brandFilters-item-response
タイプ:
ソースを表示
object
-
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
Manufacturer: string
読取り専用:
true
最大長:255
品目を製造するパーティの名前です。 -
TotalItems: string
特定の製造元からの品目の合計数。
ネストされたスキーマ : リンク
タイプ:
ソースを表示
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.
ネストされたスキーマ : shoppingSearches-resultItems-item-response
タイプ:
ソースを表示
object
-
Amount: number
タイトル:
Amount
機能通貨での品目の金額です。 -
CatalogItemKey: integer (int64)
読取り専用:
true
カタログ品目を一意に識別する値。 -
CategoryName: string
読取り専用:
true
最大長:250
品目を分類するカテゴリの名前です。 -
CurrencyAmount: number
タイトル:
Amount
品目の金額(外貨)。 -
CurrencyCode: string
読取り専用:
true
最大長:32
検索結果に表示される品目の通貨を識別する略称です。 -
CurrencyUnitPrice: number
タイトル:
Price
読取り専用:true
外国通貨での各ユニットの品目の価格。 -
FormattedAmount: string
読取り専用:
true
通貨に対してフォーマットされた金額です。 -
FormattedCurrencyAmount: string
読取り専用:
true
通貨に対して書式設定された通貨金額。 -
FormattedCurrencyUnitPrice: string
読取り専用:
true
通貨に対して書式設定された各単位の品目の通貨価格の値。 -
FormattedUnitPrice: string
読取り専用:
true
通貨に対して書式設定された各単位の品目の価格。 -
FunctionalCurrencyCode: string
読取り専用:
true
最大長:32
機能通貨を識別する略称です。 -
FunctionalCurrencySymbol: string
読取り専用:
true
機能通貨を識別する記号。 -
ItemDescription: string
タイトル:
Description
読取り専用:true
最大長:960
検索結果に表示される品目の説明。 -
ItemId: integer (int64)
読取り専用:
true
品目を一意に識別する値。 -
ItemKey: string
読取り専用:
true
最大長:88
品目を一意に識別する値。 これは、品目の検索時にアプリケーションで生成されるキーです。 品目識別子、ソース文書明細識別子、言語およびパンチアウト品目識別子の組合せです。 -
ItemSource: string
読取り専用:
true
最大長:255
デフォルト値:CATALOG
品目のソースを識別する値です。 このソースは、カタログ、カタログ外、クイック作成、パンチアウト、購買依頼インポートまたはwebサービスです。 -
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
Manufacturer: string
タイトル:
Brand
読取り専用:true
最大長:700
品目を製造するパーティの名前です。 -
OrderTypeLookupCode: string
タイトル:
Line Type
読取り専用:true
最大長:25
オーダー・タイプの参照値を識別する略称です。 受け入れられる値のリストには、固定価格と数量が含まれます。 -
PunchoutCatalogId: integer (int64)
読取り専用:
true
パンチアウト・カタログを一意に識別する値。 -
PunchoutItemId: integer (int64)
読取り専用:
true
パンチアウト品目を一意に識別する値。 -
ThumbnailImage: string
最大長:
700
品目のサムネイル・イメージ。 -
UnitOfMeasure: string
読取り専用:
true
品目が使用する単位。 -
UnitPrice: number
タイトル:
Price
読取り専用:true
機能通貨での各ユニットの品目の価格。
ネストされたスキーマ : shoppingSearches-resultPunchoutCatalogs-item-response
タイプ:
ソースを表示
object
-
CatalogId: integer (int64)
読取り専用:
true
パンチアウト・カタログを一意に識別する値。 -
CatalogName: string
読取り専用:
true
最大長:30
検索結果に表示されるパンチアウト・カタログの名前。 -
ImageURL: string
読取り専用:
true
品目のイメージのURL (Uniform Resource Locator)。 -
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
PunchoutURL: string
読取り専用:
true
パンチアウト・カタログのイメージのURL (Uniform Resource Locator)。
リンク
- brandFilters
-
パラメータ:
- SearchPhraseId:
$request.path.SearchPhraseId
ブランド・フィルタ・リソースは、検索結果の品目を個別のブランドにフィルタします。 - SearchPhraseId:
- resultItems
-
パラメータ:
- SearchPhraseId:
$request.path.SearchPhraseId
結果品目リソースは検索結果を管理します。 - SearchPhraseId:
- resultPunchoutCatalogs
-
操作: /fscmRestApi/resources/11.13.18.05/shoppingSearches/{SearchPhraseId}/child/resultPunchoutCatalogsパラメータ:
- SearchPhraseId:
$request.path.SearchPhraseId
結果パンチアウト・カタログ・リソースは、検索結果からのパンチアウト・カタログを管理します。 - SearchPhraseId:
例
この例では、1つの検索語句を作成する方法を説明します。
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/shoppingSearches"
リクエスト本文の例
次の例には、JSON形式のリクエスト本文のコンテンツが含まれます。 cURLコマンドの「リクエスト・ペイロード」は、リクエスト本文の例の内容に置き換えます。 リクエスト・ペイロードでは、コマンドが作成するレコードで使用される属性値を指定します。
{ "SearchPhraseTerms": "1002258" }
レスポンス本文の例
次の例には、レスポンス本文の内容がJSON形式で含まれます:
{ "SearchPhraseId":300100124738549, "SearchDate":"2018-03-16", "SearchPhraseTerms":"1002258", "RequisitioningBUId":204, "links":[ { "rel":"self", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124738549", "name":"shoppingSearches", "kind":"item", "properties":{ "changeIndicator":"ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel":"canonical", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124738549", "name":"shoppingSearches", "kind":"item" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124738549/child/resultItems", "name":"resultItems", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124738549/child/brandFilters", "name":"brandFilters", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124738549/child/resultPunchoutCatalogs", "name":"resultPunchoutCatalogs", "kind":"collection" } ] }
例2 リクエスト本文
次の例では、検索結果から結果品目を取得するためのリクエスト本文のコンテンツをJSON形式で含めます。 リクエスト・ペイロードでは、コマンドが作成するレコードで使用される属性値を指定します。
{ "SearchPhraseTerms":"Laptop Desc" }
例2 レスポンス本文
次の例には、レスポンス本文の内容がJSON形式で含まれます:
{ "SearchPhraseId":300100124920663, "SearchDate":"2018-03-16", "SearchPhraseTerms":"Laptop Desc", "RequisitioningBUId":204, "links":[ { "rel":"self", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920663", "name":"shoppingSearches", "kind":"item", "properties":{ "changeIndicator":"ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel":"canonical", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920663", "name":"shoppingSearches", "kind":"item" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920663/child/resultItems", "name":"resultItems", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920663/child/brandFilters", "name":"brandFilters", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920663/child/resultPunchoutCatalogs", "name":"resultPunchoutCatalogs", "kind":"collection" } ] }
例3 リクエスト本文
次の例では、検索結果からパンチアウト・カタログを取得するためのJSON形式のリクエスト本文のコンテンツが含まれています。 リクエスト・ペイロードでは、コマンドが作成するレコードで使用される属性値を指定します。
{ "SearchPhraseTerms":"Rest_Punchout" }
例3 レスポンス本文
次の例には、レスポンス本文の内容がJSON形式で含まれます:
{ "SearchPhraseId":300100124920640, "SearchDate":"2018-03-16", "SearchPhraseTerms":"Rest_Punchout", "RequisitioningBUId":204, "links":[ { "rel":"self", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920640", "name":"shoppingSearches", "kind":"item", "properties":{ "changeIndicator":"ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel":"canonical", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920640", "name":"shoppingSearches", "kind":"item" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920640/child/resultItems", "name":"resultItems", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920640/child/brandFilters", "name":"brandFilters", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920640/child/resultPunchoutCatalogs", "name":"resultPunchoutCatalogs", "kind":"collection" } ] }
例4 リクエスト本文
次の例では、JSON形式のリクエスト本文のコンテンツを含めて、検索結果の品目を個別のブランドに取得します。 リクエスト・ペイロードでは、コマンドが作成するレコードで使用される属性値を指定します。
{ "SearchPhraseTerms":"Laptop" }
例4 レスポンス本文
次の例には、レスポンス本文の内容がJSON形式で含まれます:
{ "SearchPhraseId":300100124920664, "SearchDate":"2018-03-16", "SearchPhraseTerms":"Laptop", "RequisitioningBUId":204, "links":[ { "rel":"self", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920664", "name":"shoppingSearches", "kind":"item", "properties":{ "changeIndicator":"ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel":"canonical", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920664", "name":"shoppingSearches", "kind":"item" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920664/child/resultItems", "name":"resultItems", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920664/child/brandFilters", "name":"brandFilters", "kind":"collection" }, { "rel":"child", "href":"https://servername/fscmRestApi/resources/version/shoppingSearches/300100124920664/child/resultPunchoutCatalogs", "name":"resultPunchoutCatalogs", "kind":"collection" } ] }