This endpoint creates a new user account in the system. Once submitted, the account is set to aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/ecommerce-delivery/llms.txt
Use this file to discover all available pages before exploring further.
Pendiente de confirmacion (pending confirmation) status until the user verifies their email address using the code sent to their inbox. Passwords are hashed with bcrypt before being stored.
Endpoint
Request Body
The full name of the user.
The user’s email address. Stored in lowercase. Must not already be registered in the system.
The account password. Encrypted with bcrypt before storage.
Optional referral code of the seller who invited this user. When provided, it must match an existing user’s
codeseller value. If omitted, the field is stored as an empty string.Response
200 — Account created
The account was created successfully and a verification email was dispatched.Confirmation message:
"Cuenta creada correctamente".true on success.The newly created user document, including generated fields such as
codeseller, codeActivate, and the default status and roles arrays.403 — Missing required fields
Returned whenname, email, or password are absent from the request body.
203 — Email already registered
Returned when the submitted email address already exists in the database.404 — Invalid seller code
Returned when ameseller value is supplied but does not match any existing user’s codeseller.
After a successful registration, a 6-digit verification code is emailed to the address provided. The account status remains
Pendiente de confirmacion (status value "2") until the code is confirmed via POST /api/user/verify-account. The code expires after 24 hours.