Lookup a linked bank account
embed.linked_bank_accounts.get(linked_bank_account_id, **kwargs) -> LinkedBankAccountV1 { data, meta, response_type }
/v1/linked_bank_accounts/{linked_bank_account_id}
Retrieves the details of a linked bank account that has previously been created. Supply the unique linked bank account id, and Straddle will return the corresponding information. The response includes masked account details for security purposes.
Parameters
linked_bank_account_id: String
correlation_id: String
request_id: String
Returns
Lookup a linked bank account
require "straddle"
straddle = Straddle::Client.new(
api_key: "My API Key",
environment: "production" # defaults to "sandbox"
)
linked_bank_account_v1 = straddle.embed.linked_bank_accounts.get("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
puts(linked_bank_account_v1)
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"bank_account": {
"account_holder": "account_holder",
"account_mask": "account_mask",
"institution_name": "institution_name",
"routing_number": "routing_number"
},
"created_at": "2019-12-27T18:11:19.117Z",
"purposes": [
"charges"
],
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"updated_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"metadata": {
"foo": "string"
},
"platform_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}Returns Examples
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"bank_account": {
"account_holder": "account_holder",
"account_mask": "account_mask",
"institution_name": "institution_name",
"routing_number": "routing_number"
},
"created_at": "2019-12-27T18:11:19.117Z",
"purposes": [
"charges"
],
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"updated_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"metadata": {
"foo": "string"
},
"platform_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}