WiPay
WAPIsv2.0.0Transactions

Transaction History

Retrieve paginated transaction history

Retrieve a paginated list of your transactions, filterable by environment.

Each object in the data array contains the details of one transaction. Completed transactions include the full set of fields. Incomplete transactions contain a subset — fields such as card, customer_email, hash, message, origin, receiver, and total_credited are only present once a payment attempt has been made.

Endpoint

GET /transactions
AccessRequirement
AuthenticatedYes
Required Scopewapi-transactions-retrieve, or wapi-transactions-all
Rate Limit15 requests per minute

Request

Headers

HeaderValue
Acceptapplication/json
AuthorizationBearer <access_token>
X-WAPI-Keywapi_live_<kid>_<secret> or wapi_test_<kid>_<secret>

Send exactly one of Authorization or X-WAPI-Key.

Query Parameters

ParameterTypeRequiredDefaultDescription
environmentstringYes"sandbox" or "live"
page_sizeintegerNo15Number of results per page
pageintegerNo1Page number for pagination

Responses

200 OK

{
  "message": "OK",
  "data": [
    {
      "card": "(MASTERCARD) ... 0031",
      "currency": "USD",
      "currency_credited": "TTD",
      "customer_address": null,
      "customer_email": "wapi@test.com",
      "customer_name": "TEST CUSTOMER",
      "customer_phone": null,
      "data": "{\"extra\":\"data\"}",
      "date": "2026-02-03T03:24:53+00:00",
      "fee_structure": "Customer Pay",
      "hash": "59492afa9b7dc901a71b4abc4f2a37e2e83da25e46417bb977a5b03cab022b66",
      "message": "[1-R00]: Transaction is approved.",
      "order_id": "oId_123-Abc1",
      "origin": "Card payment via Example Origin plugin",
      "receiver": "TEST MERCHANT",
      "status": "success",
      "status_desc": "Normal",
      "total": "23.84",
      "total_credited": "155.00",
      "transaction_id": "SB-32-55179-oId_123-Abc1-20260202232018"
    },
    {
      "currency": "TTD",
      "data": "{\"extra\":\"data\"}",
      "date": "2026-02-01T01:33:24+00:00",
      "fee_structure": "Customer Pay",
      "order_id": "oId_123-Abc1",
      "status": "incomplete",
      "status_desc": "Transaction Incomplete",
      "total": "155.00",
      "transaction_id": "SB-60-55179-oId_123-Abc1-20260131213323"
    }
  ],
  "links": {
    "first": "https://...",
    "last": "https://...",
    "prev": null,
    "next": "https://..."
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 6,
    "path": "https://...",
    "per_page": "5",
    "to": 5,
    "total": 26
  }
}

Transaction Object (Completed)

FieldTypeDescription
transaction_idstringUnique transaction identifier
order_idstringYour order/reference ID
statusstring"success", "failed", "incomplete"
status_descstringHuman-readable status description (e.g., "Normal", "WAPI - Transferred to MMA", "Transaction Incomplete")
totalstringTransaction amount charged
total_creditedstringAmount credited to the merchant
currencystringCurrency of the transaction (e.g., "USD", "TTD")
currency_creditedstringCurrency credited to the merchant
datestringISO 8601 timestamp
cardstringMasked card details (e.g., "(MASTERCARD) ... 0031")
customer_namestringName of the payer
customer_emailstringPayer's email address
customer_phonestring | nullPayer's phone number
customer_addressstring | nullPayer's address
receiverstringName of the receiving merchant
originstringSource of the transaction (e.g., plugin or integration identifier)
fee_structurestringFee arrangement display name (e.g., "Customer Pay")
hashstringTransaction verification hash
messagestringGateway result code and message (e.g., "[1-R00]: Transaction is approved.")
datastring | nullCustom data passed during payment initiation

Transaction Object (Incomplete)

Incomplete transactions have not yet received a payment attempt. Only these fields are present:

transaction_id, order_id, status, status_desc, total, currency, date, fee_structure, data

Pagination

FieldTypeDescription
meta.current_pageintegerCurrent page number
meta.last_pageintegerTotal number of pages
meta.per_pagestringItems per page
meta.totalintegerTotal number of transactions
meta.fromintegerStarting record index
meta.tointegerEnding record index
links.firststringURL to first page
links.laststringURL to last page
links.prevstring | nullURL to previous page
links.nextstring | nullURL to next page

400 Bad Request

{
  "message": "The selected environment is invalid."
}

401 Unauthorized

{
  "message": "Unauthorized"
}

403 Forbidden

Insufficient permissions
{
  "message": "Forbidden"
}
Invalid scopes
{
  "message": "Invalid scope(s) provided."
}

Example

curl -X GET "https://ttsb.wipayfinancial.com/wapi/transactions?environment=sandbox&page_size=5&page=1" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"