Skip to main content

Get Customer Accounts


Use this endpoint to retrieve account information for a given customer. This is a GET request.

Headers

    Content-Type String - (Required)
    application-json


    Accept String - (Required)
    application-json


    Authorization String - (Required)
    Bearer {ACCESS_TOKEN} (See Authentication)


Parameters

    CUSTOMER_ID String (part of URL) - (Required)
    The specific Customer ID to retrieve


Returns

    id String
    The customer ID


    accountDetails object
    Details of customer’s bank account


Get Request

GET - /v1/customers/{CUSTOMER_ID}/accounts
GET Request
1curl --location --request GET '{API_BASE_URL}/v1/customers/{CUSTOMER_ID}/accounts' \
2--header 'Content-Type: application/json' \
3--header 'Accept: application/json' \
4--header 'Authorization: Bearer {ACCESS_TOKEN}' 

Response Body

Response
1{ 
2	"customerId": "{CUSTOMER_ID}", 
3	"accountDetails": 
4		[{ "accountId": 0, 
5		"financialInstitutionId": 0, 
6		"financialInstitutionName": "string", 
7		"logoUrl": "string", 
8		"iconUrl": "string", 
9		"accountLastFourDigits": "string", 
10		"accountType": "string", 
11		"accountStatus": "string", 
12		"preferred": boolean, 
13		"routingNumber": "string", 
14		"creationDate": "2022-05-27T18:36:47.630Z" }] 
15}