Add a new customer account in the CareCloud platform.
What happens when a customer is created
A customer record is created and its server-generated customer_id is returned.
One or more customer-partner relations are created automatically. The assignment depends on the project configuration:
If the project is configured for store-based partner assignment and store_id is set in personal_information - a single relation is created for the partner derived from the store.
If the project is not configured for store-based partner assignment - relations are created for all partners accessible to the authenticated API user. The store_id, if set, is still recorded on the customer account but does not determine partner assignment.
If called from Customer API with autologin=true, the customer is logged in as part of the response.
If referral_code is provided and valid, a customer relation is created between the new customer and the referral code holder. The relation type used is determined by the referral campaign configuration. See GET /customers/{customer_id}/related-customers to view the resulting relation.
Conditional requirements
When autologin is true, password is required.
When autologin is false, password is optional.
autologin is meaningful only when this endpoint is called from Customer API. In Enterprise API, autologin=true causes the password to be validated but does not log the customer in - Enterprise API does not establish customer sessions.
If the provided email address belongs to an existing non-club (non-loyalty) account, CareCloud does not create a new account. Instead, it reuses the existing account record and merges the input data into it. Fields not provided in the request are populated from the existing account's personal information. The account is upgraded to a club account and the returned customer_id refers to the pre-existing account.
Virtual card auto-assignment
After registration, a virtual card may be automatically assigned to the new customer. Whether this happens depends on the project configuration and the customer's membership level. If no virtual card is available, registration succeeds without a card.
Recent Requests
Log in to see full request history
Time
Status
User Agent
Retrieving recent requests…
Loading…
Responses
401
The client has invalid credentials or auth token.
403
The client does not exist or the client tried to access an unauthorized property or resource.
404
The request path does not match any API route, or the addressed resource does not exist.
405
The request path matches a valid route, but the endpoint does not support the HTTP method used in the request.
429
Too many requests - more than the resource limit.
500
Server is not working as expected.
503
Temporary state when the service is temporarily unavailable, overloaded or there is a maintenance window.