const account = await stripe.accounts.create({
country: 'US',
capabilities: {
treasury: {requested: true},
issuing: {requested: true}
}
});
const treasury_account =
await stripe.treasury.accounts.create({
account: account.token,
currency: 'usd'
});
const financial_account =
await stripe.financial_account.retrieve({
id: 'fa_123',
stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
});
//Financial Account Balances
const availableBalance = financial_account.balance.cash;
const inboundPendingBalance = financial_account.balance.inbound_pending;
const outboundPendingBalance = financial_account.balance.outbound_pending;
await stripe.accounts.update(
account.token,
{
payouts: {
schedule: {delay_days: 0, interval: 'hourly'}
}
}
);
await my_custom_event_handler(
'received_credits',
(received_credit) = {
await stripe.withdrawal.create({
description: 'Transfer 30% of credits to Capital repayment account',
type: 'balance_transfer',
account: treasury_account.token,
amount: received_credit.amount * 0.30,
currency: 'usd',
payment_method_data: {
account: capital_loan_account.token,
}
});
});
await stripe.issuing.cards.create({
currency: 'usd',
type: 'physical',
source_balance: treasury_account.token
});
Create accounts
Store funds
Move money
Attach spend cards
Create accounts
Create an account object with a single API request. Onboard users, verify identity, and provision an account with one of our bank partners in minutes.
-
ID verification
-
KYC checks
-
Sanctions screening
-
MATCH list checks
Store funds
Help your businesses hold funds in one or more financial accounts.
-
Eligible for FDIC pass-through insurance*
-
Cash back
-
Account number
-
Routing number
-
Embedded component for financial accounts (coming soon)
-
Demand deposit accounts (coming soon)
-
Automated cash rewards (coming soon)
-
Accounting integrations (coming soon)
Move money
Give your businesses more ways to move money.
-
Domestic wires
-
ACH credits and debits, including same-day and international ACH
-
Mobile cheque acceptance
-
Online cheque sending
-
Faster payments fund availability
-
Cash acceptance
-
Real-time payments (coming soon)
-
Bill pay (coming soon)
-
Investment account sweeps (coming soon)
-
Embedded components for transactions, issuing, recipients, and cheque scanning (coming soon)
Attach spend cards
Issue custom spend cards to give businesses more ways to use their funds.
-
Branded physical and virtual cards
-
Provision virtual cards to digital wallets
-
Ship physical cards in two business days
-
Dynamic spend controls
-
Real-time authorisations
-
Access funds at ATMs
const account = await stripe.accounts.create({
country: 'US',
capabilities: {
treasury: {requested: true},
issuing: {requested: true}
}
});
const treasury_account =
await stripe.treasury.accounts.create({
account: account.token,
currency: 'usd'
});