Overview
Create a linked account widget—a shareable URL that directs end users to link their payout method (bank, card, or international bank). Use this when you want users to add a linked account without initiating a withdrawal. The integration obtains an application token and URL, then redirects users to complete account linking.Prerequisites
- Valid access token
Endpoint
- POST
{{LIQUIDITY_URL}}/v1/ext/application-token - Auth: Bearer
{{accessToken}}
Request
Request Body Fields
| Field | Type | Description | Required |
|---|---|---|---|
tokenType | string | Must be ACCOUNT_WIDGET | Yes |
currency | string | Currency code (e.g., USD) | Yes |
useLinkAccountPath | boolean | When true, the generated URL goes directly to the link-account flow | Yes |
redirectTo | string | URL to redirect the user after they complete account linking | No |
extra | object | Additional options | No |
extra.withdrawalSource | string | Must be MERCHANT_WALLET | No |
extra.counterparty | object | Counterparty info for the linked account | No |
extra.counterparty.firstName | string | Counterparty first name | No |
extra.counterparty.lastName | string | Counterparty last name | No |
extra.counterparty.email | string | Counterparty email | No |
Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
data.url | string | Shareable linked-account widget URL |
data.application.id | string | Application ID |
data.application.token | string | Application token |
data.application.tokenType | string | Token type: ACCOUNT_WIDGET |
data.application.expiredAt | string | Expiration datetime (ISO 8601) |
data.application.valid | boolean | Whether the token is currently valid |
data.customerId | string | Customer/entity ID associated with this widget |
Important: Append entityId to the URL
Before redirecting your end user to the widget, you must add the customerId from the response to the URL as the entityId query parameter.
Example: If the response returns:
url:https://sandbox.accounts.centryos.xyz/link-account/sATkWLobCODYbvJCC7asBYuCFVyvVI?t=...customerId:MDMxNzMxZmQtOTAzMC00OTIxLTk3NmQtNjk3ZWU3Y2JjYzZi
entityId={{customerId}} — append &entityId= followed by the customerId value from the response. Without this, the widget cannot associate the linked account with the correct customer.
Usage Flow
- Create linked account widget: Call this endpoint with
useLinkAccountPath: true. - Append entityId: Add
entityId={{customerId}}to the returnedurl. - Share or redirect: Redirect your end user to the final URL so they can link their bank, card, or international bank account.
- Post-linking: After linking, users can be redirected to your
redirectToURL, and you can use the linked account for payouts via Withdraw to Linked Account.
Notes
useLinkAccountPath: trueensures the URL goes directly to the account-linking flow (no withdrawal step).- Store
customerIdand use it to appendentityIdbefore redirecting users. - The link expires at
data.application.expiredAt; create new links as needed. - Use
redirectToto send users to a thank-you or confirmation page after linking.