Record a payment on an invoice
Any signed in user. Adds one payment to a supplier invoice and advances the paid amount. The amount must be positive, and the invoice reads as paid once payments cover its total.
POST
/api/v1/supplier-finance/invoices/{invoiceId}/paymentsAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
invoiceIdstringrequiredThe supplier invoice the payment belongs to.
Request body
requiredapplication/jsonamountnumberrequiredmethodstringreferencestringResponses
200
The invoice with the payment applied
idstringrequiredsupplier_idstringrequiredbranch_idstringrequiredinvoice_nostringrequiredtotal_amountnumberrequiredpaid_amountnumberrequiredstatusstringrequireddue_datestring | nullrequirednotesstringrequiredcreated_bystringrequiredcreated_atstringrequired400
amount must be positive
detailstringrequired401
Not authenticated
detailstringrequired404
Supplier invoice not found
detailstringrequired