Settings companies

Удалить юрлицо без операций

Changed on

Удаляет юрлицо, заведённое ошибочно, если его ничто не держит. Юрлицо с движениями, документами, счетами, складами или сотрудниками не удаляется: ответ 409 с кодом settings.company.in_use называет держателей словами на языке запроса и советует отключить юрлицо, а не удалять. Держателей заранее показывает settingsGetCompanyUsage.

delete/api/v1/settings/companies/{id}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Юрлицо удалено

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    7 more changes in this revision