Skip to main content

Undo Lost Units Receiving Discrepancy

POST 

/api/purchase-order-receiving-discrepancies/:receiving_discrepancy/undo

Undo a line-level receiving discrepancy: the lines expect the units again, the inbound shipments reopen with their expected quantities restored, the shortfall rows are marked undone, the billing settlements it applied are cleared and the journal entry is re-evaluated. A whole-order close is undone with Undo Receiving Discrepancy instead.

Required scope: purchase-orders:write

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

Authentication: Requires Bearer token.

Errors (422): already undone, a whole-order close, or the journal entry was already posted to accounting (code: receiving_discrepancy_already_posted; a reversing entry must be made manually).

Requires permission: purchase_orders.receive

Request​

Responses​

OK

Response Headers
    Content-Type