Edit a company's fiscal identity (appends a version)
Replaces the fiscal identity WHOLESALE — this is not a patch. Read the société first, apply your change to current.identity, and send the whole object; an omitted optional field is CLEARED. The edit APPENDS version N+1 with effectiveFrom = now and bumps the société’s currentVersion; no stored version is ever mutated, so every sale finalized under an earlier version keeps printing that version’s header. Submitting an UNCHANGED identity mints nothing and returns the current version (the fingerprint is a content address, so a no-op save cannot grow the chain). The body’s id is required by validation but IGNORED — the path companyId wins. The country is NOT editable here: changing which fiscal regime an entity lives under is a new société. 404s for an unknown société; 400 with a field error on a check-unsound identifier.
Authorizations
Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.
Path Parameters
1
