TransactionReversalRequest

constructor(initiator: String, securityCredential: String, transactionId: String, amount: String, receiverParty: String, transactionReversalReceiverOrganizationType: TransactionReversalReceiverOrganizationType, resultUrl: String, queueTimeOutUrl: String, remarks: String, occasion: String)

Parameters

initiator

The name of the initiator to initiate the request.

securityCredential

Encrypted Credential of the user getting transaction amount.

transactionId

This is the Mpesa Transaction ID of the transaction which you wish to reverse.

amount

The amount transacted in the transaction is to be reversed, down to the cent.

receiverParty

The organization that receives the transaction. Sample: Shortcode (6-9 digits).

transactionReversalReceiverOrganizationType

Type of organization receiving the transaction. Sample: TransactionReversalReceiverOrganizationType.Default.

resultUrl

The path that stores information about the transaction.

queueTimeOutUrl

The path that stores information of the time-out transaction.

remarks

Comments that are sent along with the transaction.

occasion

Optional Parameter. Sample: A sequence of characters up to 100.


constructor(initiator: String, securityCredential: String, commandId: String, transactionId: String, amount: String, receiverParty: String, receiverIdentifierType: String, resultUrl: String, queueTimeOutUrl: String, remarks: String, occasion: String)

Parameters

initiator

The name of the initiator to initiate the request.

securityCredential

Encrypted Credential of the user getting transaction amount.

commandId

Takes only the 'TransactionReversal' Command id.

transactionId

This is the Mpesa Transaction ID of the transaction which you wish to reverse.

amount

The amount transacted in the transaction is to be reversed, down to the cent.

receiverParty

The organization that receives the transaction. Sample: Shortcode (6-9 digits).

receiverIdentifierType

Type of organization receiving the transaction.

resultUrl

The path that stores information about the transaction.

queueTimeOutUrl

The path that stores information of the time-out transaction.

remarks

Comments that are sent along with the transaction.

occasion

Optional Parameter. Sample: A sequence of characters up to 100.