Profiles
Update a profile's settings
Partial update: only the fields sent change. Company and address fields feed the sender block of new documents; the *NumberPrefix and *Count fields drive numbering (count is the last number handed out). baseCurrency cannot change once journal entries exist (400). A key pinned to another profile, or a request scoped via X-Profile-Id to another profile, gets 404. Permission profiles.update; needs a read-write key.
put/profiles/{id}
Request
- Base URL: https://api.lumabill.ch/v1
- URL: https://api.lumabill.ch/v1/profiles/{id}
- Auth: HTTP bearer
Request body
Example request
{
"countryCode": "CH",
"defaultCurrency": "CHF",
"baseCurrency": "CHF"
}Response
The updated profile
Example response
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"companyName": "Sandrini Consulting GmbH",
"street": "Seestrasse 100",
"zip": "6003",
"city": "Luzern",
"countryCode": "CH",
"uid": "CHE-123.456.789 MWST",
"defaultTaxRate": 8.1,
"defaultCurrency": "CHF",
"baseCurrency": "CHF",
"defaultLanguage": "de",
"paymentDeadlineDays": 30,
"defaultRevenueAccountCode": "3400",
"fxVatRateMethod": {
"2027": "monthly"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.