# WEB API Resources - Part 2

#### sendARPC (EMV Only)

This query string sends the ARPC to the device during an EMV transaction.

```
?operation= 
&httpMethod= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=
```

<table data-header-hidden><thead><tr><th width="179.33331298828125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">operation</td><td valign="top"><p>Operation to request from MagneFlex. Use:</p><p>sendARPC</p></td></tr><tr><td valign="top">httpMethod</td><td valign="top"><p>HTTP method to be used for the HTTP postback from MagneFlex. Use:</p><p>GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string length.</p></td></tr><tr><td valign="top">closeDeviceAfter</td><td valign="top"><p>Flag to close the device after the request. Use:</p><p>true – close device</p><p>false – do not close the device</p></td></tr><tr><td valign="top">readerArgument</td><td valign="top"><p>ARPC data to send to the device. issuerAuthenticationData:, endSession:</p><p>Argument details:</p><p>issuerAuthenticationData – ARPC response to send to the device.</p><p> </p><p>endSession - Flag to end the session for the device. Default value is true.</p><p>“true” = End the session after the request is processed.</p><p>“false” = Do not end the session after the request is processed.</p></td></tr><tr><td valign="top">destinationURL</td><td valign="top">MagneFlex will send the postback to this URL.</td></tr><tr><td valign="top">requestLocation</td><td valign="top"><p>Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.</p><p>Use:</p><p>true – send location</p><p>false – do not send location</p></td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

Example query:&#x20;

```
https://192.168.10.100/magneflexdemo/cardpostback.aspx? 
operation=sendARPC 
&httpMethod=GET 
&closeDeviceAfter=true 
&readerArgument= 
    issuerAuthenticationData:0030F92EDFDF540A00000000000000000000DFDF550182DFDF250F423246363045413036313731364141FA0670048A023030000000000000, 
    endSession:true 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false
&passInData=
```

Return Value:

The EMV ARPC response output in Hex string format of device raw response for this command.

<table data-header-hidden><thead><tr><th width="169.3333740234375" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">errorCode</td><td valign="top">Error status. 0 is Success. Non-Zero is an error.</td></tr><tr><td valign="top">errorMessage</td><td valign="top">Description of the errorCode.</td></tr><tr><td valign="top">opType</td><td valign="top"><p>The type of operation. For this command the value is:</p><p>EMV_TRANS_RESULT</p></td></tr><tr><td valign="top">batchData</td><td valign="top">Batch data from the device to be passed to MagneFlex.</td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Example:

&#x20;<https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0\\&errorMessage=OK\\&opType=EMV\\_TRANS\\_RESULT\\&batchData=01023FF982023BDFDF540A00000000000000000000DFDF550182DFDF250F423246363045413036313731364141FA820211F082020DF105DFDF1A0100F8820176DFDF5982015888F3F2E7838F9B729FFED8D0866CB9C6CD06DC850B071ABF5184CFE9923B3F830D1BA6924B039DA9E75C8E717F9E0E95E45AC87A7BD94911F7E96CAE81E8A444F144714FF34B2C20E2F18D89D0616DBE355D808493488E2206273914A37833495A8C69DDEA90F182061CD7E7E416C20FBD260348389EAD6AFFBC0A0FD81BBE2E0D1FC2CF65195E1A79EC73264941D8F42BC5CD6837B9CCD267BD1FD5C37A9352AAEB1A1346E6C9C18ACA9CB01156C12411759091146357A87A39F1B3FB415EFDAA48509E9A25003E54E87616F63F04C2484261B3A765E23AB7176FF6C1B08D8BFD23B6884835620BB175E366A54232598028FF24998186BAA0590B92DCF336623F881D66379219C535DA2721E77ECBA8ADF8675BE0B9C8AC56CC5A52B9FD8216A43EA43B2B7CE7D22E911AB107566A8F79A103677F16681DD811852332CFB92D313ECC851C36E6317E087C3AAD65D3CDBDD36C97F9252770DFDF560A9010010B2F60EA0001C3DFDF570180DFDF580106F78200885F25031606235F24031806305F2A0208409F02060000000009999F03060000000000009F0607A00000000410109F1C0831313232333334349F3901059C01009F34031E03005F20164D4153544552434152442F4155544F4D4154494F4E49DFDF4D263B353535353030303032303030343434343D313830363230313030303030303030303030303F0011223344\\&passInData=>

#### requestPIN (PinPad Only) <a href="#bookmark14" id="bookmark14"></a>

This query string instructs the device to prompt for a PIN.

```
?operation= 
&httpMethod= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=
```

