Skip to main content

Update invoice status

Route

PUT
/api/v1/invoices/:lago_id

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request PUT "$LAGO_URL/api/v1/invoices/5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice": {
"status": "succeeded"
}
}'

Arguments

{
"invoice": {
"status": "succeeded"
}
}
AttributesTypeDescription
lago_idString      RequiredInvoice unique identifier in Lago
statusString      RequiredInvoice status
It can be pending, succeeded or failed

Responses

The invoice status has been successfully updated.

Returns an invoice object.