Archive the organization (both halves of the pair)
Irreversible through the API. Refused when the organization has an accepted invoice: those are fiscal records.
POST
https://api.invox.page/v1/organization/archiveAuthorization
Header parameters
Returns
200
The organization, archived.
JSON
400
organization_required: This credential needs to say which organization it acts on
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
JSON
409
organization_not_archivable: The organization has live invoices and cannot be archived
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