Accounts
Returns an account's custom services and states
Returns a list and details of all custom services and states defined for a specified account.
Authorization
thingspace_oauth VZ-M2M-Token AuthorizationBearer <token>
This is the ThingSpace token, from Credentials and Tokens is used
In: header
VZ-M2M-Token<token>
M2M Session Token (How to generate an M2M session token?)
In: header
Path Parameters
aname*string
Account name.
Response Body
application/json
application/json
curl -X GET "https://example.com/m2m/v1/accounts/0252012345-00001/statesandservices"{ "engagement": [ { "engagementId": "1234", "chargingGroup": "Engagement1234", "services": [ { "name": "Svc1", "description": "Usage Segmentation - Main Line.", "states": [ { "name": "Svc1 Activate", "workflowSequenceNumber": 1, "servicePlans": [ "4523aef7250f67205fd5", "4d4090c0f2d48814c94d" ] }, { "name": "Svc1 No Telematics", "workflowSequenceNumber": 3, "servicePlans": [ "4523aef7250f67205fd5", "4d4090c0f2d48814c94d" ] }, { "name": "Svc1 Deactivate", "workflowSequenceNumber": 2, "servicePlans": [ "4523aef7250f67205fd5", "4d4090c0f2d48814c94d" ] } ] }, { "name": "WIFI", "description": "Usage Segmentation - WiFi.", "states": [ { "name": "WIFI Redirect", "workflowSequenceNumber": 2, "servicePlans": [ "4d4090c0f2d48814c94d" ] }, { "name": "WIFI Trial", "workflowSequenceNumber": 4, "servicePlans": [ "4d4090c0f2d48814c94d" ] }, { "name": "WIFI Goodwill", "workflowSequenceNumber": 6, "servicePlans": [ "4d4090c0f2d48814c94d" ] }, { "name": "WIFI Disable", "workflowSequenceNumber": 3, "servicePlans": [ "4d4090c0f2d48814c94d" ] } ] } ] } ]}Returns information about a specified account GET
Returns information about a specified account.
Returns information for all leads associated with the account GET
When HTTP status is 202, a URL will be returned in the Location header of the form /leads/{aname}?next={token}. This URL can be used to request the next set of leads.

