Query API
The Query API provides machine‑readable access to your transaction history. Use it to pull settlement statuses, customer vault data and other details for custom reporting.
Overview
Whereas the gateway’s web interface lets you browse transactions manually, the Query API allows your application to request data programmatically. This is useful for reconciling orders with accounting systems or importing data into your own dashboards. The API returns records in a consistent format that you can parse and store.
Communication & Variables
According to integration resources, the Query API uses HTTP over SSL to send requests to a specified endpoint. You may use either GET or POST to pass name/value pairs to the API. At a minimum you provide your username andpassword credentials. Additional optional parameters filter the results—for exampletransaction_id, order_id,last_name or date ranges.
The API also supports conditions to retrieve only specific transaction states such as pending authorisations, settled transactions or failed payments. To query the customer vault rather than transactions, include thereport_type=customer_vault parameter and optionally specify a customer_vault_id.
Usage
To call the API, construct a request string with your credentials and desired filters and send it to the endpoint specified by your service provider. The response is typically a series of name/value pairs or a delimited text file that includes one line per transaction. You can parse this response to generate reports or feed data into your CRM.
Use Cases
The Query API is ideal for businesses that need automated reporting or integration with existing systems. Examples include daily settlement reports, reconciliation with ERP software, customer vault data synchronisation and custom analytics dashboards. By pulling data on demand, you avoid manual exports and keep your records up to date.
