API call: MPRGetTxnStatus

Get transaction status for previously submitted valid payment request

Purpose

This command is used by the partner to receive the status and the parameters of a successfully submitted payment request. The partner can initiate MPRGetTxnStatus command in order to receive the transaction status and payment details (if any).

Method properties

PropertyTypical valueTypePresenceDescription
version3.0StringMThe version of the protocol used for transition.
loginname@website.comStringMIdentifier of the private key used for the signature.
key_index1IntMIdentifier of the partner.
tid90000015AN(8)MTerminal ID
ruid201203319999999StringMUnique identifier of the submitted request. Up to 255 characters.
ruid_original201203319999999StringMIndicates the ruid that was presented in the previously submitted valid payment call (MPRPurchase, MPRLastTxnVoid or MPRRefund).
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 MPRGetTxnStatus.
loginname@website.comStringMEEcho from MPRGetTxnStatus.
key_index1IntMEEcho from MPRGetTxnStatus.
tid90000015AN(8)MEEcho from MPRGetTxnStatus.
ruid201203319999999StringMEEcho from MPRGetTxnStatus.
ruid_original201203319999999StringMEEcho from MPRGetTxnStatus.
ruid_original_status0N(2)MThe status of the executed payment command. Possible values = 0, 13, 14, 15.
original_methodMPRPurchaseStringMThe name of the last executed command for this ruid.
amount23.45N(6,2)MEEcho from MPRGetTxnStatus.
response_code00CResponse code from the issuer.
00 – transaction approved by the issuer;
≠00 – the Issuer or the card declines the transaction
auth_codeVCQSIMAN(6)CAuthorization code from the issuer. This code is obtained after successful authorization only. Otherwise, the field will be empty.
rrn219159246364N(12)CRetrieval reference number. Set by the terminal/acquirer.
stan000029N(6)CSystem Trace Audit Number / Invoice. Enumerator from the terminal. Increments on every transaction attempt. Values from 000001 to 999999. Unique when combined with date.
merch_txn_date2015-06-29YYYY-MM-DDCTransaction date as determined by the terminal.
merch_txn_time18:17:25HH:MM:SSCTransaction time as determined by the terminal.
mid000000000000096AN(15)CMerchant ID as specified in the terminal configuration. Setup by the acquirer at merchant contracting.
merch_nameMYPOS *COMPANYAN(22)CMerchant name as specified in the terminal configuration. Setup by the acquirer at merchant contracting.
merch_address_line1STOURPORT-ON-SEVERNAN(32)CMerchant address line 1 as specified in the terminal configuration. Setup by the acquirer at merchant contracting.
merch_address_line2WORCESTE, UKAN(32)CMerchant address line 2 as specified in the terminal configuration. Setup by the acquirer at merchant contracting.
masked_pan*4521AN(5)CLast 4 digits of the card PAN used for the payment.
emboss_nameIVANOVA/MILENAAN(26)CCardholder name (where applicable).
aidA0000000032020AN(32)CAID as read from the chip card.
aid_nameVISA VPayStringCAID name as read from the chip card.
signature_required1N(1)C0 – signature required
1 – signature not required
reference_numberInv12345StringOUp to 50 symbols of text (Latin characters only) - can include letters, numbers, spaces and special characters.
reference_number_type0-4IntO1 - Reference number, 2 - Invoice number, 3 - Product ID, 4 - Reservation number
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:MPRGetTxnStatus 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:signature>bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</urn:signature> 
</urn:MPRGetTxnStatus>

Example of the response when the payment was successfully processed (paid):

