Loading...
 

Get Account Details


HTTP VerbGET
URI Template/account/{accID}
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code200 OK
Invoked By Resellers can invoke this for their own account as well as any other account they own. End-clients can invoke this for their account only..
Response ModeSynchronous.

Sample Request

GET /pncp-external-api-rest/account/96 HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP 5/GJyHh6STKjWQzC0TO5mxrYcUWujUMavvOLwJyyax4=
Content-Length: 0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

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: Tue, 31 Jan 2012 15:54:24 GMT

{  
   "name":"MyResellerName",
   "email":"mail@domain.com",
   "description":"This is a description of my reseller.",
   "adminUrl":"http://www.myreseller.com/admin",
   "clientAssignedId":null,
   "reportBugEmail":" reportbug@domain.com ",
   "accountStatus":"GOOD_STANDING",
   "accountResource":{  
      "resourceURL":"/account/10327"
   },
   "signUpDate":"2013/09/26 01:18:41",
   "parentAccountResource":{  
      "resourceURL":"/account/1"
   },
   "primaryContactResource":{  
      "resourceURL":"/account/10327/primaryContact"
   },
   "technicalContactResource":{  
      "resourceURL":"/account/10327/technicalContact"
   },
   "billingMethod":"EXTERNAL",
   "assignedPricingProfileResource":{  
      "resourceURL":"/pricingprofile/1281"
   },
   "permissions":{  
      "reseller":true,
      "virtual":true,
      "bareMetal":false
   }
}

Notes

  • The field signUpDate is a date of format yyyy/MM/dd HH:mm:ss.
  • The adminUrl and reportBugEmail fields are only considered for accounts with the reseller permission. If set when reseller permission is false, they will be ignored.
  • The assignedPricingProfileResource field will only be populated if the account accessed is a child down the tree of the account performing the call.
  • The field billingMethod can be set to either UBERSMITH or EXTERNAL.
  • The field accountStatus can be set to GOOD_STANDING, USERS_SUSPENDED, ON_HOLD, CANCEL_REQUESTED, CANCELLED, TERMINATED or END_CLIENT.