Customer Lookup

Customer Lookup API Method

This API allows for the retrieval of current POB partners’ customer information.

Endpoint

POST ~/customers/accounts/search

SLA Response and Resolution Time

1s

Request

RequestParameters

Parameter NameTypeFormatRequiredDescription
Content-TypestringHeaderRequired"application/json"
accountNumberstringBodyRequiredThe account number
retailer: storeNumberstringBodyOptionalStore number
retailer: storeNamestringBodyOptionalStore name
retailer: stateCodestringBodyOptionalState code
retailer: latitudedecimalBodyOptionalStore location latitude
retailer: longitudedecimalBodyOptionalStore location longitude

Request Body Sample:

{"accountNumber": "5165297873423453","retailer": {"storeNumber": "string","storeName": "xd","stateCode": "ca","latitude": 2.2,"longitude": 1.1}}

Response

Response Parameters

If the GET request gets customer information success, the following response fields will be returned along with a 200HTTP response code.

Parameter NameTypeRequiredDescription
customerIdstringRequiredThe customer identifier
accountIdstringRequiredThe account identifier
firstNamestringRequiredFirst name of cardholder
lastNamestringRequiredLast name of cardholder
zipCodestringRequiredCardholder home zip code
expiryYearstringRequiredFormat in YYYY
expiryMonthstringRequiredFormat in MM. e.g. 01 for January

If the GET request gets customer information fails, the following response fields will be returned along with related HTTP responsecodesand Error codes.

Parameter NameTypeRequiredDescription
errorCodestringRequiredThe error code
errorMessagestringRequiredThe error message

SampleResponses

Get valid customer

{"customerId": "0033B00000ToKB8QAN","accountId": "a0I3B000001qiEsUAI","firstName": "Nancy","lastName": "Yang","zipCode": "02110","expiryYear": "2030","expiryMonth": "01"}

Customer not found

{"errorCode":"ACCOUNT_NOT_FOUND","errorMessage":"The provided account doesn't exist ..."}

HTTP Response Codes

Below is a complete list of the response codes that the application needs to return for requests. In the event of network or infrastructure issues, other response codes may be returned by the infrastructure.

HTTP Response CodesDescription
200 OKThe request was completed successfully
400 BAD REQUESTGeneral error when the request could not be fulfilled due to errors such as validation errors, missing required data, etc
401 UNAUTHORIZEDError code response for missing or invalid authentication token
404 NOT FOUNDThe requested resource is not found. e.g. The PAN is not found, or the card is expired

Error Codes

Error response messages contain the following parameters:

Error CodeError Description
ACCOUNT_EXPIREDAccount expired
ACCOUNT_NOT_FOUNDAccount not found
AUTHORIZATION_FAILEDAuthorization failed
GATEWAY_TIMEOUTGateway timeout
ACCOUNT_BLOCKEDAccount blocked

Information need to be Provided by Partner

OAuth

If partner choose OAuth 2.0 to do Authentication, Green Dot will need credentials of OAuth, please contact Green Dot Product Owner.For non-Prod environment, Green Dot technical team also need these credentials for testing.

Test Data

For Customer Info API, test account for different scenarios need to be provided, please send email with these test data to [email protected].