Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 9 Next »

Rest End-point

URL: /services/rest/customer-user/create

method: POST

Parameters

namedescriptionexample valuevalidation rules
contactNameUser's contact nameJohn Doenone
emailUser's e-mail.john@doe.comoptional, but if provided must be a valid e-mail
usernameusername of the user to be created.1212412@testResellerrequired, can't contain spaces. For the phone applications we will use customer@reseller as the username.
passwordPasswordpasswordrequired
customerName of customerexampleCustomerrequired, 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.
resellerName of resellerresellerNamerequired, can't contain spaces and '@'. Reseller with given name must exist
phoneNumberPhone number to contact with user999444111optional, can contain only +, " " and digits, no other validation
applyFreeCreditsflag indicating whether we should add free credits to accountfalserequired, 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

  • No labels