Skip to main content

Save bank account by account ID

PUT 

https://api.publicsquare.com/accounts/:accountId/business/bank-account

Save the business bank account by account ID.

Permissions

  • business:write

Request

Path Parameters

    accountId stringrequired

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

OK

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

Authorization: X-API-KEY

name: X-API-KEYtype: apiKeyscopes: business:writedescription: Authorization by API Key inside request's X-API-KEY headerin: header
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());
Request Collapse all
Base URL
https://api.publicsquare.com
Auth
Parameters
— pathrequired
Body required
{
  "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"
}
ResponseClear

Click the Send API Request button above and see the response here!