Get one cost
get
/fscmRestApi/resources/11.13.18.05/itemCosts/{itemCostsUniqID}
Request
Path Parameters
-
itemCostsUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Item Costs resource and used to uniquely identify an instance of Item Costs. The client should not generate the hash key value. Instead, the client should query on the Item Costs collection resource in order to navigate to a specific instance of Item Costs to get the hash key.
Query Parameters
-
dependency: string
This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2
Format: <attr1>=<val1>,<attr2>=<value2> -
expand: string
When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
-
fields: string
This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.
Format: ?fields=Attribute1,Attribute2
Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2 -
links: string
This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>
Example:
self,canonical -
onlyData: boolean
The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : itemCosts-item-response
Type:
Show Source
object-
CostAsOfDate: string
(date-time)
Title:
Cost As-of DateRead Only:trueItem cost as of the date. -
CostBook: string
Title:
Cost BookRead Only:trueMaximum Length:30Cost book name. Use the Manage Cost Books page in the Setup and Maintenance work area to examine and update the value for this attribute. -
CostBookId: integer
(int64)
Title:
Cost Book IDRead Only:trueValue that uniquely identifies the cost book. -
CostChange: number
Title:
Cost ChangeRead Only:trueChange in cost of the inventory item. -
costDetails: array
Details
Title:
DetailsThe perpetual average cost at cost-element level for an inventory item in a cost organization and cost book. -
CostMethod: string
Title:
Cost MethodRead Only:trueMaximum Length:17Cost method of the inventory item. You can use the following values for this attribute: Actual Cost, Perpetual Average, or Standard Cost. -
CostMethodCode: string
Title:
Cost Method CodeRead Only:trueMaximum Length:17Abbreviation that identifies the cost method. -
CostOrganizationCode: string
Title:
Cost Organization CodeRead Only:trueMaximum Length:150Abbreviation that identifies the cost organization. -
CostOrganizationId: integer
(int64)
Title:
Cost Organization IDRead Only:trueValue that uniquely identifies the cost organization. -
CostOrganizationName: string
Title:
Cost Organization NameRead Only:trueMaximum Length:240Cost organization name. Use the Manage Cost Organizations page in the Setup and Maintenance work area to examine and update the value for this attribute. -
CostProfile: string
Title:
Cost ProfileRead Only:trueMaximum Length:30Cost profile of the inventory item. Use the Manage Item Cost Profiles page in the Setup and Maintenance work area to examine and update the value for this attribute. -
CostProfileId: integer
(int64)
Title:
Cost Profile IDRead Only:trueValue that uniquely identifies the cost profile. -
CurrencyCode: string
Title:
Currency CodeRead Only:trueMaximum Length:30Abbreviation that identifies the currency. -
EffectiveEndDate: string
(date)
Title:
Effective End DateRead Only:trueEnd date of the item cost. -
EffectiveStartDate: string
(date)
Title:
Effective Start DateRead Only:trueStart date of the item cost. -
ItemCategory: string
Title:
Item CategoryRead Only:trueMaximum Length:250Category of the inventory item. -
ItemCategoryId: number
Title:
Item Category IDRead Only:trueValue that uniquely identifies the category of the inventory item. -
ItemDescription: string
Title:
Item DescriptionRead Only:trueMaximum Length:240Inventory item description. -
ItemId: integer
(int64)
Title:
Item IDRead Only:trueValue that uniquely identifies the inventory item. -
ItemNumber: string
Title:
Item NumberRead Only:trueMaximum Length:300Inventory item name. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
QuantityOnhand: number
Title:
On-Hand QuantityRead Only:trueOn-hand quantity of the inventory item. -
ReceiptNumber: string
Title:
Receipt NumberRead Only:trueMaximum Length:30Number that identifies the receipt. -
TotalUnitCost: number
Title:
Total Unit CostRead Only:trueTotal unit cost of the inventory item. -
TransactionId: integer
Title:
Transaction IDRead Only:trueValue that uniquely identifies the transaction in costing. -
UOMCode: string
Title:
UOM CodeRead Only:trueMaximum Length:30Abbreviation that identifies the unit of measure. -
UOMName: string
Title:
UOM NameRead Only:trueMaximum Length:25Unit of measure. -
ValuationStructureCode: string
Title:
Valuation Structure CodeRead Only:trueMaximum Length:30Valuation structure for the item cost. Use the Manage Valuation Structures page in the Setup and Maintenance work area to examine and update the value for this attribute. -
ValuationStructureId: integer
(int64)
Title:
Valuation Structure IDRead Only:trueValue that uniquely identifies the valuation structure. -
ValuationUnit: string
Title:
Valuation UnitRead Only:trueMaximum Length:1000Valuation unit for the item cost. Use the Manage Valuation Units page in the Setup and Maintenance work area to examine and update the value for this attribute. -
ValuationUnitId: integer
(int64)
Title:
Valuation Unit IDRead Only:trueValue that uniquely identifies the valuation unit.
Nested Schema : Details
Type:
arrayTitle:
DetailsThe perpetual average cost at cost-element level for an inventory item in a cost organization and cost book.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : itemCosts-costDetails-item-response
Type:
Show Source
object-
CostElement: string
Title:
Cost ElementRead Only:trueMaximum Length:30Cost element mapped to the item. Use the Manage Cost Elements page in the Setup and Maintenance work area to examine and update the value for this attribute. -
CostElementId: integer
(int64)
Title:
Cost Element IDRead Only:trueValue that uniquely identifies the cost element. -
CostElementType: string
Title:
Cost Element TypeRead Only:trueMaximum Length:30Type of the cost element. -
CostPercent: number
Title:
Cost BreakdownRead Only:trueBreakdown percentage of the total cost of the inventory item according to the cost element. -
CurrencyCode: string
Title:
Currency CodeRead Only:trueMaximum Length:30Abbreviation that identifies the currency. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
UnitCostAverage: number
Title:
Unit CostRead Only:trueUnit cost for the cost element.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Links
- costDetails
-
Parameters:
- itemCostsUniqID:
$request.path.itemCostsUniqID
The perpetual average cost at cost-element level for an inventory item in a cost organization and cost book. - itemCostsUniqID:
Examples
This example describes how to get one cost.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -u username:password "https://servername/fscmRestApi/resources/version/itemCosts/itemCostsUniqID"
Example Response Body
The following shows an example of the response body in JSON format.
{
"CostOrganizationId": 300100059775764,
"CostOrganizationName": "ZC1-CO",
"CostOrganizationCode": "ZC1-CO",
"CostBookId": 300100052350619,
"CostBook": "ZDQ-Avg",
"CostProfile": "ZDQ-Avg",
"CostProfileId": 300100052350627,
"ItemCategory": "Uncategorized",
"ItemCategoryId": 1396,
"ItemId": 300100059526506,
"ItemNumber": "ZDQ-Oh-Item",
"ItemDescription": "ZDQ-Oh-Item",
"CostMethodCode": "PERPETUAL_AVERAGE",
"ValuationStructureId": 100000011846089,
"ValuationStructureCode": "ZCST-Inv-Org-Asset",
"ValuationUnitId": 300100061664663,
"ValuationUnit": "ZC1\\-CO-ZCST1",
"ReceiptNumber": null,
"TransactionId": 417468,
"CurrencyCode": "USD",
"UOMName": "Each",
"UOMCode": "Ea",
"TotalUnitCost": 10,
"CostChange": 0,
"CostAsOfDate": "2015-03-23T23:13:17+00:00",
"EffectiveStartDate": null,
"EffectiveEndDate": null,
"QuantityOnhand": 2000000,
"CostMethod": "Perpetual average",
...
}