<table data-header-hidden><thead><tr><th width="182.6666259765625" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">operation</td><td valign="top"><p>Operation to request from MagneFlex. Use:</p><p>requestPIN</p></td></tr><tr><td valign="top">httpMethod</td><td valign="top"><p>HTTP method to be used for the HTTP postback from MagneFlex. Use:</p><p>GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string lengths.</p></td></tr><tr><td valign="top">closeDeviceAfter</td><td valign="top"><p>Flag to close the device after the request. Use:</p><p>true – close device</p><p>false – do not close the device</p></td></tr><tr><td valign="top">readerArgument</td><td valign="top"><p>Data to send for the device to be passed to MagneFlex. Arguments:</p><p>timeLimit:, fieldseparator:, pinOption:, maxpinlength:, minpinlength:, tone:,</p><p>pinmode:, endSession:</p><p>Argument details:</p><p>timeLimit - Seconds to wait before the operation times out. Value is in hexadecimal format.</p><p>(1 - 255)</p><p> </p><p>fieldseparator - Delimiter to separate the output data.</p><p> </p><p>pinOption - PIN verification and format:</p><p>0 = ISO0 Format, No verify PIN</p><p>1 = ISO3 Format, No verify PIN</p><p>2 = ISO0 Format, Verify PIN</p><p>3 = ISO3 Format, Verify PIN</p><p> </p><p>maxpinlength – Max PIN length in hexadecimal format. (&#x3C;= 0C)</p><p> </p><p>minpinlength – Min PIN length in hexadecimal format. (>= 04)</p><p> </p><p>tone – Beep behavior of prompt:</p><p>0 = None</p><p>1 = Single beep</p><p>2 = Double beep</p><p> </p><p>pinmode - Message to display as a user prompt:</p><p>0 = PINMsgEnterPIN</p><p>1 = PINMsgEnterPINAmt</p><p>2 = PINMsgReenterPINAmt</p><p>3 = PINMsgReenterPIN</p><p>4 = PINMsgVerifyPIN</p><p> </p><p>endSession - Flag to end the session for the device. Default value is true.</p><p>“true” = End the session after the request is processed.</p><p>“false” = Do not end the session after the request is processed.</p></td></tr><tr><td valign="top">destinationURL</td><td valign="top">MagneFlex will send the postback to this URL.</td></tr><tr><td valign="top">requestLocation</td><td valign="top"><p>Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.</p><p>Use:</p><p>true – send location</p><p>false – do not send location</p></td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

```
Example query: https://192.168.10.100/magneflexdemo/default.aspx? 
operation=requestPIN 
&httpMethod=GET 
&closeDeviceAfter=true 
&readerArgument= 
    timeLimit:3C, 
    fieldseparator:|, 
    pinOption:00, 
    maxpinlength:0C, 
    minpinlength:04, 
    pinmode:00, 
    endSession:true 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.asp 
&requestLocation=false 
&passInData=testData 
```

Return Value:

The Response output in Hex string format of device raw response for this command.

<table data-header-hidden><thead><tr><th width="181.33331298828125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">errorCode</td><td valign="top">Error status. 0 is Success. Non-Zero is an error.</td></tr><tr><td valign="top">errorMessage</td><td valign="top">Description of the errorCode.</td></tr><tr><td valign="top">opType</td><td valign="top"><p>The type of operation. For this command the value is:</p><p>PIN_RESULT</p></td></tr><tr><td valign="top">operationStatus</td><td valign="top">Status of the operation.</td></tr><tr><td valign="top">pinEPB</td><td valign="top">Encrypted PIN block.</td></tr><tr><td valign="top">pinKSN</td><td valign="top">PIN KSN.</td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Example:&#x20;

<https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0\\&err> orMessage=OK\&opType=PIN\_RESULT\&operationStatus=00\&pinEPB=1098FF7ECABD1 1F3\&pinKSN=9A006300000001200010\&passInData=testData

#### requestManualCard (PinPad Only) <a href="#bookmark15" id="bookmark15"></a>

This query string instructions the device to prompt for a manual card entry.

```
&operation= &httpMethod= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=
```

