TransactionReference Transaction Status

In this section you will learn how to process a Transaction Reference Transaction Status message

TransactionReference Transaction Status Overview

A TransactionReference Transaction Status request message enables a merchant to return the status of a transaction using a transaction reference associated with a previous transaction.

How to process a TransactionReference Transaction Status request message

The merchant's system sends a HTTP GET TransactionReference Transaction Status request message to the ANYpay Gateway. Sections TransactionReference Transaction Status describes the elements required to build a TransactionReference Transaction Status request message.

Examples of a TransactionReference Transaction Status request message can be seen below where the merchantId is a unique customer ID allocated to a customer when the service is set up by PXP Financial and clientSystemTransactionId is the merchant's own unique reference for the transaction.

https://api-integration.pxp-solutions.net/transactionservice/api/v5/transactions?merchantId={merchantId}&clientSystemTransactionId={clientSystemTransactionId}

Handling a TransactionReference Transaction Status response message

An example of a TransactionReference Transaction Status response message can be seen below.

{
  "id": "03379763-2e9a-4ab8-9e0f-ed8c39614fcf",
  "state": "Authorised",
  "providerStateCode": "000",
  "providerStateMessage": null,
  "currencyCode": "USD",
  "transactionAmount": 10,
  "cardType": "card.visa",
  "type": "ecom.sale",
  "transactionDateTime": "2018-02-16T14:55:41.777",
  "accountDetails": {
    "cardNumber": "444433******1111",
    "cardTokenizedNumber": "9997000000005071111",
    "isVisaCheckout": null,
    "cardExpiryYear": 49,
    "cardExpiryMonth": 12
  },
  "details": {
    "providerMerchantId": "542929008043127",
    "providerTerminalId": "00630376"
  },
  "stateDetails": {
    "approvalCode": "06287A"
  }
}