get-bank-account-detail
Method: GET
Path: /customers/{customer_id}/bank-accounts/{account_id}
Tags: Customers
Summary
Retrieve a bank account
Description
Retrieve a specific bank account for a customer. Returns a CustomerBankAccount object.
Storefront SDK Usage
SDK Method: sdk.customer.getBankAccount()
Example:
typescript
const { data, error } = await sdk.customer.getBankAccount({
account_id: "acct_789"
});
if (error) {
console.error("Failed to get bank account:", error);
return;
}
console.log("Bank account:", data.bank_account);TypeScript Definition
typescript
"get-bank-account-detail": {
parameters: {
query?: never;
header?: never;
path: {
/** @description Bank account id */
account_id: string;
/** @description Customer id */
customer_id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
content?: {
bank_account?: components["schemas"]["CustomerBankAccount"];
};
};
};
};
401: components["responses"]["Unauthorized"];
404: components["responses"]["NotFound"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["CustomerBankAccount"] | CustomerBankAccount |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["NotFound"] | NotFound |
Responses
200
OK
401
Not authorized for given operation on the Resource
404
Requested resource not found
OpenAPI Definition
json
{
"tags": [
"Customers"
],
"operationId": "get-bank-account-detail",
"summary": "Retrieve a bank account",
"description": "Retrieve a specific bank account for a customer. Returns a `CustomerBankAccount` object.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/get-bank-account-detail",
"description": "API reference for the get-bank-account-detail operation"
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"bank_account": {
"$ref": "#/components/schemas/CustomerBankAccount"
}
},
"type": "object"
}
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "customers",
"x-speakeasy-ignore": false,
"x-speakeasy-name-override": "getBankAccountDetail"
}Auto-generated from OpenAPI spec and TypeScript definitions