All pages
Powered by GitBook
1 of 1

Loading...

requestSendBatchCommand (Reserved for Future Use)

This query string sends a batch of commands to the device and returns the raw response from the device.

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

Parameter

Description

operation

Operation to request from MagneFlex. Use: requestSendBatchCommand

httpMethod

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 β€˜,’.

Return Value:

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

commandResult

Result of a command sent to the device formatted as:

[command]-[result]

For each command sent in a batch is returned a separate commandResult. Example:

&commandResult=0900-000A9010010B355414000099 &commandResult=000100-000D31303030303033333534433033

&commandResult=1500-000103

passInData

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

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.

readerArgument

Batch of commands that should be sent to reader. Commands are delimited by the bar character β€˜|’.

Example:

readerArgument=0900|000100|1500

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.

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_BATCH_COMMAND_RESULT