Skip to main content
This guide takes you from zero to a USDC wallet thatโ€™s ready to fund: authenticate, create a customer, and create a wallet for them. Every call uses the base URL https://api.globalstack.io.

Stablecoins

Hold USDC and move between stablecoins and local currency with onramps and offramps. Follow this page.

Local currency

Give customers named bank accounts in ZAR, NGN or GHS, and pay out to banks, mobile money and PayShap. Start here instead.

Prerequisites

  • A Global Stack account: request access on the dashboard and begin onboarding.
  • An API key: once youโ€™ve completed onboarding, you can generate one on the dashboard. Keep it server-side. See Authentication.

Steps

1

Verify your key

Make an authenticated call to a read-only endpoint to confirm your key works. Listing supported currencies needs no request body:
A 200 with a "status": true envelope means youโ€™re authenticated. A 401 with authentication_failed means the key is missing or wrong.
2

Create a customer

Wallets belong to a customer. Create one with their type, name, email, and ISO 3166-1 alpha-2 country_code:
The response returns the new customerโ€™s id (prefixed cust_). Save it for the next step.
3

Create a wallet

Create a USDC wallet for that customer. Only currency is required:
You now have a wallet (id prefixed wal_) ready to hold and move funds.

Next steps

Get a quote

Lock an FX rate before you move money.

Run an onramp

Accept local currency and settle it into the wallet as stablecoins.

Collect and pay out locally

Open a named virtual account in GHS, ZAR or NGN, and pay out to banks and mobile money.

Stay idempotent

Safely retry write requests without creating duplicates.

Handle errors

The response envelope and the error codes to branch on.

Virtual accounts

Which currencies support them, what each needs, and whose name is on the account.

Build with AI

Give Claude Code, Codex or Cursor the Global Stack plugin to build and test the integration.
Pass an Idempotency-Key header on create requests so a retry never creates a second customer or wallet. See Idempotency for which endpoints support it.