Loading...
 

Create Account


HTTP VerbPOST
URI Template/account/{accID}
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code200 OK
Invoked ByResellers only.
Response ModeSynchronous.

Sample Request

POST /pncp-external-api-rest/account/88 HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP S7CrFAVGB0d+0IDNHnUITf0aEsIyrb6sn/d1Y30V+FM=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 614
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{
   "name":"MyNewResellerName",
   "description":"This is a description of my new reseller.",
   "email":"mail@mynewreseller.com",
   "adminUrl":"http://www.admin.mynewreseller.com/login",
   "reportBugEmail":"bugs@mynewreseller.com",
   "clientAssignedId":"123",
   "ubersmithId":"123",
   "userName":"myusername@mydomain.com",
   "password":"myPassword",
   "passPhrase":"myPassPhrase",
   "primaryContactName":"John",
   "primaryContactSurname":"Smith",
   "primaryContactEmail":"johns@mynewreseller.com",
   "primaryContactPhoneNumber":"458956891258",
   "sendWelcomeEmail":false,
   "billingMethod":"EXTERNAL",
   "assignedPricingProfileResource":{
      "resourceURL":"/pricingprofile/112"
   },
   "permissions":{  
      "reseller":true,
      "virtual":true,
      "bareMetal":false
   }
}

Sample Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: application/vnd.pncp.v.5.0+json
Transfer-Encoding: chunked
Date: Wed, 25 Jan 2012 16:56:27 GMT

{
   "resourceURL":"/account/99"
}

Field Info

Field Name
Required for Resellers
Required for End-Clients
adminUrl
YES
NO
clientAssignedId
NO
NO
ubersmithID
NO
NO
description
NO
NO
email
YES
YES
name
YES
YES
permissions
YES
YES
passPhrase
YES
YES
password
YES
YES
primaryContactEmail
YES
YES
primaryContactName
YES
YES
primaryContactPhoneNumber
YES
YES
primaryContactSurname
YES
YES
reportBugEmail
YES
NO
sendWelcomeEmail
NO
NO
assignedPricingProfileResource
NO
NO
billingMethod
NO
NO
userName
YES
YES

Notes

  • The adminUrl and reportBugEmail fields are only considered for accounts of type RESELLER. If set for an END_CLIENT, they will be ignored.
  • assignedPricingProfileResource must be a pricing profile owned by the direct parent of the account to be created. Alternatively the default pricing profile of the direct parent can be passed here (e.g. /account/2645/defaultresellerpricingprofile).
  • billingMethod can be set to either UBERSMITH or EXTERNAL (default).
  • ubersmithId is only used for internal resellers and can be left out.