Create Bank Account
print_mail.bank_accounts.create(BankAccountCreateParams**kwargs) -> BankAccount
POST/print-mail/v1/bank_accounts
Create a bank account. A US bank account is created by setting bankCountryCode to US and providing accountNumber and routingNumber. A canadian bank account can be created by specifying bankCountryCode as CA and setting accountNumber, routeNumber, and transitNumber accordingly.
You must specify either signatureImage or signatureText. The image can be supplied as either a URL or a multipart file upload.
Create Bank Account
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
bank_account = client.print_mail.bank_accounts.create(
account_number="1234567",
bank_country_code="US",
bank_name="Test Bank",
signature_text="Example",
bank_primary_line="145 mulberry st",
bank_secondary_line="new york ny 10013",
routing_number="123456789",
)
print(bank_account.id){
"id": "bank_account_12345",
"object": "bank_account",
"live": false,
"bankName": "Test Bank",
"bankPrimaryLine": "145 mulberry st",
"bankSecondaryLine": "new york ny 10013",
"bankCountryCode": "US",
"accountNumber": "1234567",
"routingNumber": "123456789",
"signatureText": "Signature",
"createdAt": "2020-11-12T23:23:47.974Z",
"updatedAt": "2020-11-12T23:23:47.974Z"
}Returns Examples
{
"id": "bank_account_12345",
"object": "bank_account",
"live": false,
"bankName": "Test Bank",
"bankPrimaryLine": "145 mulberry st",
"bankSecondaryLine": "new york ny 10013",
"bankCountryCode": "US",
"accountNumber": "1234567",
"routingNumber": "123456789",
"signatureText": "Signature",
"createdAt": "2020-11-12T23:23:47.974Z",
"updatedAt": "2020-11-12T23:23:47.974Z"
}