API reference · Invoices
POST/api/v1/invoices/{id}/credit

Apply credit to invoice

Applies credit amount to one invoice.

RBAC · invoice

Path parameters

idstring <uuid>Required
Path UUID parameter resolved by ApiBaseController.extractIdFromPath().

Request body

Content type: application/json · schema InvoiceCreditBody

credit_amountintegerRequired
≥ 0
transaction_idstring <uuid>

Response body

Success response 200 · schema FinancialInvoiceApiSuccess

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

200
Invoice action succeeded.
201
Invoice action created a new invoice resource.
400
Invalid request payload or query.
401
API key missing/invalid.
403
invoice:credit permission denied.
404
Invoice not found.
500
Unexpected invoice action failure.