Skip to main content

Scenario

A global company holds funds in USDC/USD and needs to pay contractors in Brazil (BRL), Nigeria (NGN), and Kenya (KES) simultaneously.

Workflow

1. Fund Main Account

Use the Crypto Treasury pattern. The company (Main Account) deposits funds into their subaccount to build a balance.
See API Reference Response:

2. Iterate and Pay

Loop through your payroll list and trigger withdrawals. For each employee:
  1. Create Recipient (if they don’t exist yet).
  2. Withdraw funds from the Main Account to the Recipient.

Step 2a: Create Recipient

See API Reference Response:

Step 2b: Withdraw

See API Reference Response:

3. Track Status

Poll the withdrawal status or listen for webhooks.
See API Reference