This service allows you to register a new user for consuming our services. The service needs the access token and the new user account information.
🛠Test URL : https://api.test.sw.com.mx
🧰 Production URL : https://api.sw.com.mx
Endpoint
Method | Route |
---|---|
POST | /management/api/users |
Authentication and Headers
Header | Value |
---|---|
Authorization | Bearer Token |
Content-Type | application/json |
JSON Parameters
Property | Type | Use | Description |
---|---|---|---|
string | Required | User mail | |
password | string | Required | User password |
name | string | Required | User name |
rfc | string | Required | User RFC |
profile | int | Required | (Default = 3) User profile type |
stamps | int | Optional | “Stamps” to be assigned at creation |
unlimited | bool | Required | Specify if you will have unlimited “Stamps” |
active | bool | Required | (Default = true) User status |
Password Policies
- The password must not be the same as the username.
- The password must include at least one capital letter.
- Password must include at least one lowercase letter.
- The password must include at least one number.
- The password must include at least one symbol(special character).
- The password must not include blank spaces.
- The password must be between 10 and 20 characters.
- The password must not include unusual special symbols.
The accepted special characters are the following:
!@#$%^&*()_+=\[{\]};:<>|./?,-]
Request example
curl --request POST \ --url https://api.test.sw.com.mx/management/api/users \ --header 'Authorization: Bearer $token' \ --header 'Content-Type: application/json' \ --data '{ "Email": "sw@test.mx", "Password": "1q2w3e4r", "Name": "SW SW SW", "RFC": "XAXX110101111", "Profile": 3, "Stamps": 20, "Unlimited": false, "Active": true }'