Skip to main content

Unlink Inbound Shipment from Invoice

DELETE 

/api/purchase-invoices/:purchaseInvoice/inbound-shipments/:inboundShipment

Remove the link between this purchase invoice and an inbound shipment, reversing Link Inbound Shipment to Invoice.

Required scope: purchase-orders:write

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

The shipment, its lines, and its receipts are not modified — only the association is removed. Line-level pairings to this invoice's lines are cleared, and a derived due date falls back to the purchase order's own dates. A manually set due date is left untouched, and the shipment's links to any other invoices are not affected.

The invoice remembers the shipment it was unlinked from: the shipment matcher (automatic matching and Auto-Link Inbound Shipments) will never re-link it on its own, and it is reported as partial with the reason "Unlinked from this bill earlier". Link it again by hand to undo.

Returns 422 when the shipment is not linked to this invoice.

Authentication: Requires Bearer token.

Request

Responses

OK