Skip to main content

Update Vendor Credit

PUT 

/api/vendor-credits/:vendor_credit

Update an existing vendor credit. Accepts the same fields as Create.

Currency rules:

  • currency_id (or currency_code) can be updated ONLY while the credit has no activity.
  • If the credit has any allocations (applied to bills) or payments, attempting to change the currency returns a 422 with a currency_id validation error.
  • If the credit is linked to a purchase order, the currency MUST match the PO's currency — any mismatch returns a 422.

Line replacement semantics: supplying lines replaces the existing line set (use with care). Closed or voided credits may be blocked from editing — check the manager.

Request

Responses

Successful response