---
updatedAt: 2025-03-06T23:33:14.000Z
agentTools:
  projectIndex: https://developer-gigpay.readme.io/llms.txt
---

# Create business identity (Auth policies: MultipleClientsUserAuthorizationPolicy)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "GigPay.Core.Host",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/business-identities": {
      "post": {
        "tags": [
          "BusinessIdentities"
        ],
        "summary": "Create business identity (Auth policies: MultipleClientsUserAuthorizationPolicy)",
        "requestBody": {
          "description": "Create business identity request model",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBusinessIdentityRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBusinessIdentityRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBusinessIdentityRequestModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Business identity is created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessIdentityResponseModel"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request model",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [
              "MultipleClientsUserAuthorizationPolicy"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AddressModel": {
        "required": [
          "city",
          "country",
          "postalCode",
          "street1"
        ],
        "type": "object",
        "properties": {
          "street1": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets street 1"
          },
          "street2": {
            "maxLength": 100,
            "type": "string",
            "description": "Gets or sets street 2",
            "nullable": true
          },
          "postalCode": {
            "minLength": 1,
            "type": "string",
            "allOf": [
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              },
              {
                "pattern": "^[a-zA-Z0-9]{4,34}$"
              }
            ],
            "description": "Gets or sets postal code",
            "example": "string"
          },
          "city": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets city"
          },
          "state": {
            "maxLength": 35,
            "type": "string",
            "description": "Gets or sets state",
            "nullable": true
          },
          "country": {
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets country"
          }
        },
        "additionalProperties": false,
        "description": "Represents address model"
      },
      "BusinessIdentityOwnerModel": {
        "required": [
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets first name"
          },
          "lastName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets last name"
          },
          "middleName": {
            "maxLength": 100,
            "type": "string",
            "description": "Gets or sets middle name",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "description": "Gets or sets date of birth",
            "format": "date",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents business identity owner model"
      },
      "BusinessIdentityResponseModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Gets or sets id",
            "format": "uuid"
          },
          "type": {
            "$ref": "#/components/schemas/UserIdentityType"
          },
          "kybStatus": {
            "$ref": "#/components/schemas/KybStatus"
          },
          "businessName": {
            "type": "string",
            "description": "Gets or sets business name",
            "nullable": true
          },
          "taxId": {
            "type": "string",
            "description": "Gets or sets tax id",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Gets or sets website",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Gets or sets phone",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Gets or sets email",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/AddressModel"
          },
          "metadata": {
            "type": "string",
            "description": "Gets or sets metadata",
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/BusinessIdentityOwnerModel"
          },
          "externalUserId": {
            "type": "string",
            "description": "Get or set external user identifier",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents business identity response model"
      },
      "CreateBusinessIdentityRequestModel": {
        "required": [
          "address",
          "businessName",
          "email",
          "owner"
        ],
        "type": "object",
        "properties": {
          "taxId": {
            "type": "string",
            "description": "Gets or sets tax id",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Gets or sets phone",
            "nullable": true
          },
          "email": {
            "minLength": 1,
            "pattern": "^(([^<>()[\\]\\\\.,;:\\s@]+(\\.[^<>()[\\]\\\\.,;:\\s@]+)*)|(.+))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$",
            "type": "string",
            "description": "Gets or sets email",
            "example": "user@email.com"
          },
          "address": {
            "$ref": "#/components/schemas/AddressModel"
          },
          "metadata": {
            "type": "string",
            "description": "Gets or sets metadata",
            "nullable": true
          },
          "businessName": {
            "maxLength": 60,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets business name"
          },
          "website": {
            "type": "string",
            "description": "Gets or sets website",
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/BusinessIdentityOwnerModel"
          }
        },
        "additionalProperties": false,
        "description": "Represents create business identity request model"
      },
      "KybStatus": {
        "enum": [
          "submitted",
          "inReview",
          "needAdditionalInfo",
          "accepted",
          "rejected"
        ],
        "type": "string",
        "description": "Represents possible Kyb statuses"
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "UserIdentityType": {
        "enum": [
          "personal",
          "business"
        ],
        "type": "string",
        "description": "Represents user identity type"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Put access token in the box below.<br>For example: <b>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6I</b>",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```