Skip to main content
POST
Simulate a pay-in (sandbox only)

Authorizations

Authorization
string
header
required

Your Jenzy API key: Authorization: Bearer jz_live_…

Body

application/json
amount_mwk
required

What the pretend sender pays IN — the gross, before fees. You are credited less: the fee comes out of it, exactly as it does on a real pay-in. Either a JSON integer of whole kwacha or an exact decimal string with up to 2 decimal places ("1000.55"). Must be positive and no greater than 5000000000 MWK.

Example:

50000

rail
enum<string>

Where the pretend sender pays from. Decides the rail and source_institution on the resulting collection; it does not change the price, which is the same on both. Defaults to momo.

Available options:
momo,
bank
Example:

"momo"

Response

The collection your simulated pay-in became — already credited.

id
string<uuid>
required

Collection id — your handle for polling and support.

status
enum<string>
required

pending means the provider told us about the pay-in, but it has not credited your balance yet. settled means the money credited your balance. reversed means the provider then clawed the pay-in back — treat the collection.reversed event as authoritative; your balance catches up. not_received means a pending pay-in was never confirmed, and Jenzy closed it. A pending pay-in keeps its id when it settles.

Available options:
pending,
not_received,
settled,
reversed
Example:

"settled"

amount_mwk
string
required

The gross amount the sender sent — exact decimal string at 2 decimal places. Parse with a decimal library, never a float.

Example:

"1000.00"

fee
string | null
required

The transaction fee, as one combined figure — an exact decimal string. Always equal to amount_mwk minus amount_credited. Null until the pay-in is settled.

Example:

"7.50"

amount_credited
string | null
required

What your balance moved by: amount_mwk minus fee, as an exact decimal string. Null until the pay-in is settled.

Example:

"992.50"

rail
enum<string> | null
required

How the money arrived: momo from a mobile wallet, bank from a bank account. Null when the rail could not be determined.

Available options:
bank,
momo,
null
source_customer_name
string | null
required

Who sent the money, as reported by the provider. Null when the provider does not give the name, which is usual for bank pay-ins. Then use source_institution and source_account_number to identify the sender.

Example:

"PETER BANDA"

source_account_number
string | null
required

The account or wallet the money came from, verbatim — your handle for matching the pay-in to your own customer.

Example:

"265991234567"

source_institution
string | null
required

The institution the money came from, as reported by the provider.

Example:

"Airtel Money"

rtp_reference_number
string | null
required

The reference you supplied when requesting this payment, echoed back for matching. Null when the payer sent the money directly.

created_at
string<date-time>
required