Query a code that has been created.
Additional Parameters
Request Parameter |
Description |
MasterPassAction |
Mandatory, The action to perform. |
MasterPassMerchantID |
Mandatory, The merchant id as captured on MasterPass. |
MasterPassCode |
Mandatory, The result code that must be queried |
Response Parameter |
Description |
MasterPassAction | The action that was performed |
MasterPassShortDescription | Short description linked to the code |
MasterPassCodeExpiryDate | Date until the code is valid. This is in epoch time. |
MasterPassMerchantName | The name of the merchant as captured on MasterPass |
Amount | Amount linked to the code. |
Currency | The currency is tied to the merchant setup. |
MerchantReference | Linked to the code. |
Example:
Request:
<?xml version="1.0" encoding="UTF-8"?><V_XML CertificateID="172bc42c-7ffb-44d0-a1e4-441444e1274c" Direction="Request" ProductType="Enterprise" ProductVersion="iVeriClient.JAVA v4.0.2" Version="2.0">
<Enquiry ApplicationID="8b2101c2-88a2-11d4-bccf-0000e884f861" Command="MasterPassQuickResponseCode" Mode="Test">
<MasterPassMerchantID>280</MasterPassMerchantID>
<MasterPassAction>QueryCode</MasterPassAction>
<Currency>ZAR</Currency>
<MerchantReference>1507025114123</MerchantReference>
<MasterPassCode>9599003889</MasterPassCode>
</Enquiry>
</V_XML>
Response:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<V_XML Direction="Response" Version="2.0">
<Enquiry ApplicationID="{8B2101C2-88A2-11D4-BCCF-0000E884F861}" Command="MasterPassQuickResponseCode" Mode="Test" RequestID="{A0B3A6DA-4BB2-4D3D-BF26-59C2845622B3}">
<Result AppServer="GOLIATH" DBServer="titan" Gateway="DEV2012" Status="0"/>
<Currency>R</Currency>
<MerchantReference>1507023127597</MerchantReference>
<Amount>1075</Amount>
<MasterPassAction>QueryCode</MasterPassAction>
<MasterPassShortDescription>Basket of goods</MasterPassShortDescription>
<MasterPassCodeExpiryDate>1507024950000</MasterPassCodeExpiryDate>
<MasterPassMerchantName>Web Tickets</MasterPassMerchantName>
</Enquiry>
</V_XML>