The full API surface.
Every resource MerasPay exposes — across direct payments, bulk disbursement, remittance termination, agent network, hosted checkout, billing, and partner integrations. All endpoints accept JSON, are versioned by date header, and require an Idempotency-Key on every write.
Conventions
https://api.merashub.com. Auth: Authorization: Bearer sk_test_... (secret) or pk_test_... (publishable, browser-safe). Versioning: MerasPay-Version: 2026-05-25. Idempotency: pass Idempotency-Key on every POST — same key in the next 24h returns the same response. Amounts: amount_minor integer in minor units (DJF is zero-decimal; pass integer DJF).Direct API · accept payments
Charge a customer wallet or bank account from your backend. The Stripe-equivalent surface, adapted to Djibouti rails.
Payment Intents →
Create + confirm a single charge. Backed by every Djibouti rail through one shape.
Payment Methods →
Tokenise cards, mobile wallets, bank accounts into pm_ tokens.
Refunds →
Reverse a charge — partial or full. Settles on the originating rail.
Customers →
Persistent payer profile — attach payment methods + history.
Balance →
Your float across currencies and accounts (pending, available, reserved).
Money movement
Push money out to wallets, bank accounts, payroll lists, or other merchants on the network.
Payouts & bulk disbursement →
B2C disbursements — single payout, or a batch payroll/salary run with one upload.
Transfers (B2B) →
Inter-merchant transfers — atomic, Connect-style, with application_fee + transfer_data.
Hosted Checkout →
Drop-in branded payment page on checkout.merashub.com. Zero PCI, multi-rail.
QR codes →
EMVCo merchant-presented QR — static or dynamic, any compliant wallet can scan.
Partners
Higher-volume integrations: licensed remittance operators terminating into Djibouti, and the field agent network.
Commerce
Recurring revenue, invoicing, and chargeback handling.
Reference
Cross-cutting topics — credential management, event delivery, error envelope.
Mint a sk_test_… key from your merchant portal, then:
curl -X POST https://api.merashub.com/v1/payment_intents \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ "amount": 50000, "currency": "DJF", "provider": "mock" }'