Skip to main content
POST
Correct a bill's landed cost

Authorizations

Authorization
string
header
required

API key issued per entity via Settings > Developers > API Keys. Each key carries scopes (e.g. orders:read, products:write). Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.

Headers

Idempotency-Key
string

Optional idempotency key (UUID). Re-POST with same key returns cached 200 without re-processing.

Path Parameters

id
string<uuid>
required

Body

application/json
items
object[]
required

The full desired line set for the bill, carrying the corrected landed amount (landed lines may use landed_alloc_basis 'manual' with landed_manual_shares, as on create).

landed_cost_receipt_txn_ids
string<uuid>[]

Replaces the bill's receipt set; when absent the stored set is kept and re-judged.

allow_duplicate_override
boolean

Overrides a likely duplicate landed charge, with duplicate_override_reason (see createVendorBillV1); audited.

duplicate_override_reason
string

Response

Landed cost corrected; vendor credit issued. The body carries landed_reversal (the reversal's split between inventory and cost of goods sold at the moment it ran), landed_allocation (the re-allocation and the basis each landed line used) and landed_receipt_warnings (every other landed bill on the receipts). The cost figures (the split, the portions, allocated_on_these_receipts) follow the margin permission, so an API key receives the rest without them.

data
object