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 the customer interface 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 the customer interface. In the enterprise interface, autologin=true causes the password to be validated but does not log the customer in - the enterprise interface does not establish customer sessions.