Skip to main content

Allocate Cost Entry to Purchase Order

POST 

/api/cost-entries/:costEntry/allocate/purchase-order/:purchaseOrder

Allocates the cost entry across the lines of a purchase order, creating one allocation per product using the chosen proration strategy (default cost_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