Skip to main content

Allocate Cost Entry by Proration

POST 

/api/cost-entries/:costEntry/allocate/proration

Allocates a cost entry across a custom list of products, splitting the amount by the chosen proration strategy.

Required scope: purchase-orders:write

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

Required fields: strategy (straight_line, front_loaded, back_loaded, revenue_based, cost_based, weight_based, volume_based, quantity_based, specific_line, manual) and items (array of {product_id, quantity, revenue, cost, weight, volume} - the strategy determines which measure drives each product's share).

Optional: amount (defaults to the entry's unallocated amount), allocation_date (defaults to today), period_start, period_end.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type