Migrate from direct account generation

Move an API integration from legacy generation endpoints to the setup-request lifecycle.

Migrate from direct account generation

New integrations should use the setup-request workflow instead of calling a legacy account-generation endpoint directly.

Why migrate

The setup-request API:

  • Returns actionable missing-data and missing-person blockers.
  • Supports asynchronous verification and activation.
  • Starts setup automatically when ready.
  • Separates setup status from the available account.

Equivalent workflow

Legacy actionNew action
Generate a USD/EUR/GBP account directlyPOST /v1/senders/{senderId}/virtual-bank-accounts/{currency}/setup-request
Retry generation after adding dataFollow blocker actions, then poll GET
Read generated account from sender detailsGET /v1/senders/{senderId}/virtual-bank-accounts/{currency}

Use USD, EUR, GBP, or MXN in the URL.

Existing generation endpoints remain available during the compatibility period. Mesta will communicate a deprecation timeline separately.


Did this page help you?