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.
purchase-orders:writeGrant 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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.