DELETE
Undo a debt adjustment
Company space Cannot be undone For: Buyer, Accountant · Permission: purchase_debt_adjustments.delete Conditions
  • The purchase must be a credit purchase whose status is pending, completed or closed.
  • Only the latest adjustment (by adjusted_at, then creation time) can be deleted; an older one is refused.
What else happens
  • Removes the adjustment: it disappears from the list and can no longer be viewed.
  • Recomputes the purchase’s amount_debt_adjusted from the remaining adjustments, then recalculates its amount paid, remaining amount and payment status; the amount owed goes back up.
Part of Pay suppliers and adjust debt.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

purchase
string
required

Identifier of the purchase (27-character KSUID).

debt_adjustment
string
required

Identifier of the debt adjustment, which must belong to the purchase in the path (27-character KSUID string).

Query Parameters

response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none

Response

204

No Content (response mode none).