BL By Lipa

Developers

API reference

Build on By Lipa with RESTful JSON APIs — automate mobile money ↔ USDT exchange for users, or accept crypto payments as a merchant. Stripe-style keys, predictable responses, webhook signatures.

REST · JSON TLS required Version v1

Choose your integration

Base URL

All requests are made to the API gateway. Replace the host with your production domain.

Base URL
https://bylipa.com/api

User endpoints live under /v1/…. Merchant endpoints live under /v1/merchant/….

Authentication overview

API Headers Get credentials
User API X-Api-Key + X-Api-Secret User app → Profile → Developer API
Merchant API X-Api-Key (or Authorization: Bearer) Merchant portal → Settings
Session (browser app) Authorization: Bearer <token> POST /v1/auth/login

Errors

Errors return JSON with a message field. HTTP status codes follow conventional REST semantics.

StatusMeaning
400Malformed request
401Missing or invalid credentials
403Step-up verification required (large withdrawal)
404Resource not found
422Validation failed — check message
429Rate limited
500Server error — retry with backoff
Error response
{
  "message": "Invalid API credentials."
}

Idempotency & references

  • Orders return a unique reference (e.g. ORD-…) — store it to poll status.
  • Merchant payments require external_reference — must be unique per merchant.
  • Use HTTPS only. Never embed secrets in client-side mobile or web apps.