---
agentTools:
  projectIndex: https://developer.kompliant.com/llms.txt
---

# Create a Business

Create a Business entity to capture essential information about a company.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Kompliant Web API",
    "description": "The Kompliant Web API provides a robust platform for integrating compliance services into your applications.\nOur APIs enable businesses to manage the entire compliance lifecycle - from application processing to ongoing\nmonitoring and decision defense.\n",
    "version": "2025-03-24",
    "contact": {
      "url": "https://www.kompliant.com/"
    },
    "license": {
      "name": "Proprietary - For Authorized Use Only",
      "url": "https://www.kompliant.com/terms-conditions"
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "samples-languages": [
      "http",
      "shell",
      "go",
      "python",
      "node",
      "java"
    ],
    "headers": [
      {
        "key": "X-API-Version",
        "value": "2025-03-24"
      }
    ]
  },
  "servers": [
    {
      "url": "https://api.kompliant.com",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "kompliantSignatureAuth": [],
      "kompliantApiKey": [],
      "kompliantAuthToken": []
    }
  ],
  "tags": [
    {
      "name": "Business",
      "description": "Operations for managing business entities and their relationships"
    }
  ],
  "components": {
    "securitySchemes": {
      "kompliantSignatureAuth": {
        "type": "apiKey",
        "description": "Kompliant Signature Version 1 (KSig1) authentication - Authorization header.\nFormat: KSig1-HMAC-SHA256 <signature>\nPart of the KSig1 authentication that requires all three headers:\nAuthorization, X-API-Key, and X-API-Auth-Token.\n\nSee authentication documentation for details on the signature generation process.\n",
        "name": "Authorization",
        "in": "header"
      },
      "kompliantApiKey": {
        "type": "apiKey",
        "description": "Kompliant Signature Version 1 (KSig1) authentication - API Key header.\nYour Kompliant API Key provided during onboarding.\nRequired for all API requests.\n",
        "name": "X-API-Key",
        "in": "header"
      },
      "kompliantAuthToken": {
        "type": "apiKey",
        "description": "Kompliant Signature Version 1 (KSig1) authentication - Auth Token header.\nA valid authentication token obtained through the token endpoint.\nRequired for all authenticated API requests.\n",
        "name": "X-API-Auth-Token",
        "in": "header"
      }
    },
    "responses": {
      "Error401": {
        "description": "Unauthorized - Authentication errors or failures",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ErrorResponseTemplate"
                },
                {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error401"
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "Error403": {
        "description": "Forbidden - Authorization failures",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ErrorResponseTemplate"
                },
                {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error403"
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "Error4XX": {
        "description": "Other 400 level errors",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ErrorResponseTemplate"
                },
                {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error4XX"
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "Error5XX": {
        "description": "Server Error - Server-side issues",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ErrorResponseTemplate"
                },
                {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error5XX"
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "BusinessCreateErrorResponse": {
        "description": "Bad Request - Client request errors",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ErrorResponseTemplate"
                },
                {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "enum": [
                              "BAD_REQUEST",
                              "ENTITY_NOT_FOUND",
                              "SYSTEM_RULE_VIOLATION"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "schemas": {
      "MetaSuccessResponse": {
        "type": "object",
        "description": "Standard metadata included in all API responses",
        "required": [
          "status",
          "trace_id",
          "version"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "SUCCESS"
            ],
            "description": "Status of the operation"
          },
          "trace_id": {
            "type": "string",
            "description": "Trace ID for debugging"
          },
          "version": {
            "type": "string",
            "description": "API version in YYYY-MM-DD format",
            "example": "2025-03-24"
          }
        }
      },
      "MetaErrorResponse": {
        "type": "object",
        "description": "Standard metadata included in all API responses",
        "required": [
          "status",
          "trace_id",
          "version"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ERROR"
            ],
            "description": "Status of the operation"
          },
          "trace_id": {
            "type": "string",
            "description": "Trace ID for debugging"
          },
          "version": {
            "type": "string",
            "description": "API version in YYYY-MM-DD format",
            "example": "2025-03-24"
          }
        }
      },
      "ErrorResponseTemplate": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/MetaErrorResponse"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorItem"
            }
          }
        }
      },
      "ErrorItem": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "sub_code": {
            "type": "string",
            "nullable": true,
            "description": "Error sub-code providing additional context (e.g., WORKFLOW_ENDED)"
          },
          "entity_type": {
            "type": "string",
            "nullable": true,
            "description": "The type of entity related to the error (e.g., Business, RequiredDocument)"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "details": {
            "type": "array",
            "description": "Array of validation error details (only present for BAD_REQUEST validation errors)",
            "items": {
              "$ref": "#/components/schemas/ValidationDetail"
            }
          }
        }
      },
      "ValidationDetail": {
        "type": "object",
        "required": [
          "path",
          "message"
        ],
        "description": "Detailed validation error information for a specific field",
        "properties": {
          "path": {
            "type": "string",
            "description": "The field path that failed validation (e.g., \"subject_record_id\", \"required_documents[0].document_type_code\")",
            "example": "subject_record_id"
          },
          "message": {
            "type": "string",
            "description": "Specific validation error message for this field",
            "example": "subject_record_id is required."
          }
        }
      },
      "Error401": {
        "type": "object",
        "description": "Standard error structure",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code",
            "enum": [
              "AUTH_INVALID_HEADER",
              "AUTH_INVALID_API_KEY",
              "AUTH_INVALID_AUTH_TOKEN",
              "AUTH_SIGNATURE_MISMATCH",
              "AUTH_MISSING_HEADER"
            ]
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "Error403": {
        "type": "object",
        "description": "Standard error structure",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code",
            "enum": [
              "UNAUTHORIZED"
            ]
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "Error4XX": {
        "type": "object",
        "description": "Standard error structure",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code",
            "enum": [
              "INVALID_ENDPOINT_REQUEST",
              "PAYLOAD_TOO_LARGE",
              "THROTTLED",
              "UNKNOWN_VERSION",
              "UNSUPPORTED_MEDIA_TYPE"
            ]
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "Error5XX": {
        "type": "object",
        "description": "Standard error structure",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code",
            "enum": [
              "GATEWAY_TIMEOUT",
              "INTERNAL_SERVER_ERROR",
              "SERVICE_UNAVAILABLE"
            ]
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "BusinessAddressTypes": {
        "type": "string",
        "enum": [
          "LEGAL",
          "MAILING"
        ],
        "description": "Business Address Types indicate what type of address is being provided."
      },
      "BusinessRegistrationTypes": {
        "type": "string",
        "enum": [
          "CORPORATION_PRIVATE",
          "CORPORATION_PUBLIC",
          "GOVERNMENT",
          "LLC_PRIVATE",
          "LLC_PUBLIC",
          "NON_PROFIT",
          "SOLE_PROPRIETORSHIP",
          "PARTNERSHIP_PRIVATE",
          "PARTNERSHIP_PUBLIC"
        ],
        "description": "Business Registration Types indicate the way a given business is registered."
      },
      "BusinessTransactionTypes": {
        "type": "string",
        "enum": [
          "INTERNET",
          "LODGING",
          "MOTO",
          "RESTAURANT",
          "RETAIL",
          "RETAIL_W_TIP"
        ],
        "description": "Business Transaction Types indicate the type of transactions the business engages in."
      },
      "Countries": {
        "type": "string",
        "enum": [
          "US"
        ],
        "description": "Countries corresponds to the list of countries as found in the ISO 3166 list using alpha-2 country codes.",
        "example": "US"
      },
      "IndustryCodeTypes": {
        "type": "string",
        "enum": [
          "MCC"
        ],
        "description": "Industry Code Types indicates the type of industry code for which a value is being supplied."
      },
      "MccCardBrands": {
        "type": "string",
        "enum": [
          "MASTERCARD"
        ],
        "description": "Card brands that define their own merchant category codes."
      },
      "SocialNetworks": {
        "type": "string",
        "enum": [
          "FACEBOOK",
          "INSTAGRAM",
          "LINKEDIN",
          "X",
          "YOUTUBE"
        ],
        "description": "Social Networks represents many of the commonly used social media sites on the internet."
      },
      "States": {
        "type": "string",
        "description": "States corresponds to the list of United States states as found in the ISO 3166-2:US list.",
        "example": "CA"
      },
      "BaseAddress": {
        "type": "object",
        "description": "Base address structure without type classification, reusable across entities",
        "properties": {
          "line1": {
            "type": "string",
            "nullable": true,
            "description": "First line of the address"
          },
          "line2": {
            "type": "string",
            "nullable": true,
            "description": "Second line of the address (optional)"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "description": "City name"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/States"
              },
              {
                "type": "string",
                "nullable": true
              }
            ]
          },
          "postal_code": {
            "type": "string",
            "nullable": true,
            "description": "Postal or ZIP code"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Countries"
              },
              {
                "type": "string",
                "nullable": true
              }
            ]
          }
        }
      },
      "Address": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseAddress"
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "description": "Common address structure used for both business and person addresses",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of address, varies by context (see specific implementations)"
              }
            }
          }
        ]
      },
      "IndustryCategoryCode": {
        "type": "object",
        "required": [
          "type",
          "code"
        ],
        "description": "Industry classification code for the business",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/IndustryCodeTypes"
          },
          "code": {
            "type": "string",
            "description": "The industry code value"
          },
          "details": {
            "type": "object",
            "properties": {
              "mcc_details": {
                "type": "object",
                "properties": {
                  "card_brand": {
                    "$ref": "#/components/schemas/MccCardBrands"
                  }
                }
              }
            }
          }
        }
      },
      "SocialNetworkObject": {
        "type": "object",
        "required": [
          "network",
          "url"
        ],
        "description": "Represents a social media presence",
        "properties": {
          "network": {
            "$ref": "#/components/schemas/SocialNetworks",
            "description": "Type of social network"
          },
          "url": {
            "type": "string",
            "description": "URL to the social media profile"
          }
        }
      },
      "BusinessCreateRequest": {
        "type": "object",
        "required": [
          "subject_record_id",
          "business"
        ],
        "description": "Request to create a new business entity",
        "properties": {
          "subject_record_id": {
            "type": "string",
            "format": "string",
            "description": "The ID of the subject record"
          },
          "business": {
            "type": "object",
            "description": "Business entity details",
            "properties": {
              "legal_name": {
                "type": "string",
                "nullable": true,
                "description": "Legal name of the business"
              },
              "operating_name": {
                "type": "string",
                "nullable": true,
                "description": "Operating or DBA name of the business"
              },
              "registration_type": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BusinessRegistrationTypes"
                  },
                  {
                    "type": "string",
                    "nullable": true
                  }
                ]
              },
              "tax_id": {
                "type": "string",
                "nullable": true,
                "description": "Tax identification number"
              },
              "phone_number": {
                "type": "string",
                "nullable": true,
                "description": "Contact phone number"
              },
              "email": {
                "type": "string",
                "nullable": true,
                "description": "Email address of the business"
              },
              "industry_category_codes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/IndustryCategoryCode"
                },
                "description": "Industry classification codes"
              },
              "established_date": {
                "type": "string",
                "format": "date",
                "nullable": true,
                "description": "Date when the business was established"
              },
              "transaction_type": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BusinessTransactionTypes"
                  },
                  {
                    "type": "string",
                    "nullable": true
                  }
                ]
              },
              "business_description": {
                "type": "string",
                "nullable": true,
                "description": "Description of the business"
              },
              "addresses": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Address"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "$ref": "#/components/schemas/BusinessAddressTypes"
                        }
                      }
                    }
                  ]
                }
              },
              "social_networks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SocialNetworkObject"
                },
                "description": "Social media presences"
              },
              "website": {
                "type": "string",
                "nullable": true,
                "description": "Business website URL"
              },
              "additional_fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "value"
                  ],
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Name of the additional field"
                    },
                    "value": {
                      "type": "string",
                      "description": "Value of the additional field"
                    }
                  }
                },
                "description": "Optional additional fields for custom business data (requires feature to be enabled)"
              }
            }
          }
        }
      },
      "BusinessCreateResponse": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/MetaSuccessResponse"
          },
          "data": {
            "type": "object",
            "properties": {
              "business": {
                "type": "object",
                "properties": {
                  "business_id": {
                    "type": "string",
                    "format": "string",
                    "description": "ID of the newly created business entity"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/business.create": {
      "post": {
        "summary": "Create a Business",
        "description": "Create a Business entity to capture essential information about a company.\n",
        "operationId": "businessCreate",
        "tags": [
          "Business"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessCreateResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BusinessCreateErrorResponse"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "4XX": {
            "$ref": "#/components/responses/Error4XX"
          },
          "5XX": {
            "$ref": "#/components/responses/Error5XX"
          }
        }
      }
    }
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 176,
      "2": 56,
      "3": 25,
      "4": 98,
      "5": 188,
      "6": 204,
      "7": 45,
      "8": 222,
      "9": 108,
      "10": 103,
      "11": 82
    }
  }
}
```