Get Direct Deposit Info

GetDirectDepositInfo API Method

This operation is used to get direct deposit information (account and routing number) for a given account.

📘

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

Syntax

POST {baseUrl}/card/direct-deposit-details 

Example Request

Success Request

POST {baseUrl}/card/direct-deposit-details 
Authorization: bearer {token}
Content-Type: application/json
X-GD-RequestId: test101
{
    "metadata": {
        "merchantId": "fscc0342",
        "registerId": "01",
        "requestDateTime": "2023-11-09T14:05:02Z",
        "storeId": "CC970",
        "userId": "[email protected]"
    },  
  "accountNumber": "",
  "accountIdentifier": "06e33e98-5c40-4c1a-967b-930f28f509a4"
}

Negative Request

POST {baseUrl}/card/direct-deposit-details
Authorization: bearer {token}
Content-Type: application/json
X-GD-RequestId: test101
{
    "metadata": {
        "merchantId": "fscc0342",
        "registerId": "01",
        "requestDateTime": "2023-11-09T14:07:13Z",
        "storeId": "CC970",
        "userId": "[email protected]"
    },  
  "accountNumber": "",
  "accountIdentifier": "06e33e98-5c40-4c1a-967b-930f28f509a8"
}

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.
accountNumberNoString16 digits PAN16 digits number
Note: Either AccountNumber or AccountIdentifier is required
accountIdentifierNoGUIDe5843e05-d367-4bf1-a223-3af46ae18802Newly created unique identifier for sale card, should be using for all subsequent API calls.
Either of AccountNumber / AccountIdentifier required.

Example Response

Success Response

HTTP/1.1 200 OK
Content-Type: application/json
X-GD-RequestId: test101
X-GD-ResponseId: 8dd4b342-b716-4019-af54-3910551ddd1b
X-GD-ResponseCode: 0

{    
    "bankName": "GO2bank",
    "abaRoutingNumber": "124303162",
    "achReferenceNumber": "16360932138674",
    "metadata": {
        "requestId": "test101",
        "responseId": "8dd4b342-b716-4019-af54-3910551ddd1b",
        "responseDateTime": "2023-11-09T14:05:07.2865269Z",
        "responseCode": 0,
        "responseDescription": "Success"
    } }

Negative Response

HTTP/1.1 200 OK
Content-Type: application/json
X-GD-RequestId: test101
X-GD-ResponseId: 3efa565a-e000-45d7-8219-2f45fbaa5174
X-GD-ResponseCode: 110

{    
    "bankName": null,
    "abaRoutingNumber": null,
    "achReferenceNumber": null,
    "metadata": {
        "requestId": "test101",
        "responseId": "3efa565a-e000-45d7-8219-2f45fbaa5174",
        "responseDateTime": "2023-11-09T13:50:37.4678618Z",
        "responseCode": 110,
        "responseDescription": "Account not found"    
} 
}

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.
bankNameString "GO2bank"Bank name of the account.
abaRoutingNumberString "124303162"Routing number of the account.
achReferenceNumberString "16360932138674"ACH Reference number of the account.

Response Cases

CodeCodeTextResponseDescriptionDescription
0SuccessSuccess.
100InvalidParameter• RequestId is required
• RequestDateTime is required
• UserId is required
• StoreId is required
• MerchantId is required
• Either AccountNumber or AccountIdentifier is required
• RequestId is too long
• UserId is too long
• StoreId is too long
• MerchantId is too long
• Invalid length of AccountNumber
Invalid parameter in the request. Examples: MerchantID not supplied, StoreID not supplied.
110InvalidAccountNumber• Account Status is Locked
• Account Status is Restricted
• Account Status is Pending
• Account Status is Closed
• Account Not Found.
• InvalidAccountNumber
Account is not found; account status is not valid
130InvalidMerchantInvalidMerchantMerchantId in request has not been found/enabled in the system.
600UnableToProcessRequestError when getting DD info.
800InvalidStoreStore was not foundStore is not found; store is not for the partner or store does not support this operation.
861RetailChainUserNotFoundUser is not found.UserID in request is not found in system.
862RetailChainUserNotActiveUser is not active.UserId in request is not active.
823CardStatusInvalidCardStatusInvalidCardStatus is not activated. Canot retrieve DD info.
1000GeneralFailureGeneralFailureService failure.