Save bank account by account ID
PUThttps://api.publicsquare.com/accounts/:accountId/business/bank-account
Save the business bank account by account ID.
Permissions
business:write
Request
Path Parameters
accountId stringrequired
- application/json
Bodyrequired
verification_codestringnullable
Bank account verification code
Example:
5e115eac-1209-4f19-641c-08d6d484e2fe
account_holder_namestringnullable
Bank account holder name
Example:
Test Corporation
account_holder_typestringnullable
Bank account holder type
Example:
company
account_typestringnullable
Bank account type
Example:
checking
routing_numberstringnullable
Bank routing number
Example:
110000000
account_numberstringnullable
Bank account number
Example:
196420674034
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (auto)
Schema
idstringnullable
Bank account ID
Example:
bba_A4Ud7DxT2mGyj8hEyHx2KSfsp
account_idstringnullable
Account ID
Example:
acc_B518niGwGYKzig6vtrRVZGGGV
account_number_last4stringnullable
Last 4 digits of the account number
Example:
1720
statusstringnullable
Bank account verification status
Example:
verified
fingerprintstringnullable
Fingerprint of the bank account to identify uniqueness
Example:
CC2XvyoohnqecEq4r3FtXv6MdCx4TbaW1UUTdCCN5MNL
created_atdate-timenullable
Date bank account was created
Example:
2024-06-30T01:02:29.212Z
modified_atdate-timenullable
Date bank account was modified
Example:
2024-06-30T01:02:29.212Z
verification_codestringnullable
Bank account verification code
Example:
5e115eac-1209-4f19-641c-08d6d484e2fe
account_holder_namestringnullable
Bank account holder name
Example:
Test Corporation
account_holder_typestringnullable
Bank account holder type
Example:
company
account_typestringnullable
Bank account type
Example:
checking
routing_numberstringnullable
Bank routing number
Example:
110000000
account_numberstringnullable
Bank account number
Example:
196420674034
{
"id": "bba_A4Ud7DxT2mGyj8hEyHx2KSfsp",
"account_id": "acc_B518niGwGYKzig6vtrRVZGGGV",
"account_number_last4": "1720",
"status": "verified",
"fingerprint": "CC2XvyoohnqecEq4r3FtXv6MdCx4TbaW1UUTdCCN5MNL",
"created_at": "2024-06-30T01:02:29.212Z",
"modified_at": "2024-06-30T01:02:29.212Z",
"verification_code": "5e115eac-1209-4f19-641c-08d6d484e2fe",
"account_holder_name": "Test Corporation",
"account_holder_type": "company",
"account_type": "checking",
"routing_number": "110000000",
"account_number": "196420674034"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
errors objectnullable
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"errors": {},
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Not Found
- application/json
- Schema
- Example (auto)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Authorization: X-API-KEY
name: X-API-KEYtype: apiKeyscopes: business:write
description: Authorization by API Key inside request's X-API-KEY headerin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api.publicsquare.com/accounts/:accountId/business/bank-account");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-KEY", "<X-API-KEY>");
var content = new StringContent("{\n \"verification_code\": \"5e115eac-1209-4f19-641c-08d6d484e2fe\",\n \"account_holder_name\": \"Test Corporation\",\n \"account_holder_type\": \"company\",\n \"account_type\": \"checking\",\n \"routing_number\": \"110000000\",\n \"account_number\": \"196420674034\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear