Customers
Admin

Create a new customer

Changed on

Create a new customer

post/api/v1/admin/customers

Request

Request body

namestring required

Customer's full name

emailstring email required

Customer's email address

phone_numberstring required

Customer's phone number in E.164 format

Example request

{
  "name": "John Doe",
  "email": "john.doe@example.com",
  "phone_number": "+491234567890"
}

Response

Created

successboolean required

Indicates if the request was successful

Example response

{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174001",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone_number": "+491234567890",
    "created_at": "2024-03-19T12:00:00Z",
    "updated_at": "2024-03-19T12:00:00Z"
  }
}

Changes

    • breaking

      the / response's property type changed from string to no type for status

    • warning

      removed the optional property / from the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added subschema #1 subschema #2 to the / response property allOf list for the response status

    • info

      endpoint added