POST ./auth/register
It is used to register a user.
- The parameter chID can be obtain from POST ./auth/challenge_phone or POST ./auth/challenge_email
- The parameter chResponse is a code that the user has receive it via email or phone.
Pentru intent link campurile marcate cu y* nu mai sunt necesare.
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| intent | string | Required | Will use auth or link with the intent to make the call. |
| accessCode | int | Required | User's access code. |
| uaUserName | int | y*n/a | User name. |
| uaPassword | int | y*required | min_length[5]; User's password; |
| uaPassword2 | int | y*required | min_length[5]; Password confirmation; Should match with uaNewPassword; |
| chID | int | y*required | challenge ID |
| chResponse | string | y*required | Challenge response |
| uaNewsletter | int | Optional | Value [0,1]; 1 = if user wants to receive newsletters; 0 = if user does not want to receive newsletters. |
| uaTos | int | Required | Value [0,1]; 1 = if the user acceped the terms and condition; 0 = if not |
| uaPrivacy | int | Required | Value [0,1]; 1 = if the user agrees with the privacy policy; 0 = if not |
| epPrenume | string | Required | It is mandatory if the user is a parent; Parent first name. |
| epNume | string | Required | It is mandatory if the user is a parent; Parent second name. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| accessCode | 101 | Invalid code or already used. |
| chID | 102 | chID or chResponse already used or invalid or it doesn't exist. |
