A Stripe Balance Debit Agreement represents the permission for a Stripe account to debit funds from another Stripe account’s balance. The debit agreement token can be passed in payment_method_options to create a Stripe Balance payment method and mandate via SetupIntent or PaymentIntent APIs.
Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- financial_
accountnullable string The ID of the financial account that is authorized to be debited.
- livemodeboolean
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - multi_
usenullable object If this is a
multi_debit agreement, this hash contains details about the agreement.use - seller_
network_ business_ profilestring The ID of the seller network business profile associated with this debit agreement.
- single_
usenullable object If this is a
single_debit agreement, this hash contains details about the agreement.use - statusenum
The status of the debit agreement.
Possible enum valuesactiveThe debit agreement is active and can be used to create payment methods.
expiredThe debit agreement has expired due to single-use consumption.
pendingThe debit agreement has been created and is pending activation.
revokedThe debit agreement has been revoked by the granting account.
{ "id": "sbda_1Na5YT2eZvKYlo2Ctn7SPPuy", "object": "stripe_balance_debit_agreement", "financial_account": "fa_1Na5YT2eZvKYlo2Ctn7SPPuy", "livemode": false, "multi_use": null, "seller_network_business_profile": "snbp_1Na5YT2eZvKYlo2Ctn7SPPuz", "single_use": { "amount": 1000, "currency": "usd" }, "status": "active"}Creates a Stripe Balance Debit Agreement granting permission to debit from a financial account’s balance via the Stripe Balance payment method. The returned token can be used in payment_method_options[stripe_balance][mandate_options] to generate a payment method and mandate.
Parameters
- seller_
network_ business_ profilestringRequired The ID of the seller network business profile being granted permission to debit.
- financial_
accountstring The ID of the financial account to debit.
- multi_
useobject If this is a
multi_debit agreement, this hash contains details about the agreement.use - single_
useobject If this is a
single_debit agreement, this hash contains details about the agreement.use
Returns
Returns a StripeBalanceDebitAgreement object.
curl https://api.stripe.com/v1/stripe_balance_debit_agreements \ -u "sk_test_VePHdqK...NInc7u56JBrQsk_test_VePHdqKTYQjKNInc7u56JBrQ:" \ -d financial_account={{FINANCIAL_ACCOUNT_ID}} \ -d seller_network_business_profile=snbp_1Na5YT2eZvKYlo2Ctn7SPPuz \ -d "single_use[amount]=1000" \ -d "single_use[currency]=usd"{ "id": "sbda_1Na5YT2eZvKYlo2Ctn7SPPuy", "object": "stripe_balance_debit_agreement", "financial_account": "fa_1Na5YT2eZvKYlo2Ctn7SPPuy", "livemode": false, "multi_use": null, "seller_network_business_profile": "snbp_1Na5YT2eZvKYlo2Ctn7SPPuz", "single_use": { "amount": 1000, "currency": "usd" }, "status": "pending"}