REST API›Fiat›Plaid

POST

Creates a Plaid Link token that opens Link in update mode for the Plaid Item behind an existing bank transfer method.

Use this endpoint when a bank transfer method's requiredActions contains plaid-refresh. That action means Plaid needs the user to sign in to their bank again or to grant consent for a new product. Until the user does, the connection is incomplete. To resolve it:

  1. Call this endpoint with the bank transfer method ID.
  2. Open Plaid Link with the returned token, and have the user complete the flow.
  3. Call /api/tradfi/v1/plaid/link/token/update/complete.

Completing update mode clears plaid-refresh on every bank transfer method linked to the same Plaid Item, so one refresh fixes all accounts the user connected from that bank. The token expires after 30 minutes.

Requires access token scope: wallet_manage_all

Body Params

object

  • enterpriseId string required
    The ID of the enterprise

    at least 1 characters

  • bankTransferMethodId string required
    The ID of a bank transfer method created through Plaid Link. Accepts either the bank transfer method ID or its bank account ID (bankAccountId).
  • androidPackageName string
    The Android package name for OAuth redirect flows. Required when initializing Plaid Link on Android.
  • redirectUri string
    The OAuth redirect URI for mobile and web flows.

Responses

201
Created

Response Body

object

  • data object required
    data object
    • token string required
      The Plaid Link token to use in the client
    • expiration string date-time required
      The expiration time of the link token
400
Bad Request - Missing parameters, or the bank transfer method is not linked to a Plaid Item

Response Body

object

  • errorName string required
  • error string required
404
Not Found - The bank transfer method does not exist or belongs to another enterprise

Response Body

object

  • errorName string required
  • error string required
424
Failed Dependency - Plaid service is unavailable

Response Body

object

  • errorName string required
  • error string required
428
Precondition Required - Plaid is not configured for this account

Response Body

object

  • errorName string required
  • error string required
500
Internal Server Error

Response Body

object

  • errorName string required
  • error string required