This endpoint creates a new customer account (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSCaicedo/Api-Ecommerce/llms.txt
Use this file to discover all available pages before exploring further.
type_user = 2) in the API Ecommerce platform. Upon successful registration, a verification email is automatically dispatched to the provided address. The account remains inactive — and cannot be used to log in — until the customer completes email verification via POST /api/auth/verified_auth.
Method and Path
Authentication
None required. This endpoint is publicly accessible.Rate Limit
10 requests per minute (applied to the entire/api/auth route group via Laravel’s throttle:10,1 middleware).
Request Body
The customer’s first name.
The customer’s last name / surname.
The customer’s phone number.
A valid, unique email address. Registration fails if this email already exists in the
users table.Account password. Minimum 8 characters. Stored as a bcrypt hash.
Responses
201 — Created
Returns the newly created user object as JSON.400 — Validation Error
Returned when one or more request fields fail validation. The response body is a JSON-encoded string of field-level error messages.503 — Service Unavailable
Returned when the site is in maintenance mode (vista_mantenimiento is active).
Example Request
Example Response
After registering, the account is not active until the customer clicks the verification link sent by email. That link hits
POST /api/auth/verified_auth with the unique code_user parameter, which stamps email_verified_at and allows the customer to log in via POST /api/auth/login_ecommerce.