<table data-header-hidden><thead><tr><th width="149.99993896484375" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">operation</td><td valign="top"><p>Operation to request from MagneFlex. Use:</p><p>requestManualCard</p></td></tr><tr><td valign="top">httpMethod</td><td valign="top"><p>HTTP method to be used for the HTTP postback from MagneFlex. Use:</p><p>GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string lengths.</p></td></tr><tr><td valign="top">closeDeviceAfter</td><td valign="top"><p>Flag to close the device after the request. Use:</p><p>true – close device</p><p>false – do not close the device</p></td></tr><tr><td valign="top">readerArgument</td><td valign="top"><p>Data to send for the device to be passed to MagneFlex. Arguments:</p><p>timeLimit:, option:, tone:, endSession:</p><p>Argument details:</p><p>timeLimit - Seconds the device will wait for the user to complete the operation in hexadecimal:</p><p>(1 - 255)</p><p> </p><p>option - This is an ORed combination of flags that changes the device’s data entry request behavior. Value is decimal equivalent of the binary value.</p><p>Bits 0 and 1</p><p>0 = Acct,Date,CVC</p><p>1 = Acct,Date</p><p>2 = Acct,CVC</p><p>3 = Acct</p><p> </p><p>Bit 2</p><p>1=Use Qwick Codes entry</p><p> </p><p>Bit 3</p><p>1=Use PAN in PIN block creation</p><p> </p><p>Bit 4</p><p>0=Use PAN min 9, max 19</p><p>1=Use PAN min 14, max 21</p><p> </p><p>tone – Beep behavior of prompt:</p><p>0 = None</p><p>1 = Single beep</p><p>2 = Double beep</p><p> </p><p>endSession - Flag to end the session for the device. Default value is true.</p><p>“true” = End the session after the request is processed.</p><p>“false” = Do not end the session after the request is processed.</p></td></tr><tr><td valign="top">destinationURL</td><td valign="top">MagneFlex will send the postback to this URL.</td></tr><tr><td valign="top">requestLocation</td><td valign="top"><p>Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.</p><p>Use:</p><p>true – send location</p><p>false – do not send location</p></td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

Example Query:

```
https://192.168.10.100/magneflexdemo/default.aspx? 
operation=requestManualCard &httpMethod=GET 
&closeDeviceAfter=true 
&readerArgument= 
    timeLimit:3C, 
    option:8, 
    tone:00, 
    endSession:true 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false &passInData= 
```

Return Value:

The CardSwipe output in TVL format.

<table data-header-hidden><thead><tr><th width="189.33331298828125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">errorCode</td><td valign="top">Error status. 0 is Success. Non-Zero is an error.</td></tr><tr><td valign="top">errorMessage</td><td valign="top">Description of the errorCode.</td></tr><tr><td valign="top">opType</td><td valign="top"><p>The type of operation. For this command the value is:</p><p>CARD_MANUAL_SWIPE</p></td></tr><tr><td valign="top">cardDataIn</td><td valign="top">Manual card entry data in TLV format.</td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Example:&#x20;

<https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0\\&errorMessage=OK\\&opType=CARD\\_MANUAL\\_SWIPE\\&cardDataIn=FA81EBDFDF251039384446323041393034313230423045F481D4DFDF30020000DFDF3139254D313131313030303030343030303030313131315E4D414E55414C20454E5452592F5E32323232303030303030303030303030303030303FDFDF32020000DFDF33273B313131313030303030343030303030313131313D32323232303030303030303030303030303FDFDF34020100DFDF3500DFDF371C%M1111000004000001111^MANUAL> ENTRY/^22220000000000000000DFDF3913;1111000004000001111=2222000000000 0000?DFDF3B00DFDF3C00DFDF430400000000DFDF500A9500030000000120000C\&pass InData=

#### requestSendCommand (PinPad Only) <a href="#bookmark16" id="bookmark16"></a>

This query string sends a command to the device and returns the raw response from the device.

```
&httpMethod= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=
```

<table data-header-hidden><thead><tr><th width="198" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">operation</td><td valign="top"><p>Operation to request from MagneFlex. Use:</p><p>requestSendCommand</p></td></tr><tr><td valign="top">httpMethod</td><td valign="top"><p>HTTP method to be used for the HTTP postback from MagneFlex. Use:</p><p>GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string lengths.</p></td></tr><tr><td valign="top">closeDeviceAfter</td><td valign="top"><p>Flag to close the device after the request. Use:</p><p>true – close device</p><p>false – do not close the device</p></td></tr><tr><td valign="top">readerArgument</td><td valign="top"><p>Comma delimited list of arguments to be passed to MagneFlex. Arguments:</p><p>timeLimit:, command:, commandType:, waitForReport:, endSession:</p><p>Argument details:</p><p>timeLimit - Seconds to wait before the operation times out. Value is in hexadecimal format.</p><p>(1 - 255)</p><p> </p><p>command – Command to be sent in hexadecimal.</p><p>commandType – Type of command to be sent.</p><p>“SET” = For commands where the ACK status is to be returned. “GET” = For commands where the data is to be returned.</p><p> </p><p>waitForReport - The report number to wait for before returning the response.</p><p>Example:</p><p>Command 30 00 (Set KSN) will respond with an ACK (01) or with data in Get Mode (30).</p><p>“01” = will return the response for ACK report (01). “30” = will return the data report (30).</p><p> </p><p>endSession - Flag to end the session for the device. Default value is true.</p><p>“true” = End the session after the request is processed.</p><p>“false” = Do not end the session after the request is processed.</p></td></tr><tr><td valign="top">destinationURL</td><td valign="top">MagneFlex will send the postback to this URL.</td></tr><tr><td valign="top">requestLocation</td><td valign="top"><p>Flag to send GPS location of the device hosting Magneflex (iOS only). Use:</p><p>true – send location</p><p>false – do not send location</p></td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app</td></tr></tbody></table>

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

