location.delete

Remove a Location entity from a Subject Record.

POST http://api.kompliant.com/location.delete (OpenAPI specification)

Usage Info

This method permanently deletes a Location entity from the system. Use with caution as this operation cannot be undone. Typically used when location information is incorrect or when location is no longer active.

Note that a Location entity cannot be deleted if it is currently associated with a Business or BankAccount Entities. You must first remove the each of the association using the business.removeLocation and location.removeBankAccount methods before deletion can be completed.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
location_idstringYesThe ID of the Location entity.

Example

{
  "location_id": "l_6zNzQZHSf26V83BO3uW6dS"
}

Response

Data

An empty data object is returned when the completion is successful.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6zNzQZHSf26V83BO3uW6dS",
    "version": "2025-03-24"
  },
  "data": {}
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
ENTITY_LINKED400The Location entity cannot be deleted because it is currently linked to one or more Business/Bank Account entities.

You must first remove the each of the association using the business.removeLocation and location.removeBankAccount methods before deletion can be completed.
ENTITY_NOT_FOUND400The location_id provided does not exist.
ACCOUNT_CONFIGURATION_VIOLATION400Account configuration rule violations are described below.

ACCOUNT_CONFIGURATION_VIOLATION

When a ACCOUNT_CONFIGURATION_VIOLATION error occurs, the response will include additional entity_type and sub_code fields to provide more specific information:

Entity TypeSub-codeDescription
LocationFEATURE_NOT_ENABLEDLocation feature is not enabled for this account.