Loading...
 

Get List of Services by Account


HTTP VerbGET
URI Template/account/{accID}/service
MIME Typeapplication/vnd.pncp.v.5.0+json onwards
Normal HTTP Response Code200 OK
Invoked ByAny organization that has an Ubersmith account.
Response ModeSynchronous.

Sample Request

GET /pncp-external-api-rest/account/88/service HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json  
Authorization: PNCP kp4ln0VWzuXkSYpvBNb2xOs7GPUPqn1E9CoQohYo2vM=
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-store
Content-Type: application/vnd.pncp.v.5.0+json
Transfer-Encoding: chunked 
Date: Mon, 26 Oct 2015 08:56:08 GMT
[
   {
    "description": "Parent Service Description",
    "servicePlan": "Development",
    "billingPeriod": "MONTHLY",
    "currentRenewalPeriodStart": 1447225200000,
    "currentRenewalPeriodEnd": 1447225200000,
    "renewed": true,
    "cost": 76.8,
    "status": "ACTIVE",
    "paymentDetails": "visa",
    "resource": {
      "resourceURL": "/service/23300"
    },
    "parentResource": null
  },
  {
    "description": "Child Service Description",
    "servicePlan": "Setup Fee",
    "billingPeriod": "ONE_TIME_FEE",
    "currentRenewalPeriodStart": 1447225200000,
    "currentRenewalPeriodEnd": null,
    "renewed": false,
    "cost": 50,
    "status": "ACTIVE",
    "paymentDetails": "visa",
    "resource": {
      "resourceURL": "/service/23301"
    },
    "parentResource": {
      "resourceURL": "/service/23300"
    }
  }]