u_collaborators Firestore collection. Collaborators are users who operate under a parent client account.
Endpoint
Request body
All parameters are nested under adata key.
Full name of the collaborator.
Email address. Used as the Firebase Authentication login credential.
Initial password for the Firebase Authentication account. Not stored in Firestore.
UID of the parent client (
u_clients document ID) this collaborator belongs to.Contact phone number.
Account status. Typically set to
false or inactive on creation and activated via validate_user_email.Account classification used for role-based access checks by
validate_user_type.Government-issued identification number.
Type of identification document (for example,
cedula, passport).Address fields
City. Stored under
address.city in Firestore.Country. Stored under
address.country in Firestore.Street address line. Stored under
address.line in Firestore.Postal code. Stored under
address.zipcode in Firestore.Example
Response
Confirmation message including the new UID.
200 on success, 400 on error.Firestore document
On success, a document is written tou_collaborators/{uid} with the following structure:
The
client field stores the UID of the parent document in u_clients. The password field is never written to Firestore. To activate the account after creation, call validate_user_email with the collaborator’s uid and email.