Openapi
Archive a legal entity. The default legal entity cannot be archived.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
legalEntityId*stringuuidorganizationId*stringuuidReturns the legal entity.
application/jsonaddress*archivedAt*|date-timebic*string|nullcocNumber*string|nullcode*string1 <= length <= 32createdAt*stringdate-timedefaultCurrency*string|nullfiscal*iban*string|nullid*legalEntityIdSchemauuidisDefault*booleanname*string1 <= length <= 200organizationId*stringuuidupdatedAt*stringdate-timevatNumber*string|nullcurl -X POST 'https://app.localhost/api/v1/organizations/123/legal-entities/123/archive'{ "address": { "city": "string", "country": "string", "line1": "string", "postalCode": "string" }, "archivedAt": "2019-08-24T14:15:22Z", "bic": "string", "cocNumber": "string", "code": "string", "createdAt": "2019-08-24T14:15:22Z", "defaultCurrency": "string", "fiscal": { "fiscalYearStartMonth": 1, "taxPeriod": "monthly" }, "iban": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "isDefault": true, "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "updatedAt": "2019-08-24T14:15:22Z", "vatNumber": "string"}