Query People By Phone Number
Introduction
This API returns a list of summary information about the people that have the specified phone number.
Method | Service Name | Service Type |
---|---|---|
GET | personManagement/v1/people |
-
Post-Production URI:
https://api.certification.blackhawknetwork.com/personManagement/v1/people?{phone}={phoneNumber}}&{first}={firstIndex}&{maximum}={maximumNumofEntries}&{sortKey}=(summary|details).{attributeName}&{ascending}={true|false}
-
Production URI:
https://api.blackhawknetwork.com/personManagement/v1/people?{phone}={phoneNumber}}&{first}={firstIndex}&{maximum}={maximumNumofEntries}&{sortKey}=(summary|details).{attributeName}&{ascending}={true|false}
Request Header Attributes
All of these header attributes are optional; however, if a client wants idempotency support then they should specify all three on every request.
Name | Type | Mandatory | Description |
---|---|---|---|
requestorId | String | N | A value defined by the client application that can be used to uniquely identify that client application. If the client application does not specify a value, a globally unique identifier will be filled in automatically. |
requestId | String | N | A value defined by the client application that can be used to uniquely identify that specific request from the client. This value should be set if the client application wants to take advantage of an idempotent operation on a service. |
previousAttempts | Integer | N | The number of times this same request has been attempted unsuccessfully before. A value that is greater than zero will cause the service to view this request as a retry attempt and it will be treated idempotently. |
Request Elements
Name | Type | Required | Description |
---|---|---|---|
phone | String | Yes | The phone number of the desired person |
Response Elements
Name | Type | Description |
---|---|---|
personSummaryList | List | List of matching Person Summary entities |
Person Summary
Name | Type | Max. Length | Mandatory | Description |
---|---|---|---|---|
entityId | URI | 255 | N | A reference to the URI for the person |
firstName | String | 255 | N | First name of the person |
middleName | String | 255 | N | Middle name of the person |
lastName | String | 255 | N | Last name of the person |
emailAddress | String | 255 | N | Email address of the person. It is a read only field. |
phoneNumber | String | 255 | N | Phone number of the person. It is a read only field. |
street | String | 255 | N | Street address of the person. It is a read only field. |
addressLine1 | String | 255 | N | Address Line1 of the person. It is a read only field. |
addressLine2 | String | 255 | N | Address Line2 of the person. It is a read only field. |
addressLine3 | String | 255 | N | Address Line3 of the person. It is a read only field. |
city | String | 255 | N | City of the person. It is a read only field. |
stateOrProvince | String | 255 | N | State or Province of the person. It is a read only field. |
postalCode | String | 20 | N | The postal code |
Sample Request and Response
GET /personManagement/v1/people?phone=555-1212 HTTP/1.1
requestorId: RZ2JMRQW0SM680Q0MF2M8FBFMR
Content-Type: application/json; charset=UTF-8
Accept: application/json; charset=UTF-8
Host: api.blackhawknetwork.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.2 (java 1.5)
HTTP/1.1 200 OK
Date: Fri, 06 Jul 2012 20:55:45 GMT
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
{
"results":[
{
"entityId": "https://api.blackhawknetwork.com/personManagement/v1/person/0WXHWZQ7KJ2WQFAMQG1A0FVX8H",
"firstName": "Jim",
"lastName": "Jameson",
"emailAddress": "[email protected]",
"phoneNumber": "555-1212",
"street": "123 Main Street",
"city": "Burbank",
"stateOrProvince": "Illinois",
"postalCode":"12345"
},
{
"entityId": "https://api.blackhawknetwork.com/personManagement/v1/person/7HAZBMX7DR2L5FDLLGVDRNDYTM",
"firstName": "Jack",
"lastName": "Jameson",
"emailAddress": "[email protected]",
"phoneNumber": "555-1212",
"street": "123 Main Street",
"city": "Burbank",
"stateOrProvince": "Illinois",
"postalCode":"12345"
}
],
"total":2,
"parameters":{"first":0,"maximum":10,"ascending":true}
}
Updated 4 months ago