Skip to main content
POST
Void an invoice
API v2 is in beta. Endpoints return the X-Lago-Endpoint-Status: beta header.
This endpoint changes billing or financial records. Check the target environment, the resource identifier and the expected effect before you call it. Review the change before you run it in production.

Authorizations

Authorization
string
header
required

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

Path Parameters

lago_id
string<uuid>
required

Unique identifier created by Lago.

Example:

"1a901a90-1a90-1a90-1a90-1a901a901a90"

Body

application/json

Request payload

generate_credit_note
boolean

Whether to generate credit notes. Requires a premium license.

Example:

false

refund_amount
integer

Requested refund amount, in cents.

Example:

0

credit_amount
integer

Requested credit amount, in cents.

Example:

0

Response

Successful response

invoice response.

invoice
object
required

Invoice.