REST Paths
The following REST paths are available for this service.
POST admin.plan.add
To override the Content-type in your clients HTTP Accept Header, append ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /json/syncreply/admin.plan.add HTTP/1.1
Host: vpbx.virtuallandlines.co.za
Content-Type: application/json
Content-Length: length
{"plan":{"id":0,"clientType":32,"name":"String", "description":"String", "period":0,"idTariffs":0,"tariffsPlans":"String", "tariffsPlansList":[{}],"amount":0,"startupCost":0,"periodCost":0,"idReseller":-1,"type":1,"startTime":"0001-01-01T00:00:00.0000000", "endTime":"0001-01-01T00:00:00.0000000", "periodNumber":0,"resolution":0,"minimalTime":0,"voiceRate":0},"tariffsRates":[{"tariffRateId":0,"label":"String"}],"tariffRateLabels":[{"label":"String", "voiceRate":0,"rateMultiplier":0,"rateAddition":0,"gracePeriod":0,"minimalTime":0,"resolution":0,"surchargeTime":0,"surchargeAmount":0,"fromDay":0,"toDay":0,"fromHour":0,"toHour":0,"freeSeconds":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"plan":{"tariffsPlansList":[{}],"id":0,"name":"String", "description":"String", "amount":0,"startupCost":0,"periodCost":0,"periodNumber":0,"startTime":"0001-01-01T00:00:00.0000000", "endTime":"0001-01-01T00:00:00.0000000", "planIsPeriodic":false,"dontShowAccountState":false,"periodType":"Monthly"},"responseStatus":{"errorCode":"String", "message":"String", "stackTrace":"String", "errors":[{"errorCode":"String", "fieldName":"String", "message":"String"}]}}