Example query:&#x20;

```
https://192.168.10.100/magneflexdemo/default.aspx? 
operation=requestSendCommand 
&httpMethod=GET 
&closeDeviceAfter=true 
&readerArgument= 
    timeLimit:3C, 
    command:070501, 
    commandType:SET, 
    waitForReport:27, 
    endSession:true 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false 
&passInData=testData 
```

Return Value:&#x20;

The Command response output in TVL format.

<table data-header-hidden><thead><tr><th width="190.66668701171875" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">errorCode</td><td valign="top">Error status. 0 is Success. Non-Zero is an error.</td></tr><tr><td valign="top">errorMessage</td><td valign="top">Description of the errorCode.</td></tr><tr><td valign="top">opType</td><td valign="top"><p>The type of operation. For this command the value is:</p><p>SEND_COMMAND_RESULT</p></td></tr><tr><td valign="top">commandID</td><td valign="top">Command that was sent.</td></tr><tr><td valign="top">commandResult</td><td valign="top">Data returned from the command sent to the device.</td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Example:&#x20;

<https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0\\&errorMessage=OK\\&opType=SEND\\_COMMAND\\_RESULT\\&commandID=070501\\&commandResult=270000401F3F12006034F70080F8FFFF6034F70080F8FFFF70E6530F80FAFFFF20F3440D80FAFFFF287EF40080F8FFFF10B4480D80FAFFFF78B4480D80FAFFFF80B4480D80FAFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\\&passInData=testdata>

#### requestSignature (PinPad Only) <a href="#bookmark17" id="bookmark17"></a>

This query string instructions the device to prompt for a Signature.

```
?operation= 
&httpMethod= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=
```

<table data-header-hidden><thead><tr><th width="213.33331298828125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">operation</td><td valign="top"><p>Operation to request from MagneFlex. Use:</p><p>requestSignature</p></td></tr><tr><td valign="top">httpMethod</td><td valign="top"><p>HTTP method to be used for the HTTP postback from MagneFlex. Use:</p><p>GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string lengths.</p></td></tr><tr><td valign="top">closeDeviceAfter</td><td valign="top"><p>Flag to close the device after the request. Use:</p><p>true – close device</p><p>false – do not close the device</p></td></tr><tr><td valign="top">readerArgument</td><td valign="top"><p>Comma delimited list of arguments to be passed to MagneFlex. Arguments:</p><p>timeLimit:, option:, tone:, endSession:</p><p>Argument details:</p><p>timeLimit - Seconds the device will wait for the user to complete the operation in hexadecimal.</p><p>(1 - 255)</p><p> </p><p>option:</p><p>0 = Timeout clears any signature data</p><p>1 = Timeout returns timeout status plus length collected. Sig Data can be requested.</p><p> </p><p>tone – Type of prompt tone:</p><p>0 = No sound</p><p>1 = One beep</p><p>2 = Two beeps</p><p> </p><p>endSession - Flag to end the session for the device. Default value is true.</p><p>“true” = End the session after the request is processed.</p><p>“false” = Do not end the session after the request is processed.</p></td></tr><tr><td valign="top">destinationURL</td><td valign="top">MagneFlex will send the postback to this URL.</td></tr><tr><td valign="top">requestLocation</td><td valign="top"><p>Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.</p><p>Use:</p><p>true – send location</p><p>false – do not send location</p></td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

Example query:&#x20;

```
https://192.168.10.100/magneflexdemo/default.aspx? 
&operation=requestSignature 
&httpMethod=GET 
&closeDeviceAfter=true 
&readerArgument= 
    timeLimit:3C, 
    option:00, 
    tone:01, 
    endSession:true 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false 
&passInData=testData
```

Return Value:

The Signature capture output in TVL format.

