verify-bank-account
Method: POST
Path: /customers/{customer_id}/bank-accounts/{account_id}/verify
Tags: Customers
Summary
Verify a bank account
Description
Set the verification status of a bank account. Only the primary user of the customer account can perform this action. Returns the updated CustomerBankAccount object.
Storefront SDK Usage
SDK Method: sdk.customer.verifyBankAccount()
Example:
typescript
const { data, error } = await sdk.customer.verifyBankAccount(
{ account_id: "acct_789" },
{ is_verified: true }
);
if (error) {
console.error("Failed to verify bank account:", error);
return;
}
console.log("Verification status:", data.bank_account?.is_verified);TypeScript Definition
typescript
"verify-bank-account": {
parameters: {
query?: never;
header?: never;
path: {
/** @description Bank account id */
account_id: string;
/** @description Customer id */
customer_id: string;
};
cookie?: never;
};
requestBody: {
content: {
"application/json": {
is_verified: boolean;
};
};
};
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
content?: {
bank_account?: components["schemas"]["CustomerBankAccount"];
};
};
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
404: components["responses"]["NotFound"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["CustomerBankAccount"] | CustomerBankAccount |
components["responses"]["BadRequest"] | BadRequest |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["NotFound"] | NotFound |
Request Body
Content Types: application/json
Responses
200
OK
400
Bad request
401
Not authorized for given operation on the Resource
404
Requested resource not found
OpenAPI Definition
json
{
"tags": [
"Customers"
],
"operationId": "verify-bank-account",
"summary": "Verify a bank account",
"description": "Set the verification status of a bank account. Only the primary user of the customer account can perform this action. Returns the updated `CustomerBankAccount` object.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/verify-bank-account",
"description": "API reference for the verify-bank-account operation"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"is_verified"
],
"properties": {
"is_verified": {
"type": "boolean"
}
}
}
}
}
},
"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"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "customers",
"x-speakeasy-ignore": false,
"x-speakeasy-name-override": "verifyBankAccount"
}Auto-generated from OpenAPI spec and TypeScript definitions