API call: MPRLastTxnVoid

Last transaction void

Purpose

This command is used by the partner to initiate a reversal/void of the last processed transaction on the terminal. After successfully received request for MPRLastTxnVoid call the merchant must check for transaction on the myPOS device (press button O). Please refer to Process flow examples for more details.

Method properties

PropertyTypical valueTypePresenceDescription
version3.0StringMThe version of the protocol used for transition.
loginname@website.comStringMIdentifier of the partner.
key_index1IntMIdentifier of the private key used for the signature.
tid90000015AN(8)MTerminal ID
ruid201203319999999StringMUnique identifier of the submitted request. Up to 255 characters.
ruid_original201203319999999StringMIndicates the ruid that was presented in the original MPRPurchase call.
amount23.45N(6,2)MThe amount of the requested payment.
signatureByte[]BASE64MSHA-256 HASH for all properties in the command signed with the private key. The signature parameter is not used to calculate the hash.

Response properties

PropertyTypical valueTypePresenceDescription
version3.0StringMEEcho from MPRLastTxnVoid.
loginname@website.comStringMEEcho from MPRLastTxnVoid.
key_index1IntMEEcho from MPRLastTxnVoid.
tid90000015AN(8)MEEcho from MPRLastTxnVoid.
ruid201203319999999StringMEEcho from MPRLastTxnVoid.
ruid_original201203319999999StringMEEcho from MPRLastTxnVoid.
amount23.45N(6,2)MEEcho from MPRLastTxnVoid.
status0N(2)MStatus of the request. For more information check Status Messages.
status_msgOKStringOAdditional details about the received status.
signatureByte[]BASE64MSHA-256 HASH for all properties in the command signed with the private key. The signature parameter is not used to calculate the hash.

Example of the request

<urn:MPRLastTxnVoid xmlns:urn="urnIPayService">  
  <urn:version>3.0</urn:version> 
  <urn:login>name@website.com</urn:login>
  <urn:key_index>1</urn:key_index> 
  <urn:tid>90000015</urn:tid> 
  <urn:ruid>201403319999999</urn:ruid> 
  <urn:ruid_original>201203319999999</urn:ruid_original> 
  <urn:amount>23.45</urn:amount>
  <urn:signature>bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</urn:signature> </urn:MPRLastTxnVoid>

Example of the response

<MPRLastTxnVoidResponse xmlns:urn="urnIPayService"> 
  <MPRLastTxnVoidResult xmlns:a="http://schemas.datacontract.org/2004/07/iPay.Core" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
    <a:version>3.0</a:version> 
    <a:login>name@website.com</a:login>
    <a:key_index>1</a:key_index> 
    <a:tid>90000015</a:tid> 
    <a:ruid>201403319999999</a:ruid> 
    <a:ruid_original>201203319999999</a:ruid_original> 
    <a:amount>23.45</a:amount> 
    <a:status>0</a:status> 
    <a:status_msg>OK</a:status_msg> 
    <a:signature> bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</a:signature> 
  </MPRLastTxnVoidResult> 
</MPRLastTxnVoidResponse>