Skip to main content

Create Vendor Credit from Invoice

POST 

/api/vendor-credits/from-invoice/:purchase_invoice

Create a vendor credit pre-populated from a purchase invoice (bill): the invoice's lines are copied onto the credit, the credit is opened immediately, and its full balance is applied against the source invoice. No request body is required.

Required scope: accounting:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Returns 422 when a credit cannot be created from the invoice (e.g. the invoice has no outstanding balance).

Request

Responses

OK

Response Headers
    Content-Type