Transaction Lookup API

Why use this API?

The Transaction Lookup API is used to confirm the transaction status after a purchase.

The Transact Result API pushes the transaction status to a client as soon as the final status is available in the Clickatell platform, and the Transaction Lookup API (this API) is a secondary API that can be used to confirm the status of a transaction after a purchase.

Only transactions performed within the last 30 days will be available through the Transaction Lookup API.

Participating parties

See here for definitions.

  • Clickatell

  • Client

Getting started with the Transaction Lookup API

To interface with Clickatell, the following needs to be set up, configured, and tested:

1

Integrate with Security Service API

  • Follow the instructions in the Security Service API quick-start guide to request a token with your client_secret and client_id.

  • Use the API_key and access_token in the following request (Step 2).

2

Call Transaction Lookup API (this API)

  • Add the API_key and access_token to the request header.

  • Use the client_id supplied during integration.

  • Use one of the following fields for the transaction lookup:

    • raasTxnRef

    • reserveFundsTxnRef

    • clientTxnRef

3

Evaluate the transaction status

  • The transactionStatus field will indicate the current transaction status

  • The reserveFundsResponseCode field will contain the responseCode received in the response from the funding source during the Reserve Funds API call.

  • The transactResultResponseCode field will contain the responseCode that was sent to the funding source during the Transact Result API call.

  • If no transaction is found the API will return “HTTP/1.1 404

A high-level view of this interface.