POST
/
collections
/
requestToPay
/
addFakeTransaction
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/collections/requestToPay/addFakeTransaction" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  --header "X-Idempotency-Key: your-idempotency-key" \
  -d '{
    "merchantAccountNumber": 12345678,
    "transactionAmount": 8375000.00,
    "connectorId": 212188,
    "timedAccountNumber": "11005533",
    "currencyCode": "MWK",
    "capturedBy": "username@example.com"
  }'
{
  "transactionReferenceNumber": "CBPC73IQ5U2E",
  "beneficiaryAccountNumber": 12346198,
  "beneficiaryName": "MERCHANT SANDBOX",
  "beneficiaryCurrencyCode": "MWK",
  "sourceAccountNumber": "5271306",
  "sourceCustomerName": "ANGEL BAULENI",
  "sourceReferenceNumber": "JF260209114N",
  "sourceCurrencyCode": "MWK",
  "connectorName": "National Bank of Malawi",
  "amountSent": 50000,
  "amountReceived": 49500,
  "transactionFee": 500,
  "transactionDescription": "Payment Transaction",
  "transactionDate": "2026-02-09T15:12:52.8020476+02:00",
  "valueDate": "2026-02-09T15:12:52.8020476+02:00",
  "transactionCode": "BAM",
  "transactionTypeName": "Account To Merchant",
  "transactionStatusCode": "S",
  "transactionStatusName": "Success",
  "bridgeReferenceNumber": "019c4288-9342-7ebd-a947-6d97d4da77ed",
  "dateCreated": "2026-02-09T15:12:52.8020476+02:00",
  "responseCode": "S100",
  "responseMessage": "Successful transaction"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer Token, Where accessToken is the access token used to authenticate the request.

Headers

Accept-Language
string
default:en

Preferred language for the response

X-Idempotency-Key
string

A unique key to ensure idempotent requests

Body

application/json
merchantAccountNumber
integer
required

An active account number for the merchant used to initiate a request-to-pay transaction.

Example:

12345678

transactionAmount
number<decimal>
required

The total transaction (checkout) amount the customer is supposed to pay for the initiated transaction.

Example:

8375000

connectorId
integer
required

The unique number representing the institution (bank/MNO) a customer used to pay for the merchant goods/services.

Example:

212188

timedAccountNumber
string
required

The generated temporary (short-lived) account number tied to an initiated request-to-pay transaction.

Example:

"11005533"

currencyCode
string
required

The currency code associated with a transaction and should match with merchant account currency defined.

Example:

"MWK"

capturedBy
string<email>
required

The user registered under the merchant account being used.

Example:

"username@example.com"

Response

200 - application/json

Success Response (200)

transactionReferenceNumber
string

Unique reference number for the transaction

Example:

"CBPC73IQ5U2E"

beneficiaryAccountNumber
integer

Account number of the beneficiary/merchant

Example:

12346198

beneficiaryName
string

Name of the beneficiary account

Example:

"MERCHANT SANDBOX"

beneficiaryCurrencyCode
string

Currency code of the beneficiary

Example:

"MWK"

sourceAccountNumber
string

Source account number

Example:

"5271306"

sourceCustomerName
string

Name of the source customer

Example:

"ANGEL BAULENI"

sourceReferenceNumber
string

Reference number from the source system

Example:

"JF260209114N"

sourceCurrencyCode
string

Currency code of the source amount

Example:

"MWK"

connectorName
string

The name of the payment connector

Example:

"National Bank of Malawi"

amountSent
number<decimal>

Total amount sent in the transaction

Example:

50000

amountReceived
number<decimal>

Net amount received after fees (amountSent - transactionFee)

Example:

49500

transactionFee
number<decimal>

Fee charged for the transaction

Example:

500

transactionDescription
string

Description of the transaction

Example:

"Payment Transaction"

transactionDate
string<date-time>

Date and time of the transaction

Example:

"2026-02-09T15:12:52.8020476+02:00"

valueDate
string<date-time>

Value date of the transaction

Example:

"2026-02-09T15:12:52.8020476+02:00"

transactionCode
string

Transaction code

Example:

"BAM"

transactionTypeName
string

Type/description of the transaction

Example:

"Account To Merchant"

transactionStatusCode
string

Status code of the transaction (e.g., 'S' for Success)

Example:

"S"

transactionStatusName
string

Human-readable status description

Example:

"Success"

bridgeReferenceNumber
string

Bridge reference number for the transaction

Example:

"019c4288-9342-7ebd-a947-6d97d4da77ed"

dateCreated
string<date-time>

Date and time when the transaction was created

Example:

"2026-02-09T15:12:52.8020476+02:00"

responseCode
string

Unified response code from the payment system

Example:

"S100"

responseMessage
string

Response description from the payment system

Example:

"Successful transaction"