Bank accounts
Generate Bank Link
US customers only. Returns a hosted page where the customer links the bank account for ACH_PULL payins.
POST
cURL
Generate Bank Link
How linking works
- Your backend calls this endpoint for a
VERIFIEDUS customer and getswidget_url. - Your app opens
widget_url. The customer signs in to their bank and picks the account. - The customer lands on
redirect_url, whether linking worked or not. - Call Fetch Bank Accounts. The account is in
accounts,PROCESSINGuntil the connection completes, thenVERIFIED. NoBANKwebhook is sent, so poll. - Create an
ACH_PULLpayin quotation with that account’sidasbank_id. It’s required: without it the quotation fails withNo linked bank account found for the selected payment method. Zapyd debits that account, so there are no deposit instructions.
In sandbox, the hosted page isn’t available for test customers. Call Mock Bank Verification with the US
customer_id, bank_status: "VERIFIED" and no bank_id: it creates a linked test account that Fetch Bank Accounts returns.Error Codes and Messages
Authorizations
Body
application/json