Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

method: POST


Note:  Customer Billing Type is defined by the Reseller property 

defaultCustomerBillingType

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.
resellerNameName of resellerresellerNamerequired, can't contain spaces and '@'. Reseller with given name must exist
resellerPasswordReseller passwordpasswordrequired for authentication
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

...

namedescriptionexample valuevalidation rules
namename of the customer to be createdtest-customerrequired, can't contain spaces. Customer with given name must not exist.
resellerNameName of resellerresellerNamerequired, can't contain spaces and '@'. Reseller with given name must exist
resellerPasswordReseller passwordpasswordrequired for authentication
integrationIdID of the integrationintegrationIdoptional string, default: ""
rotationAlgorithmRotation algoritgmMAX_ROTATIONoptional, if present - must be one of: CONVERSATIONMAX_ROTATION; default: MAX_ROTATION
billingTypeBilling typePRE_PAIDoptional, if present - must be one of: PRE_PAIDPOST_PAID; default: POST_PAID even is reseller Default billing type is Pre-Paid
moChargeMO charge42optional, if present - must be a valid integer; default: 0`

...