Skip to main content

Update your organization

Route

PUT
/api/v1/organizations

Usage

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

curl --location --request PUT "$LAGO_URL/api/v1/organizations" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"organization": {
"name": "Name1",
"webhook_url": "https://test-example.example",
"vat_rate": 15.0,
"country": "CZ",
"address_line1": "address1",
"address_line2": null,
"state": "state1",
"zipcode": "10000",
"email": "org@email.com",
"city": "city125",
"legal_name": null,
"legal_number": null,
"invoice_footer": "footer custom"
}
}'

Arguments

{
"organization": {
"webhook_url": "https://test-example.example",
"vat_rate": 15.0,
"country": "CZ",
"address_line1": "address1",
"address_line2": null,
"state": "state1",
"zipcode": "10000",
"email": "org@email.com",
"city": "city125",
"legal_name": null,
"legal_number": null,
"invoice_footer": "footer custom"
}
}
AttributesTypeDescription
webhook_urlString      OptionalWebhook URL.
vat_rateFloat      OptionalVAT rate.
countryString      OptionalCountry alpha-2 code
address_line1String      OptionalAddress first line.
address_line2String      OptionalAddress second line.
stateString      OptionalOrganization state.
zipcodeString      OptionalOrganization zipcode.
emailString      OptionalBusiness email.
cityString      OptionalOrganization city.
legal_nameString      OptionalOrganization legal name.
legal_numberString      OptionalOrganization legal number.
invoice_footerString      OptionalCustom invoice footer.

Responses

The organization was successfully updated

Returns an organization object.