<table data-header-hidden><thead><tr><th width="185.3333740234375" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">errorCode</td><td valign="top">Error status. 0 is Success. Non-Zero is an error.</td></tr><tr><td valign="top">errorMessage</td><td valign="top">Description of the errorCode.</td></tr><tr><td valign="top">opType</td><td valign="top"><p>The type of operation. For this command the value is:</p><p>SIGNATURE_RESULT</p></td></tr><tr><td valign="top">signatureDataIn</td><td valign="top">Signature data from the device in hexadecimal format.</td></tr><tr><td valign="top">signatureResult</td><td valign="top">Result of the signature capture.</td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Example:&#x20;

<https://192.168.10.100/magneflexdemo/cardpostback.aspx,Data=opType=SIGNATURE\\_RESULT\\&signatureDataIn=283E293F29402B422B442C462E4B2F4F30513257335A345D346035633769376B386D386E386F376C376937663663365F36573653374F384B39473A443C413E3F403D463A493A4D3B513C553E58406046684D6B506E547057725B7361736473666F696C6A696A656A60695C68FFFF8E629063916392639264936494649564FFFF813882388337853787378A378B368D3690369236953599359C34A333A732AB32B230B62FB92FBD2EC02DC62CC82CFFFFA827A828A929AA2AAA2BAB2CAD2FAE31AF35B037B138B23BB33EB542B748B84CB852B855B75AB65CB55EB05FAE60AA5FA75EA35DFFFFD156CF54CE53CD52CC51CB4FC94EC64BFFFF\\&signatureResult=0\\&passInData=test> data

### requestData (MICR Only)

This query string retrieves data from user interaction with the device.

```
?operation= 
&httpMethod= 
&customDisplayMessage= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=
```

<table data-header-hidden><thead><tr><th width="222" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">operation</td><td valign="top"><p>Operation to request from MagneFlex. Use:</p><p>requestData</p></td></tr><tr><td valign="top">httpMethod</td><td valign="top"><p>HTTP method to be used for the HTTP postback from MagneFlex. Use:</p><p>GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string lengths.</p></td></tr><tr><td valign="top">customDisplayMessage</td><td valign="top">Message to display within the browser to instruct user interaction (iOS only).</td></tr><tr><td valign="top">closeDeviceAfter</td><td valign="top"><p>Flag to close the device after the request. Use:</p><p>true – close device</p><p>false – do not close the device</p></td></tr><tr><td valign="top">readerArgument</td><td valign="top"><p>Comma delimited list of arguments to be passed to MagneFlex. Arguments:</p><p>timeLimit:</p><p>Argument details:</p><p>timeLimit - Seconds the device will wait for the user to complete the operation in hexadecimal.</p><p>(1 - 255)</p></td></tr><tr><td valign="top">destinationURL</td><td valign="top">MagneFlex will send the postback to this URL.</td></tr><tr><td valign="top">requestLocation</td><td valign="top"><p>Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.</p><p>Use:</p><p>true – send location</p><p>false – do not send location</p></td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

Example query:&#x20;

```
https://192.168.10.100/magneflexdemo/default.aspx? 
operation=requestData 
&httpMethod=GET 
&customDisplayMessage=Please Swipe Card or Scan a Check &closeDeviceAfter=true 
&readerArgument= 
    timeLimit:3C 
    &destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx &requestLocation=false
&passInData=testData
```

Return Value:

The Command response output in TVL format.

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Parameter</td><td valign="top">Description</td></tr><tr><td valign="top">errorCode</td><td valign="top">Error status. 0 is Success. Non-Zero is an error.</td></tr><tr><td valign="top">errorMessage</td><td valign="top">Description of the errorCode.</td></tr><tr><td valign="top">opType</td><td valign="top"><p>The type of operation. For this command the value is:</p><p>REQUEST_DATA_RESULT</p></td></tr><tr><td valign="top">dataResponse</td><td valign="top">Data received from the device.</td></tr><tr><td valign="top">passInData</td><td valign="top">Optional data to send to MagneFlex. This data will be passed back to the web app.</td></tr></tbody></table>

Example:&#x20;

```
https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0&errorMessage=OK&opType=REQUEST_DATA_RESULT&dataResponse= 
%B5999991234567891^MAGTEK/TEST 
^21042011000000819000000?;5999991234567891=210420110000819?<13> &passInData=testdata
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.magtek.com/hardware/card-readers/magnetic-stripe-readers/idynamo-5-gen-iii/documentation/developers-manuals/magneflex-browser-programmers-reference/magneflex-browser-web-api-resources/web-api-resources-part-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