<MPRGetTxnStatusResponse xmlns:urn="urnIPayService"> 
  <MPRGetTxnStatusResult xmlns:a="http://schemas.datacontract.org/2004/07/iPay.Core" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:method>MPRGetTxnStatus</a:method> 
    <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:ruid_original_status>0</a:ruid_original_status> 
    <a:original_method>MPRPurchase</a:original_method> 
    <a:amount>23.45</a:amount> 
    <a:response_code>00</a:response_code> 
    <a:auth_code>VCQSIM</a:auth_code> 
    <a:rrn>219159246364</a:rrn> 
    <a:stan>000029</a:stan> 
    <a:merch_txn_date>2015-06-29</a:merch_txn_date> 
    <a:merch_txn_time>18:17:25</a:merch_txn_time> 
    <a:mid>000000000000096</a:mid> 
    <a:merch_name>MYPOS *COMPANY</a:merch_name> 
    <a:merch_address_line1>STOURPORT-ON-SEVERN</a:merch_address_line1> 
    <a:merch_address_line2>WORCESTE, UK</a:merch_address_line2> 
    <a:masked_pan>*4521</a:masked_pan> 
    <a:emboss_name>IVANOVA/MILENA</a:emboss_name> 
    <a:aid>A0000000032020</a:aid> 
    <a:aid_name>VISA VPay</a:aid_name> 
    <a:signature_required>1</a:signature_required> <a:status>0</a:status> 
    <a:status_msg>OK</a:status_msg> 
    <a:signature>bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</a:signature> 
  </MPRGetTxnStatusResult> 
</MPRGetTxnStatusResponse>

Example of the response when the payment was declined (not paid and finished):

<MPRGetTxnStatusResponse xmlns:urn="urnIPayService"> 
  <MPRGetTxnStatusResult xmlns:a="http://schemas.datacontract.org/2004/07/iPay.Core" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> 
    <a:method>MPRGetTxnStatus</a:method>  
    <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:ruid_original_status>13</a:ruid_original_status> 
    <a:original_method>MPRPurchase</a:original_method> 
    <a:amount>23.45</a:amount> 
    <a:response_code>05</a:response_code> 
    <a:auth_code> </a:auth_code>
    <a:rrn>219159246364</a:rrn> 
    <a:stan>000029</a:stan> 
    <a:merch_txn_date>2015-06-29</a:merch_txn_date> <a:merch_txn_time>18:17:25</a:merch_txn_time> 
    <a:mid>000000000000096</a:mid> 
    <a:merch_name>MYPOS *COMPANY</a:merch_name> 
    <a:merch_address_line1>STOURPORT-ON-SEVERN</a:merch_address_line1> 
    <a:merch_address_line2>WORCESTE, UK</a:merch_address_line2> 
    <a:masked_pan>*4521</a:masked_pan> 
    <a:emboss_name>IVANOVA/MILENA</a:emboss_name> 
    <a:aid>A0000000032020</a:aid> 
    <a:aid_name>VISA VPay</a:aid_name> 
    <a:signature_required>1</a:signature_required> 
    <a:status>0</a:status> <a:status_msg>OK</a:status_msg> 
    <a:signature>bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</a:signature> 
  </MPRGetTxnStatusResult> 
</MPRGetTxnStatusResponse>

Example of the response when the payment was reversed (successfully authorized and reversed afterwards):

<MPRGetTxnStatusResponse xmlns:urn="urnIPayService"> 
  <MPRGetTxnStatusResult xmlns:a="http://schemas.datacontract.org/2004/07/iPay.Core" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:method>MPRGetTxnStatus</a:method>  
    <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:ruid_original_status>16</a:ruid_original_status> 
    <a:original_method>MPRPurchase</a:original_method> 
    <a:amount>23.45</a:amount> 
    <a:response_code>00</a:response_code> 
    <a:auth_code>VCQSIM</a:auth_code> 
    <a:rrn>219159246364</a:rrn> 
    <a:stan>000029</a:stan> 
    <a:merch_txn_date>2015-06-29</a:merch_txn_date> 
    <a:merch_txn_time>18:17:25</a:merch_txn_time> 
    <a:mid>000000000000096</a:mid> 
    <a:merch_name>MYPOS *COMPANY</a:merch_name> 
    <a:merch_address_line1>STOURPORT-ON-SEVERN</a:merch_address_line1> 
    <a:merch_address_line2>WORCESTE, UK</a:merch_address_line2> 
    <a:masked_pan>*4521</a:masked_pan> 
    <a:emboss_name>IVANOVA/MILENA</a:emboss_name> 
    <a:aid>A0000000032020</a:aid> 
    <a:aid_name>VISA VPay</a:aid_name> 
    <a:signature_required>1</a:signature_required>
    <a:status>0</a:status> 
    <a:status_msg>OK</a:status_msg> 
    <a:signature> bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</a:signature> 
  </MPRGetTxnStatusResult> 
