Get Retail Chain User Info

GetRetailChainUserInfo API Method

This operation is used to get RetailChainUser (teller) information by retailChainUserId.

📘

Every request triggered should have a unique X-GD-RequestId value in the header.

Syntax

POST {baseUrl}/retailer/user/information 

Example Request

Success Request

POST {baseUrl}/retailer/user/information 
Authorization: bearer {token}
Content-Type: application/json
X-GD-RequestId: test101
{
    "metadata": {
        "merchantId": "fscc0342",
        "registerId": "01",
        "requestDateTime": "2023-11-09T13:25:45Z",
        "storeId": "CC970",
        "userId": "[email protected]"
    },  
  "retailChainUserId": "[email protected]" 
}

Negative Request

POST {baseUrl}/retailer/user/information
Authorization: bearer {token}
Content-Type: application/json
X-GD-RequestId: test101
{
    "metadata": {
        "merchantId": "fscc0342",
        "registerId": "01",
        "requestDateTime": "2023-11-09T13:29:06Z",
        "storeId": "CC970",
        "userId": "[email protected]"
    },  
  "retailChainUserId": "[email protected]" 
}

Request Parameters

ParameterRequired (Y/N)Format/ Data TypePatternDescription
X-GD-RequestIdYesStringMaxLength:50It is a unique transaction identifier that is generated by the retailer.
requestDateTimeYesDateTime2023-08-08T12:34:56ZTime stamp at which transaction occurred.
The time stamp has to be in UTC time zone and follow the following date and time formats:
• YYYY-MM-DDTHH:mm:ssZ
registerIdNoStringMaxLength: 20Register where the transaction occurred.
userIdYesStringMaxLength:50The unique ID of the user generating the transaction.
storeIdYesStringMaxLength: 20The store number associated with the retailer that sold the package.
If not supplied, InvalidParameter (Code:100) error will be return.
merchantIdYesStringMaxLength: 20Unique merchant Id. It is defined by Green Dot – Merchant corresponding with Retailer.
retailChainUserIdYesStringMaxLength: 50The unique ID of the user whose information is requested.

Example Response

Success Response

HTTP/1.1 200 OK
Content-Type: application/json
X-GD-RequestId: test101
X-GD-ResponseId: 0237f1af-3168-4907-a86f-dafc5b42957e
X-GD-ResponseCode: 0

{
    "retailChainUserId": "[email protected]",
    "firstName": "Jack",
    "lastName": "Bauer",
    "last4DigitsOfCommissionCard": "",
    "isActive": true,
    "phoneNumber": "6648763215",
"email": "[email protected]",
"lastFourSsn": "1234",
    "metadata": {
        "requestId": "test101",
        "responseId": "0237f1af-3168-4907-a86f-dafc5b42957e",
        "responseDateTime": "2023-11-09T13:25:46.1924552Z",
        "responseCode": 0,
        "responseDescription": "Success"}
}

Negative Response

HTTP/1.1 200 OK
Content-Type: application/json
X-GD-RequestId: test101
X-GD-ResponseId: ffdf001f-6167-4006-a1b2-d20255da455e
X-GD-ResponseCode: 861

{
    "retailChainUserId": null,
    "firstName": null,
    "lastName": null,
    "last4DigitsOfCommissionCard": null,
    "isActive": false,
    "phoneNumber": null,
"email": null,
"lastFourSsn": null,
    "metadata": {
        "requestId": "test101",
        "responseId": "ffdf001f-6167-4006-a1b2-d20255da455e",
        "responseDateTime": "2023-11-09T13:29:08.2211497Z",
        "responseCode": 861,
        "responseDescription": "RetailChainUserNotFound"
    } }

Response Parameters

ParameterFormat/Data TypePatternDescription
requestIdStringMaxLength:50The unique request ID generated from the request.
responseIdStringMaxLength:50The unique Response Identifier (generated by GreenDot).
responseDateTimeDateTime2023-09-07T16:12:23.4541445+08:00Time stamp at which transaction occurred.
The time stamp is in UTC time zone and follow the following date and time formats:
• YYYY-MM-DDTHH:mm:ssfffffffK
responseCodeNumericMaxLength:4Indicates success and failure of the response codes. It is in the numeric format.
responseDescriptionStringMaxLength:255Describes the Response Code in more detail. It is in the String format.
RetailChainUserIdMaxLength: 50MaxLength: 50The unique ID of the user whose information is requested.
FirstNameStringMaxLength: 30User’s first name.
LastNameStringMaxLength: 30User’s last name.
Last4DigitsOfCommissionCardString8764If there already a FSC card is associated, this field contains the last 4 digits of the card. Otherwise it’s empty.
e.g. : ********1234
IsActiveBooltrue/falseIf the user is active this Boolean will set to true, else it will be false.
PhoneNumberStringMaxLength: 25The phone number of the user.
EmailStringEmail format: [email protected]
MaxLength: 40
Email info of the user.
lastFourSsnString“2347”Last 4 digits of SSN of user.

Response Cases

CodeCodeTextResponseDescriptionDescription
0SuccessN/ASuccess.
100InvalidParameter• RequestId is required
• RequestDateTime is required
• UserId is required
• StoreId is required
• MerchantId is required
• The RetailChainUserId field is required.
• RequestId is too long
• UserId is too long
• StoreId is too long
• MerchantId is too long
• The field RetailChainUserId must be a string with a minimum length of 1 and a maximum length of 50.
Invalid parameter in the request. Examples: MerchantID not supplied, StoreID not supplied.
130InvalidMerchantInvalidMerchantMerchantId in request has not been found/enabled in the system.
800InvalidStoreStore was not foundStore is not found; store is not for the partner or store does not support this operation.
861RetailChainUserNotFoundRetailChainUserNotFound
User is not found.
Either UserID in mata or retailChainUserId in request is not found in system.
862RetailChainUserNotActiveUser is not active.UserId in request metadata is not active.
1000GeneralFailureGeneralFailureService failure.