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"
  }'
{
  "beneficiary": {
    "accountNumber": 12346198,
    "accountName": "MERCHANT SANDBOX",
    "amountReceived": 49500,
    "currencyCode": "MWK"
  },
  "source": {
    "accountNumber": "5271306",
    "customerName": "ANGEL BAULENI",
    "amountSent": 50000,
    "currencyCode": "MWK",
    "sourceReferenceNumber": "JF260209114N",
    "connectorId": 212188,
    "connectorName": "National Bank of Malawi"
  },
  "transaction": {
    "transactionReferenceNumber": "CBPC73IQ5U2E",
    "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",
    "responseCode": "S100",
    "responseMessage": "Successful transaction",
    "dateCreated": "2026-02-09T15:12:52.8020476+02:00"
  }
}

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)

beneficiary
object

Details of the beneficiary receiving the funds

source
object

Details of the source sending the funds

transaction
object

Core transaction details and metadata

statusCode
integer

Overall API response status code

Example:

0