---
agentTools:
  projectIndex: https://docs.calqulate.io/llms.txt
---

# Create Customers

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Calqulate API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.calqulate.io/v3"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/customers": {
      "post": {
        "summary": "Create Customers",
        "description": "",
        "operationId": "create-customers",
        "parameters": [
          {
            "name": "Calqulate-Org-Id",
            "in": "header",
            "description": "Your Organization Id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "description": "Array of customers to be created",
                    "required": [
                      "dataSourceId"
                    ],
                    "properties": {
                      "dataSourceId": {
                        "type": "string"
                      },
                      "customers": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "metaId": {
                              "type": "string"
                            },
                            "creationDate": {
                              "type": "string",
                              "format": "date"
                            },
                            "code": {
                              "type": "string"
                            },
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string"
                            },
                            "phoneNumber": {
                              "type": "string"
                            },
                            "company": {
                              "type": "string"
                            },
                            "address": {
                              "type": "string"
                            },
                            "postalCode": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string"
                            },
                            "countryId": {
                              "type": "string"
                            },
                            "metaCountryId": {
                              "type": "string"
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "mrr": {
                              "type": "integer",
                              "format": "int32"
                            },
                            "parentId": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n   \"data\": [\n     {\n       \"id\": \"\",\n       \"metaId\": \"\",\n       \"creationDate\": \"\",\n       \"code\": \"\",\n       \"firstName\": \"\",\n       \"lastName\": \"\",\n       \"email\": \"\",\n       \"phoneNumber\": \"\",\n       \"company\": \"\",\n       \"address\": \"\",\n       \"postalCode\": \"\",\n       \"city\": \"\",\n       \"state\": \"\",\n       \"parentId\": \"\",\n       \"countryId\": \"\",\n       \"metaCountryId\": \"\",\n       \"archived\": false,\n       \"dataSourceId\": \"\",\n       \"mrr\": 1,\n       \"createdAt\": \"\"\n     }\n   ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": ""
                          },
                          "metaId": {
                            "type": "string",
                            "example": ""
                          },
                          "creationDate": {
                            "type": "string",
                            "example": ""
                          },
                          "code": {
                            "type": "string",
                            "example": ""
                          },
                          "firstName": {
                            "type": "string",
                            "example": ""
                          },
                          "lastName": {
                            "type": "string",
                            "example": ""
                          },
                          "email": {
                            "type": "string",
                            "example": ""
                          },
                          "phoneNumber": {
                            "type": "string",
                            "example": ""
                          },
                          "company": {
                            "type": "string",
                            "example": ""
                          },
                          "address": {
                            "type": "string",
                            "example": ""
                          },
                          "postalCode": {
                            "type": "string",
                            "example": ""
                          },
                          "city": {
                            "type": "string",
                            "example": ""
                          },
                          "state": {
                            "type": "string",
                            "example": ""
                          },
                          "parentId": {
                            "type": "string",
                            "example": ""
                          },
                          "countryId": {
                            "type": "string",
                            "example": ""
                          },
                          "metaCountryId": {
                            "type": "string",
                            "example": ""
                          },
                          "archived": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "dataSourceId": {
                            "type": "string",
                            "example": ""
                          },
                          "mrr": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "createdAt": {
                            "type": "string",
                            "example": ""
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6202883ef5f761000f767440:62038b592dfa8203f47d795c"
}
```