Get one cost

get

/fscmRestApi/resources/11.13.18.05/itemCosts/{itemCostsUniqID}

Request

Path Parameters
  • 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
  • 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>
  • 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).
  • 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
  • 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
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
  • 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".
  • 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 Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : itemCosts-item-response
Type: object
Show Source
  • Title: Cost As-of Date
    Read Only: true
    Item cost as of the date.
  • 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.
  • Title: Cost Book ID
    Read Only: true
    Value that uniquely identifies the cost book.
  • Title: Cost Change
    Read Only: true
    Change in cost of the inventory item.
  • Details
    Title: Details
    The perpetual average cost at cost-element level for an inventory item in a cost organization and cost book.
  • 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.
  • Title: Cost Method Code
    Read Only: true
    Maximum Length: 17
    Abbreviation that identifies the cost method.
  • Title: Cost Organization Code
    Read Only: true
    Maximum Length: 150
    Abbreviation that identifies the cost organization.
  • Title: Cost Organization ID
    Read Only: true
    Value that uniquely identifies the cost organization.
  • 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.
  • 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.
  • Title: Cost Profile ID
    Read Only: true
    Value that uniquely identifies the cost profile.
  • Title: Currency Code
    Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the currency.
  • Title: Effective End Date
    Read Only: true
    End date of the item cost.
  • Title: Effective Start Date
    Read Only: true
    Start date of the item cost.
  • Title: Item Category
    Read Only: true
    Maximum Length: 250
    Category of the inventory item.
  • Title: Item Category ID
    Read Only: true
    Value that uniquely identifies the category of the inventory item.
  • Title: Item Description
    Read Only: true
    Maximum Length: 240
    Inventory item description.
  • Title: Item ID
    Read Only: true
    Value that uniquely identifies the inventory item.
  • Title: Item Number
    Read Only: true
    Maximum Length: 300
    Inventory item name.
  • Links
  • Title: On-Hand Quantity
    Read Only: true
    On-hand quantity of the inventory item.
  • Title: Receipt Number
    Read Only: true
    Maximum Length: 30
    Number that identifies the receipt.
  • Title: Total Unit Cost
    Read Only: true
    Total unit cost of the inventory item.
  • Title: Transaction ID
    Read Only: true
    Value that uniquely identifies the transaction in costing.
  • Title: UOM Code
    Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the unit of measure.
  • Title: UOM Name
    Read Only: true
    Maximum Length: 25
    Unit of measure.
  • 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.
  • Title: Valuation Structure ID
    Read Only: true
    Value that uniquely identifies the valuation structure.
  • 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.
  • 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 : itemCosts-costDetails-item-response
Type: object
Show Source
  • 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.
  • Title: Cost Element ID
    Read Only: true
    Value that uniquely identifies the cost element.
  • Title: Cost Element Type
    Read Only: true
    Maximum Length: 30
    Type of the cost element.
  • Title: Cost Breakdown
    Read Only: true
    Breakdown percentage of the total cost of the inventory item according to the cost element.
  • Title: Currency Code
    Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the currency.
  • Links
  • Title: Unit Cost
    Read Only: true
    Unit cost for the cost element.
Back to Top

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",
  ...
}
Back to Top