Overview
Create a withdrawal widget (application token) tied to an end-user/business (externalId). This link enables users to link their accounts (bank, card, or international bank) and initiate withdrawals. The link can be shared with end users to complete withdrawal flows.
Prerequisites
- Valid access token
Endpoint
- POST
{{LIQUIDITY_URL}}/v1/ext/application-token - Auth: Bearer
{{accessToken}}
Request
Request Body Fields
| Field | Type | Description | Required |
|---|---|---|---|
expiredAt | string | Expiration datetime (ISO 8601 format) | Yes |
tokenType | string | Must be ACCOUNT_WIDGET | Yes |
currency | string | Currency code (e.g., USD) | Yes |
feeHidden | boolean | true or false | No |
redirectTo | string | URL to redirect the user after payout completion (e.g., https://yoursite.com/success) | No |
extra | object | Additional options | No |
extra.accountOptions | array | Allowed payout methods: bank, card, international_bank. Defaults to ["bank", "card"] | No |
extra.withdrawalSource | string | Must be MERCHANT_WALLET | Yes |
extra.amount | number | Amount tied to the application token | Yes |
extra.counterparty | object | Counterparty info | Yes |
extra.counterparty.firstName | string | Counterparty first name | Yes |
extra.counterparty.lastName | string | Counterparty last name | Yes |
extra.counterparty.email | string | Counterparty email | Yes |
Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
data.url | string | Shareable withdrawal widget URL |
data.application.id | string | Application ID |
data.application.token | string | Application token (use for API calls) |
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 |
Usage Flow
- Create Withdrawal Widget: Use this endpoint to generate a withdrawal widget link
- Share Link: Share the
urlwith your end user - Link Account: User uses the link to link their account (bank, card, or international bank)
- Withdraw: Use the linked account ID to initiate withdrawals via the withdrawal endpoint
Notes
- Share the returned
urlas the withdrawal widget link with your end users - Set appropriate
expiredAtto limit link lifetime and security - Use
externalIdto correlate payouts to your user/business for tracking - The
tokenfrom the response can be used in API calls to link accounts programmatically - Use
extra.accountOptionsto restrict which account types users can link - The link expires at the
expiredAtdatetime; create new links as needed - Store the
application.idandtokenfor tracking and follow-up operations