Skip to main content

Unsettle PO Line Billing

DELETE 

/api/purchase-order-line-billing-settlements/:purchase_order_line

Reverse a prior billing settlement on a PO line, clearing the SAP EREKZ "final invoice" flag. The line reverts to normal quantity/credit reconciliation, so it may flip back to partially-invoiced if it was short-billed.

Required scope: purchase-orders:write

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

Authentication: Requires Bearer token. Requires the purchase_orders.update permission.

Clears billing_settled_at, billing_settled_reason, and billing_settled_by on the line, then re-derives the parent purchase order's invoice_status.

Validation errors (422, DomainException): returned when the line is not currently billing-settled.

Returns the updated PurchaseOrderLine billing-settlement view (eager-loaded with billingSettledBy and purchaseOrder).

Request

Responses

OK