Asset Value Correction POST

URI

https://{DATACENTER}.brightpearlconnect.com/public-api/{ACCOUNT}
/warehouse-service/warehouse/{ID}/asset-value-correction

Refer to our documentation on URI syntax for more information on how to construct URIs.

Description

Allows you to correct the value of stock received in a batch from a purchase order. The typical usage scenario is when stock has been received but the price the stock is received at is not the same as the value on the purchase order.

Note: You can only correct unallocated stock.

Example 1

Here we are making an asset value correction in warehouse 2, changing the cost price of all unallocated products with ID 1007 and current price £15 GBP on goods-in batch with ID 1 to a new price of £12 GBP.

Request URI

/warehouse/2/asset-value-correction

Request body

{
	"batchId": 1,
	"productId": 1007,
	"currentCost": {
		"currency": "GBP",
		"value": 15
	},
	"newCost": {
		"currency": "GBP",
		"value": 12
	},
	"reason": "We received a discount"
}

Response

{
}

Example 2

Here we are making the same correction as in the previous example, but we are also using the optional locationId value. You should use this parameter if a batch of a received product was split between multiple locations, but it is optional otherwise.

Request URI

/warehouse/2/asset-value-correction

Request body

{
	"batchId": 1,
	"locationId": 12,
	"productId": 1007,
	"currentCost": {
		"currency": "GBP",
		"value": 15
	},
	"newCost": {
		"currency": "GBP",
		"value": 12
	},
	"reason": "We received a discount"
}

Response

{
}