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

# API docs

> Collect in South Africa through one API: create Easypay PINs, track your balance, and fund and withdraw in stablecoin.

> [!NOTE]
>
> The Artery API is in draft and may change before launch. Build against the sandbox, and check back here for changes.

The Artery API lets your platform collect rand from customers in South Africa and receive US dollars. You create a PIN for each payment, your customer pays it through Easypay, and the net amount is credited to your Artery balance.

## Start here

> [card] [Create a sandbox account](https://dashboard.artery.money/register)
>
> Get test keys in a couple of minutes. No approval needed.

> [card] [Authentication](https://docs.artery.money/api-reference/authentication.md)
>
> API keys, scopes and the IP allowlist.

> [card] [Conventions](https://docs.artery.money/api-reference/conventions.md)
>
> Amounts, ids, paging and retries.

> [card] [Webhooks](https://docs.artery.money/api-reference/webhooks.md)
>
> Events Artery sends as money moves.

## Base URL

```
https://api.artery.money/api/v1/artery/b2b
```

## Endpoints

| Endpoint | What it does |
| - | - |
| `GET /whoami` | [Check your API key](https://docs.artery.money/api-reference/account/check-your-api-key.md) and organization. |
| `POST /pins` | [Create a PIN](https://docs.artery.money/api-reference/pins/create-a-pin.md) for an amount in rand. |
| `GET /pins/{collection_id}` | [Get a PIN](https://docs.artery.money/api-reference/pins/get-a-pin.md) and its status. |
| `GET /balance` | [Your balance](https://docs.artery.money/api-reference/balance/get-your-balance.md) in US cents. |
| `GET /funding/addresses` | [Your stablecoin deposit addresses](https://docs.artery.money/api-reference/funding/list-your-deposit-addresses.md). |
| `GET /funding/deposits` | [Stablecoin deposits](https://docs.artery.money/api-reference/funding/list-your-stablecoin-deposits.md) you've made. |
| `GET /destinations` | [Your withdrawal wallets](https://docs.artery.money/api-reference/withdrawals/list-withdrawal-wallets.md). |
| `POST /withdrawals` | [Withdraw to a wallet](https://docs.artery.money/api-reference/withdrawals/withdraw-to-a-wallet.md). |
| `GET /withdrawals` · `GET /withdrawals/{id}` | [List](https://docs.artery.money/api-reference/withdrawals/list-withdrawals.md) or [get](https://docs.artery.money/api-reference/withdrawals/get-a-withdrawal.md) withdrawals. |

Payouts to your customers are [coming soon](https://docs.artery.money/knowledge-base/payouts.md).

## A collection, end to end

1. `POST /pins` with the amount in rand cents and your own `partner_ref`. You get the 20-digit PIN, its expiry and the locked rate.
2. Your customer pays the PIN through Easypay.
3. You receive `deposit.confirmed`. The net amount is in Pending, with its settlement due date.
4. On the due date you receive `deposit.settled`. The amount is in Available.


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