Skip to content

API reference / Get paid

POST /v1/collections Bearer Idempotent

Charge a wallet or issue a dynamic bank account

Charge a mobile money wallet, or issue a dynamic (temporary) bank virtual account for one order.

  • Omit payment_rail (or send mobile_money): require mobile and provider.
  • Send payment_rail=bank_transfer for a dynamic VA: bank transfer must be enabled; optional account_name; do not send mobile / provider. Response includes virtual_account (account number, bank name, expires_at). Poll or wait for collection.succeeded.

For static (reusable) accounts, see Bank accounts — not this endpoint.

Headers

Idempotency-Key required string

Required for money-moving and session/mandate creates; replays must use the same body.

Body parameters

amount required string

Merchant principal to receive. While the merchant is in Testing mode, must be at or below the country testing max amount (see testing mode).

currency required string
merchant_reference required string
payment_rail optional string

Optional — omit for mobile money (default). Send bank_transfer when you want a dynamic virtual account for this order (requires bank transfer enabled). mobile_money requires mobile and provider. bank_transfer must not send those fields; response includes virtual_account with expires_at.

One of mobile_money bank_transfer

mobile optional string

Required for mobile money (payment_rail omitted or mobile_money). Omit for bank_transfer.

provider optional string

Required for mobile money (payment_rail omitted or mobile_money). Use metadata mobile_providers codes. Omit for bank_transfer.

account_name optional string

Optional display name for dynamic bank-transfer virtual accounts (payment_rail=bank_transfer).

description optional string

Webhook events

collection.processing collection.succeeded collection.failed

POST https://omni.mojo-pay.com/v1/collections
{
    "currency": "GHS",
    "amount": "200.00",
    "merchant_reference": "ORD-2026-001",
    "mobile": "233544338841",
    "provider": "MTN"
}
Response
{
    "id": "CL_9K2ML0ABCDEF",
    "object": "collection",
    "status": "processing",
    "currency": "GHS",
    "amount": "200.00",
    "merchant_reference": "ORD-2026-001"
}