GraphQL API for Retrieve Account Information
Version 1.0.0
Endpoint
POST
https://eidp-test.att.com/msapi/v1/customers/query
Copy
Retreive Account Profile by subscriber number or billingaccountnumber.
description
Header Parameters
- serviceTypestringRequiredEnum: [wireless, wirelessbroadband, fiber]account type
- idp-trace-idstring
- topicsstringRequiredEnum: [accounts, individuals, products, contracts, subscribers, equipment]default to accounts
- idpctx-session-idstring
Body Parameters
- objectRequired
- querystring
Responses
Successful response with individual data
Body
application/json
- objectRequired
- idstring
- firstNamestring
- lastNamestring
- languageAbilityarray of objects
- statusstring
- contactMediumarray of objects
- accountsarray of objects
Language cURL
REQUEST
Example getCustomer_account_information_query
1
2
3
4
5
6
7
8
9
10
11
12
13curl --request POST \
--url https://eidp-test.att.com/msapi/v1/customers/query \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'idp-trace-id: string' \
--header 'idpctx-session-id: string' \
--header 'serviceType: string' \
--header 'topics: string' \
--data '
{
"query": "{ getCustomer( accountNumber:534102104648, subscriberNumber:1234567890 ) { id firstName lastName status contactMedium { mediumType isPreferred characteristic { contactType phoneNumber emailAddress place { id } } } accounts { id accountType accountSubType liabilityType businessType ratingType serviceType firstNetIndicator subscribersCount accountState { state } accountLocked extraSecurityCode fanDetails { fanId fanDescription } contact { contactMedium { mediumType isPreferred characteristic { contactType phoneNumber emailAddress place { id } } } } bill { billStructure { presentationMedia { id name } } } subscribers { status { status } phoneNumber isFirstNetSubscriber contactMedium { mediumType isPreferred characteristic { contactType phoneNumber emailAddress place { id } } } profile { individualId firstName lastName } serviceCharacteristic { devices { type imei imeiType sim { iccid imsi } } } products { productOfferingTypeGroup id rootProductId productOfferingId name description status { status } productCharacteristic { name value valueType } } } } } }"
}
'RESPONSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144{
"id": "string",
"firstName": "string",
"lastName": "string",
"languageAbility": [
{
"languageCode": "string",
"languageName": "string"
}
],
"status": "string",
"contactMedium": [
{
"mediumType": "string",
"isPreferred": false,
"characteristic": {
"contactType": "string",
"phoneNumber": "string",
"emailAddress": "string",
"place": {
"id": "string"
}
}
}
],
"accounts": [
{
"id": "string",
"accountType": "string",
"accountSubType": "string",
"liabilityType": "string",
"businessType": "string",
"ratingType": "string",
"serviceType": "string",
"firstNetIndicator": "string",
"subscribersCount": 0,
"accountState": {
"state": "string"
},
"accountLocked": false,
"extraSecurityCode": "string",
"fanDetails": {
"fanId": "string",
"fanDescription": "string"
},
"contact": [
{
"contactMedium": [
{
"mediumType": "string",
"isPreferred": false,
"characteristic": {
"contactType": "string",
"phoneNumber": "string",
"emailAddress": "string",
"place": {
"id": "string"
}
}
}
]
}
],
"bill": {
"billStructure": {
"presentationMedia": [
{
"id": "string",
"name": "string"
}
],
"cycleSpecification": {
"id": "string",
"name": "string",
"frequency": "string"
}
}
},
"subscribers": [
{
"status": {
"status": "string"
},
"subscriberType": "string",
"phoneNumber": "string",
"isPreferredCTN": false,
"isFirstNetSubscriber": false,
"contactMedium": [
{
"mediumType": "string",
"isPreferred": false,
"characteristic": {
"contactType": "string",
"phoneNumber": "string",
"emailAddress": "string",
"place": {
"id": "string"
}
}
}
],
"profile": {
"individualId": "string",
"firstName": "string",
"lastName": "string"
},
"serviceCharacteristic": {
"devices": [
{
"type": "string",
"imei": "string",
"imeiType": "string",
"sim": {
"iccid": "string",
"imsi": "string"
}
}
]
},
"products": [
{
"productOfferingTypeGroup": "string",
"id": "string",
"rootProductId": "string",
"productOfferingId": "string",
"name": "string",
"description": "string",
"status": {
"status": "string"
},
"productCharacteristic": [
{
"name": "string",
"value": "string",
"valueType": "string"
}
]
}
]
}
]
}
]
}