Reference

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

Base URL: 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.

Money movement

Push money out to wallets, bank accounts, payroll lists, or other merchants on the network.

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.

Try one in 30 seconds

Mint a sk_test_… key from your merchant portal, then:

curl · create a sandbox PaymentIntentbash
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" }'