> ## Documentation Index
> Fetch the complete documentation index at: https://docs.globalstack.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How Global Stack works

> The building blocks of the API, and the five ways money moves between them.

Every flow in Global Stack is made from a few resources. Learn these first, and every endpoint in
the [API reference](https://docs.globalstack.io/api-reference/supported-countries/list-countries.md) will make sense.

## The building blocks

| Resource | What it is |
| - | - |
| **Customer** (`cust_…`) | The person or business you're moving money for: `individual` or `business`. Customers who hold local currency must be [verified](https://docs.globalstack.io/guides/verify-customers.md) first. Your account also has a **default customer** that represents you. It's used whenever you leave `customer_id` out. |
| **Wallet** (`wal_…`) | A balance in **one** currency, owned by a customer. A customer can hold one wallet per local currency, and several in a stablecoin. |
| **Credential** (`wcr_…`) | A way to pay **into** a wallet. A bank credential is a named local bank account, which is a [virtual account](https://docs.globalstack.io/guides/virtual-accounts.md). A crypto credential is an on-chain address. |
| **Beneficiary** (`ben_…`) | A place to pay **out** to: a bank account, a mobile money wallet, a PayShap proxy or a crypto address. See [Beneficiaries](https://docs.globalstack.io/guides/beneficiaries.md). |
| **Quote** | A short-lived, priced offer to exchange one currency for another. Onramps, offramps and conversions each start from one. |
| **Transaction** (`txn_…`) | The record of any money movement. [`GET /v1/transactions`](https://docs.globalstack.io/api-reference/transactions/list-transactions) lists them all in one place. |

## How money moves

Money comes **in** to a wallet, is **held** there, and goes **out** to a beneficiary.

> [card] 1. Money in
>
> **Deposit**: a payer sends a bank transfer or crypto to the wallet.
>
> **Onramp**: a payer's local currency arrives as stablecoins.

> [card] 2. Hold
>
> Funds sit in a **wallet**, in one currency.
>
> **Conversion**: move a balance to another currency.

> [card] 3. Money out
>
> **Transfer**: pay a beneficiary in the same currency.
>
> **Offramp**: pay out stablecoins as local currency.

| Movement | From → to | Currency changes? | Start with |
| - | - | - | - |
| **Deposit** | A payer → a wallet, through a credential or deposit address | Only for an [auto-conversion](https://docs.globalstack.io/guides/auto-conversion.md) credential | Share a credential's details. The deposit arrives on its own. |
| **Onramp** | A payer's local currency → a stablecoin wallet | Yes | [Onramp quote](https://docs.globalstack.io/api-reference/quotes/create-an-onramp-quote.md), then [execute](https://docs.globalstack.io/api-reference/onramps/execute-an-onramp.md) |
| **Offramp** | A stablecoin wallet → a local-currency beneficiary | Yes | [Offramp quote](https://docs.globalstack.io/api-reference/quotes/create-an-offramp-quote.md), then [execute](https://docs.globalstack.io/api-reference/offramps/execute-an-offramp.md) |
| **Conversion** | One wallet → another wallet of the same customer | Yes | [Conversion quote](https://docs.globalstack.io/api-reference/quotes/create-a-conversion-quote.md), then [execute](https://docs.globalstack.io/api-reference/conversions/execute-a-conversion.md) |
| **Transfer** | A wallet → a beneficiary in the same currency | No | [Execute a transfer](https://docs.globalstack.io/api-reference/transfers/execute-a-transfer.md) |

Onramp and offramp are named from the stablecoin's point of view. **On**ramp brings money **onto**
stablecoin rails, and **off**ramp takes it **off** them.

## Which do I need?

| You want to… | Use |
| - | - |
| Give each customer a named local bank account | A wallet with a bank credential: [Virtual accounts](https://docs.globalstack.io/guides/virtual-accounts.md) |
| Pay a supplier's bank account or mobile money in the same currency | [Transfer](https://docs.globalstack.io/guides/collect-and-pay-out.md) |
| Hold funds in USDC and pay out in local currency | Offramp |
| Collect local currency and hold it as USDC | Onramp, or a local-currency credential on a USDC wallet ([auto-conversion](https://docs.globalstack.io/guides/auto-conversion.md)) |
| Move a customer's balance between currencies | Conversion |
| Send USDC to an on-chain address | Transfer to a crypto beneficiary |

## Following what happens

Every money movement is asynchronous. It's created, then moves through statuses until it succeeds
or fails. Subscribe to [webhooks](https://docs.globalstack.io/webhooks/events.md) rather than polling. When something fails,
branch on [`failure_reason`](https://docs.globalstack.io/reference/failure-reasons).

> [card] [Start building](https://docs.globalstack.io/quickstart.md)
>
> Make your first calls in the quickstart.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.