Replace a bill's landed cost allocations

PUT/api/v1/inventory/landed-cost-allocations/{bill_id}

Set the full list of landed-cost allocations for a bill. Existing allocations are reversed first, then the requested targets are applied to the cost snapshots — idempotent. The allocated total may not exceed the bill amount.

Operation ID: replace_allocations_api_v1_inventory_landed_cost_allocations__bill_id__put·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

bill_idstringrequired

Request body

targetsarray · LandedCostAllocationTargetLandedCostAllocationTarget
5 fields
inventory_order_idstringrequired

Received PO whose goods absorb this cost.

cost_layerLandedCostLayerrequiredLandedCostLayer

Landed-cost layer the amount feeds (freight/duties/handling).

amount_centsintegerrequired

Slice of the bill assigned to this PO, in cents.

allocation_basisAllocationBasisAllocationBasis

How the amount is spread across the PO's variants.

notestring

Responses

200Successful Response

successboolean
messagestring
codestring
dataLandedCostAllocationListResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject