Create Customer

POST

/auth/createUser

Headers

  • Authorization (string, Required) — Token for authentication

  • Content-Type: application/json

circle-info

Include the Authorization header with a valid token for all requests.

Request body (application/json)

  • email (string · email) — The unique email address of the customer

  • firstname (string) — The first name of the customer (required for individual customers) Example: John

  • lastname (string) — The last name of the customer (required for individual customers) Example: Doe

  • company (string) — The name of the company (required for corporate customers) Example: Acme Corporation

  • type (string) — The type of customer Possible values: individual corporate

Responses

  • 201 — Customer created successfully (application/json) Response object properties: customer_id, email

Example request (HTTP)

Example response (201)

Last updated