> For the complete documentation index, see [llms.txt](https://ivorypay.gitbook.io/ivorypay-api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ivorypay.gitbook.io/ivorypay-api-documentation/start-here/readme.md).

# Start here: IVB or On/Off Ramp?

Ivorypay Business (IVB) API for business collections and payouts. Compare IVB with On/Off Ramp before integrating customer crypto buying or selling.

You are reading the **Ivorypay Business (IVB)** documentation. This product is also called the **Merchant API**. Use it to collect payments into your business balance and send business payouts.

## Choose the right product

| What are you building?                                                                 | Start with                  |
| -------------------------------------------------------------------------------------- | --------------------------- |
| Collect payments for orders or invoices into your business balance                     | **Ivorypay Business (IVB)** |
| Pay recipients from your business balance using bank, mobile-money or crypto payouts   | **Ivorypay Business (IVB)** |
| Let a customer pay local currency to receive crypto at their wallet address            | **On/Off Ramp: on-ramp**    |
| Let a customer send crypto to receive local currency in a bank or mobile-money account | **On/Off Ramp: off-ramp**   |

For example, collecting payment for an online order is an IVB journey. Adding **Buy crypto** or **Sell crypto** to a wallet or exchange is an On/Off Ramp journey.

Both products support fiat and crypto, and both offer hosted checkout and your own interface. Virtual accounts and settlements also exist in both products. Choose by the complete money flow, not by a payment method or the word "merchant". IVB can convert currencies as part of a payment or payout; conversion alone does not make it an On/Off Ramp integration.

**Building a buy/sell crypto journey? Start with the** [**On/Off Ramp documentation**](https://ivorypay.gitbook.io/ivorypay-on-off-ramp-documentation/) **before copying an IVB example.** Otherwise, continue with [Your First Payment](https://ivorypay.gitbook.io/ivorypay-api-documentation/start-here/quickstart.md).

## Use the matching dashboard and API

| Integration detail      | Ivorypay Business (IVB)                                   | On/Off Ramp                                                  |
| ----------------------- | --------------------------------------------------------- | ------------------------------------------------------------ |
| Create an account       | [Sign up for IVB](https://dashboard.ivorypay.io/register) | [Sign up for On/Off Ramp](https://ramp.ivorypay.io/register) |
| Dashboard               | [dashboard.ivorypay.io](https://dashboard.ivorypay.io)    | [ramp.ivorypay.io](https://ramp.ivorypay.io)                 |
| Production API base URL | `https://api.ivorypay.io/api/v1`                          | `https://ramp-api.ivorypay.io/api/v1`                        |
| Secret key              | IVB key for the selected TEST or LIVE environment         | On/Off Ramp key for the selected TEST or LIVE environment    |

The products have separate credentials, request bodies and transaction lifecycles. If you started with the wrong product, follow the correct product's quickstart; changing only the API hostname is not sufficient. If your application uses both, keep each integration's credentials, references and webhook handling separate.

## What You Can Do

**Accept Payments**

* Let customers pay with cryptocurrency (USDT, USDC) on supported blockchain networks
* Let customers pay via bank transfer using a dynamically assigned virtual account
* Accept [1Voucher payments](https://ivorypay.gitbook.io/ivorypay-api-documentation/accept-payments/onevoucher.md) in ZAR directly from your own interface
* Let customers pay with [mobile money](https://ivorypay.gitbook.io/ivorypay-api-documentation/accept-payments/mobile-money.md) on enabled networks; Wave requires separate live-route activation in Senegal and Côte d'Ivoire
* Generate permanent wallet addresses per customer for recurring deposits

**Send Payments**

* Send crypto to a valid address on an enabled blockchain network
* Send fiat directly to a recipient's bank account or mobile money wallet: Ivorypay handles the crypto-to-fiat conversion

**Stay Informed**

* Subscribe to webhook events to get real-time notifications on every payment, payout, and settlement: use status reconciliation for missed updates
* Configure [account notifications](https://ivorypay.gitbook.io/ivorypay-api-documentation/resources-and-support/account-notifications.md) so your team's inboxes get alerted on collections, payouts, and settlements

**Stay Secure**

* Lock down API access to your own servers with an [IP allow-list](https://ivorypay.gitbook.io/ivorypay-api-documentation/test-and-go-live/ip-allowlisting.md): required before you can send LIVE payouts

## Base URL

```
https://api.ivorypay.io/api
```

Endpoint summaries start with `/v1`. Append that path to the base URL above: `POST /v1/transactions` means `POST https://api.ivorypay.io/api/v1/transactions`. Full URLs in examples already include both prefixes.

## Authentication

Authenticated server-to-server requests include your secret API key in the `Authorization` header:

```http
Authorization: <your-secret-api-key>
```

> **Keep your secret key private.** Never expose it in client-side code, browser environments, or public repositories. Use your **test key** during development and your **live key** in production.

Get your IVB keys from the [IVB dashboard](https://dashboard.ivorypay.io). Follow [Authentication](https://ivorypay.gitbook.io/ivorypay-api-documentation/start-here/authentication.md) for key setup and environment selection.

## Environments

| Environment | Key Prefix | Description                                         |
| ----------- | ---------- | --------------------------------------------------- |
| `TEST`      | `sk_`      | Use simulated fiat and approved test-network assets |
| `LIVE`      | `sk_`      | Production: real transactions                       |

## Response Format

Successful Merchant API responses use `success`, not `status`:

```json
{
  "success": true,
  "message": "Human-readable message",
  "data": {}
}
```

### Error Response

```json
{
  "success": false,
  "statusCode": 400,
  "message": "Descriptive error message"
}
```

A successful HTTP request means the API accepted the request. It does **not** mean a payment completed. See [responses, errors and safe retries](https://ivorypay.gitbook.io/ivorypay-api-documentation/confirm-and-reconcile/responses-and-errors.md).

## Available Endpoints

Storefront has been retired. Legacy `/v1/stores`, `/v1/products` and `/v1/orders` routes, including their subpaths, return HTTP `410` with `errorCode: "STOREFRONT_RETIRED"`. New storefront checkouts are unavailable. Historical payment records and completion of already accepted payments are retained. Invoices are also unavailable: `/v1/invoices` and its subpaths return HTTP `403` with `errorCode: "INVOICES_UNAVAILABLE"`, and new invoice checkouts are rejected. Payment links and Merchant API collections remain supported.

| Module                                                                                                                          | Base Path                 | Description                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | --------------------------------------------------------------------------- |
| [Accept Payment](https://ivorypay.gitbook.io/ivorypay-api-documentation/accept-payments/transactions.md)                        | `/v1/transactions`        | Create crypto or fiat payment collection requests                           |
| [Crypto Transfer](https://ivorypay.gitbook.io/ivorypay-api-documentation/send-payouts/crypto-transfer.md)                       | `/v1/crypto-transfer`     | Send crypto to any blockchain wallet address                                |
| [Fiat Transfer](https://ivorypay.gitbook.io/ivorypay-api-documentation/send-payouts/fiat-transfer.md)                           | `/v1/fiat-transfer`       | Send fiat to a recipient's bank account                                     |
| [Mobile Money Payments](https://ivorypay.gitbook.io/ivorypay-api-documentation/accept-payments/mobile-money.md)                 | Not applicable            | Accept and send mobile-money payments on enabled country and network routes |
| [Blockchain Address](https://ivorypay.gitbook.io/ivorypay-api-documentation/accept-payments/blockchain-address.md)              | `/v1/blockchain-accounts` | Generate permanent wallet addresses per customer                            |
| [Supported Tokens & Networks](https://ivorypay.gitbook.io/ivorypay-api-documentation/resources-and-support/supported-tokens.md) | `/v1/tokens`              | Discover enabled tokens and networks                                        |
| [Webhooks](https://ivorypay.gitbook.io/ivorypay-api-documentation/confirm-and-reconcile/webhooks.md)                            | Not applicable            | Real-time event notifications                                               |
| [IP Allow-listing](https://ivorypay.gitbook.io/ivorypay-api-documentation/test-and-go-live/ip-allowlisting.md)                  | Not applicable            | Restrict API access to your server IPs                                      |
| [Account Notifications](https://ivorypay.gitbook.io/ivorypay-api-documentation/resources-and-support/account-notifications.md)  | Not applicable            | Configure team email alerts for account events                              |

## Supported Fiat Currencies

Availability is specific to your account and payment route. A collection currency does not imply the same payout or virtual-account support.

`NGN`, `ZAR`, `USD`, and 8 mobile money currencies across East, West, and Central Africa (`CDF`, `KES`, `RWF`, `SLE`, `UGX`, `XAF`, `XOF`, and `ZMW`). See [Mobile Money Payments](https://ivorypay.gitbook.io/ivorypay-api-documentation/accept-payments/mobile-money.md#supported-currencies--countries) for country, network and activation requirements.
