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.
Environments
Cashramp has two separate environments. Each one has its own dashboard, its own accounts and its own API keys.
Sandbox
Building and testing your integration
https://staging.api.useaccrue.com/cashramp/api/graphql
Production
Live customers and real money
https://api.useaccrue.com/cashramp/api/graphql
1. Create an account ✅
Sign up on the dashboard for the environment you're working in:
Production: https://business.useaccrue.com/signup
Complete the business signup form.
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 ✅
In the same dashboard, open Settings → Developers → API keys (Sandbox · Production).
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.
Copy your secret key somewhere safe—Cashramp shows it once.
Going live – Your sandbox account and keys don’t carry over. When you’re ready for production, sign up on the production dashboard, generate a production secret key there, and change the base URL from
https://staging.api.useaccrue.comtohttps://api.useaccrue.com.
3. Send your first request 🚀
The example below calls the sandbox API, so use a sandbox secret key. Paste the cURL snippet into a terminal and replace <YOUR_SECRET_KEY> with it.
Expected response (pretty‑printed):
Run it live – Try the same query in our GraphiQL Playground
4. Next steps
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
Last updated