business.addLocation

Associate a Location entity as a BusinessLocation for a specific Business entity.

POST http://api.kompliant.com/business.addLocation (OpenAPI specification)

Usage Info

This method establishes an association between a Location and a Business entity. Multiple locations can be associated with a single business entity. Use this method when associating location profiles to a existing business.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
business_idstringYesThe Business to add this Location to.
business_locationobjectYesThe business_location parameters are defined in the table below.

Business_Location Parameters

ParameterTypeRequiredDescription
location_idstringYesThe identifier of the Location Entity to be added to the Business.

Example

{
  "business_id": "b_7eobHllxknr7mfqbjnX2Pp",
  "business_location": {
    "location_id": "l_4PYsekjAX8VMuAOfmW81C7"
  }
}

Response

Data

ParameterTypeDescription
business_locationobjectThe business_location parameter defined in the tables below.

Business Location Parameters

ParameterTypeDescription
business_location_idstringThe identifier for the BusinessLocation just created.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_2h1MG0xRq9dPAPWLuygFk5",
    "version": "2025-03-24"
  },
  "data": {
    "business_location": {
      "business_location_id": "bl_5nCWRq51h3ILIJvOOhfF4i"
    }
  }
}

Errors

Error CodeHTTP CodePossible Cause
ACCOUNT_CONFIGURATION_VIOLATION 400Account configuration rule violations are described below.
BAD_REQUEST400Required parameters not provided.
Invalid values provided.
Enum value provided does not correspond to an available type.
ENTITY_NOT_FOUND400The business_id provided does not exist.
SYSTEM_RULE_VIOLATION 400System rule violations are described below.

Account Configuration Violations

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.

System Rule Violations

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

Entity TypeSub-codeDescription
SubjectRecordCROSS_SUBJECT_RECORD_REFERENCEThe referenced entities must belong to the same subject record. Associations cannot be created between entities that exist in different subject records.
BusinessDUPLICATE_LOCATION_ASSOCIATIONThis Location is already registered with this Business entity.
BusinessMAX_LOCATION_LIMITThe maximum number of locations has been reached for this Business entity.