Skip to main content

Allocate Cost Entry to Stock Take

POST 

/api/cost-entries/:costEntry/allocate/stock-take/:stockTake

Allocates the cost entry across the items of a stock take, creating one allocation per product using the chosen proration strategy (default quantity_based).

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Fields: strategy (optional proration strategy: straight_line, front_loaded, back_loaded, revenue_based, cost_based, weight_based, volume_based, quantity_based, specific_line, manual), amount (optional - defaults to the cost entry's unallocated amount), allocation_date (defaults to today), period_start and period_end.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type