Creates an AccountLink object that includes a single-use Stripe URL that the merchant can redirect their user to in order to take them to a Stripe-hosted application such as Recipient Onboarding.
Learn more about calling API v2 endpoints.Parameters
- accountstringRequired
The ID of the Account to create link for.
- use_
caseobjectRequired The use case of the AccountLink.
Returns
Response attributes
- objectstring, value is "v2.core.account_link"
String representing the object’s type. Objects of the same type share the same value of the object field.
- accountstring
The ID of the Account the link was created for.
- createdtimestamp
The timestamp at which this AccountLink was created.
- expires_
attimestamp The timestamp at which this AccountLink will expire.
- livemodeboolean
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - urlstring
The URL for the AccountLink.
- use_
caseobject The use case of AccountLink the user is requesting.
404not_ found
The resource wasn’t found.
Response
{ "object": "v2.core.account_link", "account": "acct_1Nv0FGQ9RKHgCVdK", "created": "2025-03-27T17:15:18.000Z", "expires_at": "2025-03-27T17:25:18.000Z", "url": "https://accounts.stripe.com/r/acct_1Nv0FGQ9RKHgCVdK#alu_test_61SGhyomRuz7xsw5216SGhyj0ASQdCLwMKdRUF3mi3H6", "use_case": { "account_onboarding": { "configurations": [ "recipient" ], "refresh_url": "https://example.com/reauth", "return_url": "https://example.com/return" }, "type": "account_onboarding" }}