Rest End-point
URL: /services/rest/customer-user/create
method: POST
Parameters
name | description | example value | validation rules |
---|---|---|---|
contactName | User's contact name | John Doe | none |
User's e-mail. | john@doe.com | optional, but if provided must be a valid e-mail | |
username | username of the user to be created. | 1212412@testReseller | required, can't contain spaces. For the phone applications we will use customer@reseller as the username. |
password | Password | password | required |
customer | Name of customer | exampleCustomer | required, can't contain spaces. Customer with given name must not exist. For the phone applications we will use customer@reseller as the customer name, the same like for username. |
reseller | Name of reseller | resellerName | required, can't contain spaces and '@'. Reseller with given name must exist |
phoneNumber | Phone number to contact with user | 999444111 | optional, can contain only +, " " and digits, no other validation |
applyFreeCredits | flag indicating whether we should add free credits to account | false | required, value must be either "true" or "false", case insensitive |
Important: parameter names are case sensitive.
Response
Reponse will be sent as a JSON with single value. Example:
{"status":0}
Possible statuses
0, 1, 2, 201, 220, 301, 400, 9999
Status codes and their meaning: User and Reseller REST API Response Status Codes