Skip to main content

Detach bank account from customer

PUT 

https://api.publicsquare.com/payment-methods/bank-accounts/:id/detach

Detach a bank account payment method from a customer in the Account.

Permissions

  • payment-method:write

Request

Path Parameters

    id stringrequired

Responses

OK

Schema
    idstringnullable

    Bank Account ID

    Example: ba_7Ay5mcUXAxwrN6wQEQUVEHBCJ
    account_idstringnullable

    Account ID

    Example: acc_B518niGwGYKzig6vtrRVZGGGV
    environmentstringnullable

    Environment - Can be test or production

    Example: production
    customer_idstringnullable

    Customer ID

    Example: cus_7Ay5mcUXAxwrN6wQEQUVEHBCJ
    billing_details object
    address_line_1stringrequired

    Street name

    Possible values: non-empty and <= 250 characters

    Example: 111 Colorado Ave.
    address_line_2stringnullable

    Apt, Suite or PO Box

    Possible values: <= 250 characters

    Example: Apt 403
    citystringrequired

    City

    Possible values: non-empty and <= 100 characters

    Example: Des Moines
    statestringrequired

    2 or 3 character ISO state code

    Possible values: >= 2 characters and <= 3 characters

    Example: IA
    postal_codestringrequired

    Postal or zip code

    Possible values: non-empty and <= 30 characters

    Example: 51111
    countrystringrequired

    2 character ISO country code

    Possible values: non-empty and <= 2 characters

    Example: US
    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
    account_holder_namestringnullable

    Account Holder Name

    Example: John Doe
    account_holder_typestringnullable

    AccountHolderType - Can be individual or company

    Example: individual
    account_typestringnullable

    AccountType - Can be checking or savings

    Example: checking
    routing_numberstringnullable

    Routing number

    Example: 110000000
    account_number_last4stringnullable

    Last 4 digits of the account number

    Example: 1011

Authorization: X-API-KEY

name: X-API-KEYtype: apiKeyscopes: payment-method: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/payment-methods/bank-accounts/:id/detach");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-KEY", "<X-API-KEY>");
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
ResponseClear

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