Skip to main content

Create New Customer

POST 

/customers

(🚧 in development) This endpoint creates a new customer in the system.

The system will ensure the uniqueness of the customer either within the entire company or a shop. This depends on whether you include shopId in the request or not. If the customer already exists for the company or the shop, the system returns an error.

Request​

Body

required

Customer creation request data.

    shopId stringnullable

    The unique identifier of the shop within the merchant company. If not provided, the customer will be unique across the entire company. If provided, the customer will be unique within this shop.

    customer objectrequired
    customerId stringnullable

    The identifier of the customer within the merchant's system. Must be unique within the company or shop. If not provided, the system will generate one.

    firstName stringrequired

    The customer's first name.

    lastName stringrequired

    The customer's last name.

    middleName stringnullable

    The customer's middle name, if applicable.

    phone stringnullable

    The customer's phone number.

    email stringrequired

    The customer's email address.

Responses​

Customer successfully created.

Schema
    data objectrequired
    customerId stringrequired

    The unique identifier of the customer.

    firstName stringrequired

    The first name of the customer.

    lastName stringrequired

    The last name of the customer.

    middleName stringnullable

    The middle name of the customer, if provided.

    phone stringnullable

    The customer's phone number, if provided.

    email stringrequired

    The customer's email address.

Loading...