# Wallets & providers Each merchant is onboarded with a **wallet hierarchy**: ```text Merchant parent wallet (total of all providers) ├── YAS total wallet │ ├── YAS collection wallet │ └── YAS disbursement wallet ├── VODACOM total wallet │ ├── VODACOM collection wallet │ └── VODACOM disbursement wallet ├── AIRTEL total wallet → collection + disbursement └── HALOTEL total wallet → collection + disbursement ``` - **C2B collections** increase the provider's **collection** wallet. - **B2C disbursements** decrease the provider's **disbursement** wallet. - The **provider total wallet** is the sum of that provider's child wallets. - The **merchant parent wallet** is the sum of all provider wallets. Final wallet posting happens only after a **final success** outcome is recorded. An acknowledgement alone never moves money. ## Supported `providerCode` values | Provider code | Network | | ------------- | ------------------------------------- | | `YAS` | YAS wallet tree (formerly Tigo Pesa) | | `VODACOM` | Vodacom M-Pesa wallet tree | | `AIRTEL` | Airtel Money wallet tree | | `HALOTEL` | Halopesa wallet tree | :::caution{title="Match the number to the network"} `providerCode` must match the network the `msisdn` belongs to. A YAS number sent with `providerCode: VODACOM` never reaches the right provider and fails. Use the [Name check](/api/name-check) endpoint to confirm before paying out. ::: ## Balances for disbursements Before a B2C payout, GoDigital checks the **available** balance of your disbursement wallet for that provider: - **Current balance**: all posted funds. - **Reserved**: funds held for payouts that are still in progress. - **Available** = current − reserved. Payouts can only use available funds. If available funds are too low, the request fails with `PGW-1006`. Check your balance with the [Balance enquiry](/api/wallets) endpoint.