AlphaAlpha Docs

Create a new client

Create a new client

POST
/clients
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/clients" \  -H "Content-Type: application/json" \  -d '{    "billingAddress": {      "city": "string",      "country": "string",      "id": "string",      "postalCode": "string",      "street": "string"    },    "contacts": [      {        "email": "string",        "firstName": "string",        "id": "string",        "lastName": "string",        "phone": "string"      }    ],    "deliveryAddresses": [      {        "city": "string",        "country": "string",        "id": "string",        "postalCode": "string",        "street": "string"      }    ],    "email": "string",    "name": "string",    "type": "PERSON"  }'
{
  "avatar": {
    "blobId": "string",
    "height": 0,
    "thumbnailBlobId": "string",
    "width": 0
  },
  "billingAddress": {
    "city": "string",
    "country": "string",
    "houseNumber": "string",
    "id": "string",
    "latitude": 0.1,
    "longitude": 0.1,
    "postalCode": "string",
    "street": "string"
  },
  "btw": "string",
  "contacts": [
    {
      "department": "string",
      "email": "string",
      "firstName": "string",
      "id": "string",
      "lastName": "string",
      "phone": "string"
    }
  ],
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "crmStatus": "LEAD",
  "deliveryAddresses": [
    {
      "city": "string",
      "country": "string",
      "houseNumber": "string",
      "id": "string",
      "latitude": 0.1,
      "longitude": 0.1,
      "postalCode": "string",
      "street": "string"
    }
  ],
  "email": "string",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "industry": "string",
  "kvk": "string",
  "leadSource": "string",
  "name": "string",
  "nextAction": "string",
  "nextActionDueDate": "2019-08-24T14:15:22Z",
  "number": "string",
  "ownerId": "string",
  "phone": "string",
  "preferredLanguage": "string",
  "region": "string",
  "subsidiaryId": "string",
  "tags": [
    "string"
  ],
  "tenantId": "string",
  "type": "PERSON",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string",
  "userId": "string",
  "visits": [
    {
      "frequency": 0,
      "ip": "string",
      "time": "2019-08-24T14:15:22Z"
    }
  ],
  "website": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}