Update Code
Function: Query a code that has been created.
Update Code 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 |
Amount |
Mandatory, to use a variable amount use 0 as the amount. |
Currency |
Mandatory, the currency is tied to the merchant setup. |
MerchantReference |
Mandatory, used to link code to transaction. |
MasterPassShortDescription |
Mandatory, This will be displayed to the consumer at the time a code is scanned. Length is 5 to 45 characters |
MasterPassCodeExpiryDate |
Optional. If this is empty the code will by default expire in 30 minutes from issue. If this value is 0 the code will never expire. This time is specified in epoch. |
Response Parameter |
Description |
MasterPassAction |
The action that was performed |
Update Code - REST Sample
Request |
Response |
{ "Version": "2.0", "CertificateID": "{xxxxxxxx-71dd-4044-802d-xxxxxxxxxxxx}", "ProductType": "Enterprise", "Direction": "Request", "Enquiry": { "ApplicationID": "{xxxxxxxx-68e0-42eb-aba9-xxxxxxxxxxxx}", "Mode": "Live", "command":"MasterPassQuickResponseCode", "MasterPassMerchantID": "xxxxx", "MasterPassAction": "UpdateCodeAmount", "MerchantReference": "Ref_001", "MasterPassCode":"xxx2720xxx", "Amount":"2000", "Currency":"ZAR", "MasterPassShortDescription":"The code has been updated"
} }
|
{ "Version": "2.0", "Direction": "Response", "Enquiry": { "MasterPassAction": "UpdateCodeAmount", "ApplicationID": "{xxxxxxxx-68E0-42EB-ABA9-xxxxxxxxxxxx}", "Command": "MasterPassQuickResponseCode", "Mode": "Live", "RequestID": "{xxxxxxxx-5FAE-490C-87CF-xxxxxxxxxxxx}", "Result": { "Status": "0", "Code": "0", "Description": "", "AppServer": "QAGW2012APP1", "DBServer": "QAGW2012DB2", "Gateway": "QA" } } }
|
Update Code -SOAP Sample
Request |
Response |
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <Execute xmlns="http://iveri.com/"> <validateRequest>false</validateRequest> <protocol>V_XML</protocol> <protocolVersion>7.0</protocolVersion> <request><V_XML Version="2.0" CertificateID="xxxxxxxx-71dd-4044-802d-xxxxxxxxxxxx" ProductType="Enterprise" ProductVersion="iVeriWebService" Direction="Request"> <Enquiry ApplicationID="xxxxxxxx-68e0-42eb-aba9-xxxxxxxxxxxx" Command="MasterPassQuickResponseCode" Mode="LIVE"> <Amount>2000</Amount> <Currency>ZAR</Currency> <MerchantReference>Ref_002</MerchantReference> <MasterPassMerchantID>xxxxx</MasterPassMerchantID> <MasterPassAction>UpdateCodeAmount</MasterPassAction> <MasterPassCode>xxx5104xxx</MasterPassCode> <MasterPassShortDescription>The code has been updated</MasterPassShortDescription> </Enquiry> </V_XML> </request> </Execute> </soap:Body> </soap:Envelope>
|
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ExecuteResponse xmlns="http://iveri.com/"><ExecuteResult><V_XML Version="2.0" Direction="Response"> <Enquiry ApplicationID="{xxxxxxxx-68E0-42EB-ABA9-xxxxxxxxxxxx}" Command="MasterPassQuickResponseCode" Mode="Live" RequestID="{xxxxxxxx-E3FB-447B-BBC1-xxxxxxxxxxxx}"> <Result Status="0" Code="0" Description="" AppServer="QAGW2012APP1" DBServer="QAGW2012DB2" Gateway="QA" /> <MasterPassAction>UpdateCodeAmount</MasterPassAction> </Enquiry> </V_XML></ExecuteResult></ExecuteResponse></soap:Body></soap:Envelope> |