For the complete documentation index, see llms.txt. This page is also available as Markdown.

requestSendExtendedCommand

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

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

Parameter

Description

operation

Operation to request from MagneFlex. Use: requestSendExtendedCommand

httpMethod

HTTP method to be used for the HTTP postback from MagneFlex. Use:

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.

closeDeviceAfter

Flag to close the device after the request. Use:

true – close device

false – do not close the device

readerArgument

Extended command to send to reader.

destinationURL

MagneFlex will send the postback to this URL.

requestLocation

Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.

Use:

true – send location

false – do not send location

passInData

Optional data to send to MagneFlex. This data will be passed back to the web app.

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=requestSendExtendedCommand 
&httpMethod=GET
&closeDeviceAfter=true 
&readerArgument=03060003010F00
&destinationURL= https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false
&passInData=

Return Value:

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

Parameter

Description

errorCode

Error status. 0 is Success. Non-Zero is an error.

errorMessage

Description of the errorCode.

opType

The type of operation. For this command the value is:

SEND_EXTENDED_COMMAND_RESULT

commandID

Command that was sent.

commandResult

Result of a command sent to the device.

passInData

Optional data to send to MagneFlex. This data will be passed back to the web app.

Example

https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0&err orMessage=OK&opType=SEND_EXTENDED_COMMAND_RESULT&commandID=0306&comman dResult=000001A801A6FA8201A2DFDF2101105F2A0208405F360102DFDF5B010CDFDF 5C0102DFDF75010CDFDF76010CDFDF6E010C9F150230309F1607303030303030309F1A

0208409F1C0831313232333334349F33032028C89F3501219F4005720000B0019F4E07

30303030303030DFDF0109A000000004F8001000DFDF025E9ADFDF289F025A899F109F

159F169F4E828E5F245F259F069F079F0D9F0E9F0F9F269F279F369C9F339F349F379F

399F40959B9F5BDFDF009F1E9F1A5F2A9F019F218ADF8120DF8121DF81225F20505F34

849F039F099F1E9F359F419F53DFDF05299A829F369F1E9F109F5B9F339F35959F015F

245A5F348A9F159F169F399F1A9F1C579F025F2A9F219CDFDF06028A91DFDF14040000

7530DFDF150400000001DFDF160400000080DFDF17599ADFDF289F029F035A899F109F

159F169F4E828E5F245F259F069F079F0D9F0E9F0F9F269F279C9F339F349F359F369F

379F399F409F419F53959B9F5BDFDF009F1E9F1A5F2A9F018ADF8120DF8121DF81225F

205F349F0984DFDF20024328DFDF260E4D414754454B2044454641554C549F3C020998

9F3D0102DFDF4704755EFA9B& passInData=

Last updated