</MPRGetTxnStatusResponse>

Example of the response when the payment is still pending (successfully authorized, however, the response from the terminal is still due):

<MPRGetTxnStatusResponse xmlns:urn="urnIPayService"> 
  <MPRGetTxnStatusResult xmlns:a="http://schemas.datacontract.org/2004/07/iPay.Core" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:method>MPRGetTxnStatus</a:method> 
    <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:ruid_original_status>15</a:ruid_original_status> 
    <a:original_method>MPRPurchase</a:original_method> 
    <a:amount>23.45</a:amount> 
    <a:response_code>00</a:response_code> 
    <a:auth_code>VCQSIM</a:auth_code> 
    <a:rrn>219159246364</a:rrn> 
    <a:stan>000029</a:stan> 
    <a:merch_txn_date>2015-06-29</a:merch_txn_date> 
    <a:merch_txn_time>18:17:25</a:merch_txn_time> 
    <a:mid>000000000000096</a:mid> 
    <a:merch_name>MYPOS *COMPANY</a:merch_name> 
    <a:merch_address_line1>STOURPORT-ON-SEVERN</a:merch_address_line1> 
    <a:merch_address_line2>WORCESTE, UK</a:merch_address_line2> 
    <a:masked_pan>*4521</a:masked_pan> 
    <a:emboss_name>IVANOVA/MILENA</a:emboss_name>
    <a:aid>A0000000032020</a:aid> 
    <a:aid_name>VISA VPay</a:aid_name> 
    <a:signature_required>1</a:signature_required> 
    <a:status>0</a:status> 
    <a:status_msg>OK</a:status_msg> 
    <a:signature> bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</a:signature> 
  </MPRGetTxnStatusResult> 
</MPRGetTxnStatusResponse>

Example of the response when the payment is still pending (the data is received from the terminal however the transaction steps are not completed and the transaction is not sent for authorization):

<MPRGetTxnStatusResponse xmlns:urn="urnIPayService"> 
  <MPRGetTxnStatusResult xmlns:a="http://schemas.datacontract.org/2004/07/iPay.Core" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:method>MPRGetTxnStatus</a:method>  
    <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:ruid_original_status>15</a:ruid_original_status> 
    <a:original_method>MPRPurchase</a:original_method> 
    <a:amount>23.45</a:amount> 
    <a:response_code> </a:response_code> 
    <a:auth_code> </a:auth_code> 
    <a:rrn> </a:rrn> 
    <a:stan> </a:stan>
    <a:merch_txn_date> </a:merch_txn_date> 
    <a:merch_txn_time> </a:merch_txn_time> 
    <a:mid> </a:mid> 
    <a:merch_name> </a:merch_name> 
    <a:merch_address_line1> </a:merch_address_line1> 
    <a:merch_address_line2> </a:merch_address_line2> 
    <a:masked_pan> </a:masked_pan> 
    <a:emboss_name> </a:emboss_name> 
    <a:aid> </a:aid> 
    <a:aid_name> </a:aid_name> 
    <a:signature_required> </a:signature_required> 
    <a:status>0</a:status> 
    <a:status_msg>OK</a:status_msg> 
    <a:signature> bUViE5SzWy9iYpWzxlEVO/8Yb6bvtJVn1P6/rat5NBdgJaBU7OxeRm8rxi/fW1xuekqDM06F4MbzUPnTIA/sZ1ZwlMjSTExY5+7DqkdejN7mDgnB8zogrOfF6/P1snxuNgPRtHuJ0ZeTdTWNm9kKPGE7IadvIGtOpF+7yspfWd4=</a:signature> 
  </MPRGetTxnStatusResult> 
</MPRGetTxnStatusResponse>

The partner system could initiate MPRGetTxnStatus method only for ruid from previously submitted valid requests. In all other cases, the call will return error message - 4 E_INVALID_PARAMS.