1行取得
get
/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/{InterfaceHeaderId}/child/lines/{InterfaceLineId}
リクエスト
パス・パラメータ
- InterfaceHeaderId(required): integer(int64)
このパラメータの値は、リソース品目を一意に識別するために使用されるキーのハッシュである可能性があります。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントはフィルタを使用してコレクション・リソースを問い合せ、特定のリソース品目にナビゲートする必要があります。 たとえば: products?q=InventoryItemId=
- InterfaceLineId(required): integer(int64)
このパラメータの値は、リソース品目を一意に識別するために使用されるキーのハッシュである可能性があります。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントはフィルタを使用してコレクション・リソースを問い合せ、特定のリソース品目にナビゲートする必要があります。 たとえば: products?q=InventoryItemId=
問合せパラメータ
- dependency: string
このパラメータは、レスポンスの生成後に設定およびロールバックされるフィールドである依存関係を指定します。 通常、これらは属性変更の影響をプレビューするために使用されます。 このパラメータで指定されたフィールドは、常に問題のリソース・インスタンスで設定されます。 子リソース・コレクションがリクエストされ、パラメータが設定されると、リソース・コレクション・ペイロードを生成する前に、親リソース・インスタンスにフィールドが設定されます。 この問合せパラメータの値は、依存性フィールドのセットです。 例: dependency=ProductId=2
フォーマット: <attr1>=<val1>,<attr2>=<value2> - expand: string
このパラメータを指定すると、指定した子がリソース・ペイロードに含まれます(リンクのみでなく)。 この問合せパラメータの値は"all"または""です。 カンマをセパレータとして使用して、複数の子を指定できます。 例: ?expand=Employees,Localizations. ネストされた子は、"Child.NestedChild"の書式に従って指定することもできます(例): ?expand=Employees.Managers). ネストされた子が指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?expand=Employees.Managers"は"?expand=Employees、Employees.Managers"と同じです(これにより、従業員とマネージャが展開されます)。
- fields: string
このパラメータは、リソース・フィールドをフィルタします。 指定されたフィールドのみが返されます。つまり、フィールドが指定されていない場合、フィールドは返されません(リンクのみを取得する場合に便利です)。 間接子リソースが指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?fields=Employees.Managers:Empname"は"?fields=;Employees:;Employees.Managers:Empname" (これはマネージャの"Empname"フィールドのみを返す)と同じです。この問合せパラメータの値は、リソース・フィールドのリストです。 属性は直接にすることができます(例): 従業員または間接(例): Employees.Managers) child. 拡張問合せパラメータと組み合せることはできません。 両方を指定した場合、フィールドのみが考慮されます。
フォーマット : ?fields=Attribute1,Attribute2
子リソースのフィールドの書式 : ?fields=Accessor1:Attribute1,Attribute2 - links: string
このパラメータは、単一のリソースまたはリソース・コレクションへのアクセス中に特定のリンクのみを表示するために使用できます。 パラメータ値書式は、次のカンマ区切りリストです : <link_relation>
例:
self,canonical
- onlyData: boolean
データのみを含めるために(リンク・セクションなしなど)、リソース品目ペイロードがフィルタ処理されます。
ヘッダー・パラメータ
- Metadata-Context:
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version:
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
この操作にはリクエスト本文がありません。
トップに戻るレスポンス
サポートされているメディア・タイプ
- application/json
デフォルトのレスポンス
次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
- Metadata-Context(required):
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version(required):
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
ルート・スキーマ : externalPurchasePricesRequests-lines-item-response
タイプ:
ソースを表示
object
-
Action: string
最大長:
25
明細に対して実行する処理。 有効な値は、CREATE、UPDATEまたはCANCELです。 これは必須属性です。 -
AdjustedPrice: number
修正後の単価の値です。
-
AdjustmentPercentage: number
基準価格が調整される値。
-
BatchId: number
外部購買価格リクエスト・バッチを一意に識別する値。
-
ErrorFlag: boolean
最大長:
1
デフォルト値:false
次のいずれかの値が含まれます: trueまたはfalse。 trueの場合、外部購買価格リクエストにエラーが存在します。 falseの場合、エラーは存在せず、外部購買価格は正常にインポートされます。 この属性にはデフォルト値がありません。 -
InterfaceHeaderKey: string
最大長:
30
外部購買価格リクエストを一意に識別する番号です。 -
InterfaceLineId: integer (int64)
リクエスト明細を一意に識別する値。
-
InterfaceLineKey: string
最大長:
30
リクエスト明細を一意に識別する番号。 -
InventoryItemId: integer (int64)
品目を一意に識別する値。
-
ItemDescription: string
最大長:
240
品目の摘要。 -
ItemNumber: string
最大長:
300
品目を一意に識別する番号です。 -
LineNumber: integer (int64)
外部購買価格明細を一意に識別する番号です。
-
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
LoadRequestId: number
外部購買価格リクエスト・データをインタフェース表にロードしたプロセスを一意に識別する値。
-
ManufacturerPartNumber: string
最大長:
700
製造業者部品を一意に識別する番号。 -
ManufacturerTradingPartnerItemId: integer (int64)
製造業者部品を一意に識別する値。
-
Price: number
修正前の単価の値です。
-
PriceEndDate: string (date)
価格が有効になる日付。
-
PriceStartDate: string (date)
価格が無効になる日付。
-
PurchasingCategoryCode: string
最大長:
820
製造業者部品の購買カテゴリを識別する略称です。 -
PurchasingCategoryId: integer (int64)
購買カテゴリを一意に識別する値。
-
SourcePurchasingCategory: string
最大長:
700
製造業者の購買カテゴリの名前。 -
SourceReferenceId: string
最大長:
30
ソース・システムの外部購買価格を一意に識別する値。 -
SourceUnitOfMeasure: string
最大長:
25
ソース単位の名前。 -
SourceUOMQuantity: number
ソース単位の数量です。
-
UnitOfMeasure: string
タイトル:
UOM Name
最大長:25
単位の名前。 -
UnitOfMeasureCode: string
最大長:
3
単位を識別する略語。 -
VendorItemId: integer (int64)
サプライヤ部品を一意に識別する値です。
-
VendorPartNumber: string
最大長:
300
サプライヤ部品を一意に識別する番号。
ネストされたスキーマ : リンク
タイプ:
ソースを表示
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.
例
この例では、1つのリクエスト行を取得する方法を説明します。
cURLコマンドの例
次のcURLコマンドを使用して、RESTリソースに対するリクエストを送信します。
curl -u username:password server:port/fscmRestApi/resources/version/externalPurchasePricesRequests/InterfaceHeaderId/child/lines/InterfaceLinerId
レスポンス本文の例
次の例には、レスポンス本文の内容がJSON形式で含まれます:
"{ ""items"": [ { ""InterfaceLineId"": 300100556739608, ""InterfaceLineKey"": ""300100556739608"", ""InterfaceHeaderKey"": ""300100556739393"", ""SourceReferenceId"": ""1000000002"", ""LineNumber"": null, ""Action"": ""CREATE"", ""VendorPartNumber"": null, ""VendorItemId"": null, ""ItemNumber"": null, ""InventoryItemId"": null, ""ManufacturerPartNumber"": ""MPN-1005"", ""ManufacturerTradingPartnerItemId"": null, ""Price"": 50, ""AdjustmentPercentage"": 20, ""AdjustedPrice"": 40, ""SourceUnitOfMeasure"": ""Each"", ""SourceUOMQuantity"": 1, ""UnitOfMeasure"": null, ""UnitOfMeasureCode"": null, ""ItemDescription"": ""Methotrexate 7.5 mg"", ""PurchasingCategoryId"": null, ""PurchasingCategoryCode"": null, ""SourcePurchasingCategory"": null, ""PriceStartDate"": ""2021-01-01"", ""PriceEndDate"": ""2021-12-31"", ""ErrorFlag"": false, ""BatchId"": null, ""LoadRequestId"": null, ""links"": [ { ""rel"": ""self"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393/child/lines/300100556739608"", ""name"": ""lines"", ""kind"": ""item"", ""properties"": { ""changeIndicator"": ""ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"" } }, { ""rel"": ""canonical"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393/child/lines/300100556739608"", ""name"": ""lines"", ""kind"": ""item"" }, { ""rel"": ""parent"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393"", ""name"": ""externalPurchasePricesRequests"", ""kind"": ""item"" } ] }, { ""InterfaceLineId"": 300100556739605, ""InterfaceLineKey"": ""300100556739605"", ""InterfaceHeaderKey"": ""300100556739393"", ""SourceReferenceId"": ""1000000002"", ""LineNumber"": null, ""Action"": ""CREATE"", ""VendorPartNumber"": null, ""VendorItemId"": null, ""ItemNumber"": null, ""InventoryItemId"": null, ""ManufacturerPartNumber"": ""MPN-1005"", ""ManufacturerTradingPartnerItemId"": null, ""Price"": 62.5, ""AdjustmentPercentage"": 20, ""AdjustedPrice"": 50, ""SourceUnitOfMeasure"": ""Box"", ""SourceUOMQuantity"": 20, ""UnitOfMeasure"": null, ""UnitOfMeasureCode"": null, ""ItemDescription"": ""Methotrexate 7.5 mg"", ""PurchasingCategoryId"": null, ""PurchasingCategoryCode"": null, ""SourcePurchasingCategory"": null, ""PriceStartDate"": ""2020-12-31"", ""PriceEndDate"": ""2021-12-30"", ""ErrorFlag"": false, ""BatchId"": null, ""LoadRequestId"": null, ""links"": [ { ""rel"": ""self"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393/child/lines/300100556739605"", ""name"": ""lines"", ""kind"": ""item"", ""properties"": { ""changeIndicator"": ""ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"" } }, { ""rel"": ""canonical"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393/child/lines/300100556739605"", ""name"": ""lines"", ""kind"": ""item"" }, { ""rel"": ""parent"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393"", ""name"": ""externalPurchasePricesRequests"", ""kind"": ""item"" } ] } ], ""count"": 2, ""hasMore"": false, ""limit"": 25, ""offset"": 0, ""links"": [ { ""rel"": ""self"", ""href"": ""server:port/fscmRestApi/resources/11.13.18.05/externalPurchasePricesRequests/300100556739393/child/lines"", ""name"": ""lines"", ""kind"": ""collection"" } ] } "