Getting Started

Welcome to the Cashramp Developer Documentation where you'll learn to build delightful payment experiences with the Cashramp API.

Cashramp lets you charge customers in local African currencies and settle instantly in USD‑denominated stablecoins. This five‑minute quick‑start walks you from sign‑up to your first API call.


1. Create an account ✅

  1. Complete the business signup form.

  2. You’ll land in the Developer Dashboard.

Tip – Keep the Dashboard open in another tab; you’ll copy values from it in the next step.


2. Get your API keys ✅

  1. In the Dashboard, open Settings → Developers → API keys.

  2. Click Generate keys. You’ll receive:

    • Public key (CSHRMP‑PUBK_…): safe for front‑end use.

    • Secret key (CSHRMP‑SECK_…): server only; store it in an environment variable.

  3. Copy your secret key somewhere safe—Cashramp shows it once.

Going live – When you’re ready for production, swap your staging secret key for a production one and change the base URL from https://staging.api.useaccrue.com to https://api.useaccrue.com.


3. Send your first request 🚀

Paste the cURL snippet below into a terminal and replace <YOUR_SECRET_KEY> with your secret key.

curl https://staging.api.useaccrue.com/cashramp/api/graphql \
  -H "Authorization: Bearer <YOUR_SECRET_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
        "query": "{ account { id accountBalance } }"
      }'

Expected response (pretty‑printed):

{
  "data": {
    "account": {
      "id": "QWNjb3VudC0xMjM0NTY=",
      "accountBalance": "0.00"
    }
  }
}

Run it live – Try the same query in our GraphiQL Playground


4. Next steps

Flow
What you can build next

Drop‑in checkout page that handles UI, FX, and settlement.

Server‑side API to collect local payments — no UI required.

Let self‑custody wallets deposit or withdraw stablecoins.


5. Reference & resources

  • API reference: All queries, mutations, and types. [Docs]

  • Webhooks: Real‑time transaction updates. [Guide]

  • SDKs: [Docs]

Last updated