Item warehouse standard costs

This object allows you to record different standard costs for different date ranges for item and warehouse combinations.

List item warehouse standard cost objects

get/objects/inventory-control/item-warehouse-standard-cost

Returns a collection with a key, ID, and link for each item warehouse standard cost.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "21",
      • "id": "21",
      • "href": "/objects/inventory-control/item-warehouse-standard-cost/21"
      },
    • {
      • "key": "24",
      • "id": "24",
      • "href": "/objects/inventory-control/item-warehouse-standard-cost/24"
      }
    ],
  • "ia::meta": {
    • "totalCount": 2,
    • "start": 1,
    • "pageSize": 100
    }
}

Create an item warehouse standard cost object

post/objects/inventory-control/item-warehouse-standard-cost

Creates a new item warehouse standard cost object.

SecurityOAuth2
Request
Request Body schema: application/json
effectiveStartDate
required
string <date> <= 10 characters

Set the date at which the cost will be effective. The cost is used in the journal entries to debit Costs of Goods Sold and credit Inventory. Any postings before the first effective start date will use a cost of zero. The cost for the last effective start date is used for any postings after that date until a subsequent effective start date is entered.

Example: "2021-01-23"
standardCost
required
string <decimal-precision-10> <= 15 characters >= 0

Provide the standard cost that will be effective from effective date.

Example: "122"
object

Provide the Item warehouse information

Example: {"itemWarehouse":{"key":"649"}}
key
required
string <= 8 characters

System generated Item Warehouse Inventory Key

Example: "13"
id
string <= 8 characters

System generated Item Warehouse Inventory ID

Example: "13"
Responses
201

Created

400

Bad Request

Request samples
application/json
{
  • "effectiveStartDate": "2021-01-23",
  • "standardCost": "21",
  • "itemWarehouse": {
    • "key": "13"
    }
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "23",
    • "id": "23",
    • "href": "/objects/inventory-control/item-warehouse-standard-cost/23"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Get an item warehouse standard cost object

get/objects/inventory-control/item-warehouse-standard-cost/{key}

Returns detailed information for a specified item warehouse standard cost object.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the item warehouse standard cost object.

Example: 65
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "23",
    • "id": "23",
    • "effectiveStartDate": "2021-01-23",
    • "standardCost": "122",
    • "itemWarehouse": {
      • "key": "13",
      • "id": "13",
      • "itemId": "LapTop Kit 1",
      • "warehouseId": "WS001",
      • "href": "/objects/inventory-control/item-warehouse-inventory/13"
      },
    • "href": "/objects/inventory-control/item-warehouse-standard-cost/23",
    • "audit": {
      • "createdDateTime": "2021-05-07T21:30:03Z",
      • "modifiedDateTime": "2021-05-07T21:30:03Z",
      • "createdBy": "13",
      • "modifiedBy": "13"
      }
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Update an item warehouse standard cost object

patch/objects/inventory-control/item-warehouse-standard-cost/{key}

Updates an existing item warehouse standard cost object by setting field values. Any fields not provided remain unchanged.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the item warehouse standard cost object.

Example: 65
Request Body schema: application/json
effectiveStartDate
string <date> <= 10 characters

Set the date at which the cost will be effective. The cost is used in the journal entries to debit Costs of Goods Sold and credit Inventory. Any postings before the first effective start date will use a cost of zero. The cost for the last effective start date is used for any postings after that date until a subsequent effective start date is entered.

Example: "2021-01-23"
standardCost
string <decimal-precision-10> <= 15 characters >= 0

Provide the standard cost that will be effective from effective date.

Example: "122"
object

Provide the Item warehouse information

key
string <= 8 characters

System generated Item Warehouse Inventory Key

Example: "13"
id
string <= 8 characters

System generated Item Warehouse Inventory ID

Example: "13"
Responses
200

OK

400

Bad Request

Request samples
application/json
{
  • "standardCost": "125"
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "23",
    • "id": "23",
    • "href": "/objects/inventory-control/item-warehouse-standard-cost/23"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Delete an item warehouse standard cost object

delete/objects/inventory-control/item-warehouse-standard-cost/{key}

Deletes an item warehouse standard cost object.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the item warehouse standard cost object.

Example: 65
Responses
204

No Content

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "ia::error": {
      • "code": "invalidRequest",
      • "message": "A POST request requires a payload",
      • "errorId": "REST-1028",
      • "additionalInfo": {
        },
      • "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
      }
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 0,
    • "totalError": 1
    }
}

Query item warehouse standard costs

post/services/core/query

Use the query service to find item warehouse standard costs that meet certain criteria and to specify the properties that are returned.

SecurityOAuth2
Responses
200

OK

Request samples