Docs

Connected Accounts

If you use Zoneless, you can issue requests on behalf of your connected accounts. To act as a connected account, include a Zoneless-Account header containing the connected account ID, which starts with the acct_z_ prefix.

The connected account ID is set per-request via the Zoneless-Account header. When using the Node.js SDK, pass the zonelessAccount option instead. Methods on the returned object reuse the same account ID.

Use your platform API key to authenticate, then specify which connected account the request should act on. This allows your platform to retrieve balances, create payouts, and perform other operations on behalf of any connected account.

Acting as a connected account
import { Zoneless } from '@zoneless/node';
const zoneless = new Zoneless('sk_live_z_YOUR_API_KEY', 'https://api.zoneless.com');

const balance = await zoneless.balance.retrieve({
  zonelessAccount: 'acct_z_1Nv0FGQ9RKHgCVdK',
});