Status of an ANYpay POS instance

In this section you will learn how to request the status of an ANYpay POS instance

Status of an ANYpay POS instance

A ANYpay POS query enables a merchant to check the status of an ANYpay POS instance before a transaction is invoked.

418

How to request the status of an ANYpay POS instance

The merchant's system sends a QueryPosRequest message to ANYpay POS which if running will return a status response. An example of a QueryPosRequest message can be seen below.

<QueryPosRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://servebase.com/2009/06/pedframework" />

Handling a QueryPosResponse message

Section QueryPosResponse Element describes the elements that are returned in an QueryPosResponse message. An example of a QueryPosResponse message for can be seen below.

<?xml version="1.0" encoding="utf-16"?>
<QueryPosResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://servebase.com/2009/06/pedframework">
  <Status>True</Status>
  <FaultResponseCode>0</FaultResponseCode>
</QueryPosResponse>