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:
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.
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(required):
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(required):
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 Date
Read Only:true
Item cost as of the date. -
CostBook: string
Title:
Cost Book
Read Only:true
Maximum Length:30
Cost 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 ID
Read Only:true
Value that uniquely identifies the cost book. -
CostChange: number
Title:
Cost Change
Read Only:true
Change in cost of the inventory item. -
costDetails: array
Details
Title:
Details
The perpetual average cost at cost-element level for an inventory item in a cost organization and cost book. -
CostMethod: string
Title:
Cost Method
Read Only:true
Maximum Length:17
Cost 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 Code
Read Only:true
Maximum Length:17
Abbreviation that identifies the cost method. -
CostOrganizationCode: string
Title:
Cost Organization Code
Read Only:true
Maximum Length:150
Abbreviation that identifies the cost organization. -
CostOrganizationId: integer
(int64)
Title:
Cost Organization ID
Read Only:true
Value that uniquely identifies the cost organization. -
CostOrganizationName: string
Title:
Cost Organization Name
Read Only:true
Maximum Length:240
Cost 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 Profile
Read Only:true
Maximum Length:30
Cost 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 ID
Read Only:true
Value that uniquely identifies the cost profile. -
CurrencyCode: string
Title:
Currency Code
Read Only:true
Maximum Length:30
Abbreviation that identifies the currency. -
EffectiveEndDate: string
(date)
Title:
Effective End Date
Read Only:true
End date of the item cost. -
EffectiveStartDate: string
(date)
Title:
Effective Start Date
Read Only:true
Start date of the item cost. -
ItemCategory: string
Title:
Item Category
Read Only:true
Maximum Length:250
Category of the inventory item. -
ItemCategoryId: number
Title:
Item Category ID
Read Only:true
Value that uniquely identifies the category of the inventory item. -
ItemDescription: string
Title:
Item Description
Read Only:true
Maximum Length:240
Inventory item description. -
ItemId: integer
(int64)
Title:
Item ID
Read Only:true
Value that uniquely identifies the inventory item. -
ItemNumber: string
Title:
Item Number
Read Only:true
Maximum Length:300
Inventory item name. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
QuantityOnhand: number
Title:
On-Hand Quantity
Read Only:true
On-hand quantity of the inventory item. -
ReceiptNumber: string
Title:
Receipt Number
Read Only:true
Maximum Length:30
Number that identifies the receipt. -
TotalUnitCost: number
Title:
Total Unit Cost
Read Only:true
Total unit cost of the inventory item. -
TransactionId: integer
Title:
Transaction ID
Read Only:true
Value that uniquely identifies the transaction in costing. -
UOMCode: string
Title:
UOM Code
Read Only:true
Maximum Length:30
Abbreviation that identifies the unit of measure. -
UOMName: string
Title:
UOM Name
Read Only:true
Maximum Length:25
Unit of measure. -
ValuationStructureCode: string
Title:
Valuation Structure Code
Read Only:true
Maximum Length:30
Valuation 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 ID
Read Only:true
Value that uniquely identifies the valuation structure. -
ValuationUnit: string
Title:
Valuation Unit
Read Only:true
Maximum Length:1000
Valuation 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 ID
Read Only:true
Value that uniquely identifies the valuation unit.
Nested Schema : Details
Type:
array
Title:
Details
The perpetual average cost at cost-element level for an inventory item in a cost organization and cost book.
Show Source
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : itemCosts-costDetails-item-response
Type:
Show Source
object
-
CostElement: string
Title:
Cost Element
Read Only:true
Maximum Length:30
Cost 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 ID
Read Only:true
Value that uniquely identifies the cost element. -
CostElementType: string
Title:
Cost Element Type
Read Only:true
Maximum Length:30
Type of the cost element. -
CostPercent: number
Title:
Cost Breakdown
Read Only:true
Breakdown percentage of the total cost of the inventory item according to the cost element. -
CurrencyCode: string
Title:
Currency Code
Read Only:true
Maximum Length:30
Abbreviation that identifies the currency. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
UnitCostAverage: number
Title:
Unit Cost
Read Only:true
Unit cost for the cost element.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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", ... }