> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.clixpesa.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.clixpesa.com/_mcp/server.

# Quickstart

This walkthrough uses the onramp request shape shared by the mock and live provider flows.

## 1. Check the service

```bash
curl https://ramps.clixpesa.com/health
```

```json
{
  "status": "ok"
}
```

## 2. Create an onramp

Generate one idempotency key for the transaction and retain it with your local payment state.

```bash
curl --request POST \
  --url https://ramps.clixpesa.com/onramp \
  --header 'content-type: application/json' \
  --header 'idempotency-key: order-4df218ae' \
  --data '{
    "amount": "1",
    "source_amount": "130",
    "source": {
      "currency": "KES",
      "payment_rail": "momo",
      "bank_name": "Safaricom",
      "account_number": "254700000000"
    },
    "destination": {
      "currency": "USDC",
      "chain": "Base Sepolia",
      "address": "0x1111111111111111111111111111111111111111"
    }
  }'
```

A successful request is accepted for asynchronous settlement:

```json
{
  "txId": "order-4df218ae",
  "status": "processing",
  "instructions": {
    "message": "Kindly accept the prompt sent to 254700000000",
    "amount": "130",
    "currency": "KES",
    "account_number": "254700000000"
  }
}
```

## 3. Check settlement status

```bash
curl --request POST \
  --url https://ramps.clixpesa.com/onramp/status \
  --header 'content-type: application/json' \
  --data '{ "transaction_id": "order-4df218ae" }'
```

```json
{
  "status": "complete",
  "transactionHash": "0x..."
}
```

> **Warning**
>
> Production onramp requests can initiate a real mobile-money prompt and move real funds. Use the local
> mock guide for integration testing.

## Next steps

#### [Mock onramp](/mock-onramp)

Run the same flow locally against Base Sepolia USDC.

#### [Transaction lifecycle](/transaction-lifecycle)

Handle pending, processing, complete, and failed states correctly.