Flowwithlit Docs
REFERENCE

API Reference

Complete list of all Flowwithlit API endpoints. Click any endpoint to expand its request / response details. Base URL: https://api.flowwithlit.com

â„šī¸
Endpoints marked 🔑 Secret Key use your API secret key as a Bearer token. Everything else is either public or authenticated with your public key. Get your keys from the Developer API dashboard.

Payments

GET /public/rates Get exchange rates (no auth needed) 🌐 Public â–ļ

Returns current exchange rates relative to NGN. Used by checkout pages and merchant sites to display currency equivalents. No API key required.

JSON
{"success":true,"data":{"NGN_USD":0.00062,"NGN_GBP":0.00049,"NGN_EUR":0.00057,"USD_NGN":1610.0,"GBP_NGN":2040.0,"EUR_NGN":1750.0}}
GET /public/merchant-info Get merchant name for checkout display 🌐 Public Key (query param) â–ļ

Query Parameters

FieldTypeRequiredDescription
keystringrequiredYour public API key
JSON
{"success":true,"data":{"merchant_name":"Acme Ltd","is_test":true}}
POST /public/charge Process a card payment from the hosted checkout 🌐 Public Key (body) â–ļ
â„šī¸
This endpoint is called by the checkout/index.php iframe — you don't call it directly. Use FlowPay.init() on your frontend instead.
FieldTypeRequiredDescription
public_keystringrequiredYour public API key
amountnumberrequiredAmount in kobo (lowest denomination)
currencystringoptionalDefault: NGN
emailstringrequiredCustomer email
namestringoptionalCustomer name
refstringoptionalYour transaction reference
metaobjectoptionalArbitrary metadata passed to webhooks
JSON
{"success":true,"data":{"status":"successful","transaction_ref":"FLW_TXN_ABCD1234","amount":500000,"currency":"NGN","message":"Payment successful"}}
GET /v1/transaction/verify/{ref} Verify a transaction by reference 🔑 Secret Key â–ļ

Authenticate with Authorization: Bearer flw_sec_test_YOUR_KEY

cURL
curl https://api.flowwithlit.com/v1/transaction/verify/FLW_TXN_ABCD1234 \
  -H "Authorization: Bearer flw_sec_test_YOUR_KEY"
JSON response
{"success":true,"data":{"status":"successful","transaction_ref":"FLW_TXN_ABCD1234","amount":500000,"currency":"NGN","customer":"john@example.com","created_at":"2026-06-15T10:32:44Z"}}

HTTP Status Codes

CodeMeaningWhat to do
200OKRequest succeeded
400Bad RequestA required field is missing or invalid — check message
401UnauthorizedMissing or invalid token / API key
402Payment RequiredInsufficient wallet balance
403ForbiddenValid token but not allowed (e.g. wrong role)
404Not FoundResource doesn't exist or doesn't belong to you
429Too Many RequestsRate limited — back off and retry
500Server ErrorSomething went wrong on our end — contact support