Change an establishment
Only the fields sent change; null clears an optional one. status: inactive stops it from taking series or issuing. The 0000 is the fiscal address: its address changes with PUT /v1/issuer, and it cannot be deactivated. Invoices already issued keep the copy they froze.
PATCH
https://api.invox.page/v1/establishments/{code}Authorization
Path parameters
Header parameters
Request body JSON required
Returns
200
The establishment, changed.
JSON
400
organization_required: This credential needs to say which organization it acts on · validation_failed: The request is not valid · malformed_request: The request body is not valid JSON
JSON
401
unauthenticated: No credential was sent · invalid_credential: The credential is not valid
JSON
403
missing_scope: The credential lacks the permission this operation requires · organization_mismatch: The X-Organization header names another organization than the key's · organization_archived: The organization is archived
JSON
404
not_found: The resource does not exist in this organization · establishment_not_found: The establishment does not exist for this issuer
JSON
409
issuer_not_configured: The organization has no issuer yet
JSON
429
rate_limited: Too many requests
JSON
500
internal_error: The service failed
JSON
503
service_unavailable: The service cannot answer right now
JSON