List Transactions API

Query the transaction list for your authenticated company via SePay API v2. Supports pagination and filtering by date, amount, and bank account.

||

List Transactions

GET
https://userapi.sepay.vn/v2/transactions
Information

Lists transactions for the authenticated company. Default 20 transactions per page, maximum 100.

Query Parameters

ParameterTypeDescription
qstringMulti-field search on reference_number, transaction_content, code
bank_account_idstring (UUID)Filter by bank account UUID
va_idstring (UUID)Filter by virtual account UUID
bank_brand_namestringFilter by bank (e.g., ACB, BIDV, VPB)
transaction_date_fromdatetimeStart date (inclusive)
transaction_date_todatetimeEnd date (inclusive)
amount_in_minintMinimum incoming amount
amount_in_maxintMaximum incoming amount
amount_out_minintMinimum outgoing amount
amount_out_maxintMaximum outgoing amount
reference_numberstringExact match on reference number
transaction_contentstringLIKE search on transaction content
transfer_typestringin or out
webhook_successint0 or 1
since_idstring (UUID)Cursor-based polling
transaction_date_sortstringasc or desc
amount_in_sortstringasc or desc
amount_out_sortstringasc or desc

Code Examples

>
>
>
curl --request GET \
--url 'https://userapi.sepay.vn/v2/transactions?q=SOME_STRING_VALUE&bank_account_id=f9e8d7c6-b5a4-3210-fedc-ba0987654321&va_id=a2b3c4d5-e6f7-8901-bcde-f12345678901&bank_brand_name=ACB&transaction_date_from=2026-01-01%2000%3A00%3A00&transaction_date_to=2026-03-31%2023%3A59%3A59&amount_in_min=500000&amount_in_max=10000000&amount_out_min=SOME_INTEGER_VALUE&amount_out_max=SOME_INTEGER_VALUE&reference_number=SOME_STRING_VALUE&transaction_content=SOME_STRING_VALUE&transfer_type=SOME_STRING_VALUE&webhook_success=SOME_INTEGER_VALUE&since_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890&transaction_date_sort=SOME_STRING_VALUE&amount_in_sort=SOME_STRING_VALUE&amount_out_sort=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&per_page=SOME_INTEGER_VALUE&fields=SOME_STRING_VALUE&timestamp_format=SOME_STRING_VALUE' \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Response

{
  "status": "success",
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "transaction_date": "2025-02-20 14:15:00",
      "account_number": "0123456789",
      "va": "VA001",
      "transfer_type": "in",
      "amount_in": 500000,
      "amount_out": 0,
      "accumulated": 1500000,
      "transaction_content": "Thanh toan don hang #123",
      "reference_number": "FT26069ABC",
      "code": "ABC123",
      "bank_brand_name": "ACB",
      "bank_account_id": "f9e8d7c6-b5a4-3210-fedc-ba0987654321",
      "va_id": "a2b3c4d5-e6f7-8901-bcde-f12345678901",
      "webhook_success": 1
    }
  ],
  "meta": {
    "pagination": {
      "total": 150,
      "per_page": 20,
      "current_page": 1,
      "last_page": 8,
      "has_more": true
    }
  }
}
Response 200 - Transaction list
{
  "status": "success",
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "transaction_date": "2025-08-15 09:30:00",
      "account_number": "19028745631",
      "va": "VA001",
      "amount_in": 500000,
      "amount_out": 0,
      "accumulated": 1500000,
      "transaction_content": "Chuyen tien mua hang DH2025001",
      "reference_number": "FT26069ABC",
      "code": "ABC123",
      "bank_brand_name": "ACB",
      "bank_account_id": "f9e8d7c6-b5a4-3210-fedc-ba0987654321",
      "va_id": "a2b3c4d5-e6f7-8901-bcde-f12345678901",
      "webhook_success": 1,
      "transfer_type": "in"
    }
  ],
  "meta": {
    "pagination": {
      "total": 150,
      "per_page": 20,
      "current_page": 1,
      "last_page": 8,
      "has_more": true
    }
  }
}

Notes

  • id is the UUID of the transaction
  • bank_account_id is the UUID of the bank account
  • va_id is the UUID of the VA; null if the transaction did not go through a VA
  • webhook_success: 0 = not sent or failed, 1 = success, null if no webhook configured
  • Currency fields are always integers
  • q searches simultaneously on reference_number, transaction_content, code
  • since_id supports cursor-based polling: it returns only transactions recorded after the given ID (an unknown ID returns an empty list). It does not change the sort order, which stays transaction_date descending (newest first) by default. When polling, add transaction_date_sort=asc and read every page (page) before using the id of the last transaction as the next since_id, otherwise you may miss transactions
  • per_page maximum is 100

NAPAS static QR transactions

Applies to accounts with NAPAS static QR

NAPAS static QR is a QR code printed for each terminal (cashier counter). The customer scans it to pay, and SePay receives the transaction through NAPAS rather than through the bank API connection. See the guide on registering and using NAPAS static QR.

NAPAS static QR transactions sit in the same list as other transactions. These fields carry specific values:

FieldValue
vaNAPAS terminal code: the 7-character merchant code (VAC), the 3-character terminal code and the HHNAPGSQR suffix. E.g. ABCDEFG001HHNAPGSQR
va_idUUID of the terminal, same as id in List virtual accounts
bank_brand_nameBank of the receiving account, e.g. Vietcombank
transaction_contentAlways in the form Thanh toán QR NAPAS terminal 001
codeAlways null, as the customer enters no transfer content
accumulatedAlways 0, as NAPAS does not send the account balance
reference_numberTransaction ID issued by NAPAS
Response 200 - NAPAS static QR transaction
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"status": "success",
"data": [
{
"id": "b7c8d9e0-f1a2-3b4c-5d6e-7f8091a2b3c4",
"transaction_date": "2026-11-16 10:12:45",
"account_number": "0123456789",
"va": "ABCDEFG001HHNAPGSQR",
"transfer_type": "in",
"amount_in": 150000,
"amount_out": 0,
"accumulated": 0,
"transaction_content": "Thanh toán QR NAPAS terminal 001",
"reference_number": "2611161012450001",
"code": null,
"bank_brand_name": "Vietcombank",
"bank_account_id": "f9e8d7c6-b5a4-3210-fedc-ba0987654321",
"va_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"webhook_success": 0
}
],
"meta": {
"pagination": {
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"has_more": false
}
}
}
  • Filtering by bank_brand_name=Vietcombank also returns NAPAS static QR transactions of Vietcombank accounts
  • To filter by one terminal, pass that terminal's va_id
  • The sandbox has no NAPAS static QR transactions
NAPAS static QR transactions have no webhook

SePay sends no webhook for NAPAS static QR transactions. To reconcile them, call this endpoint with since_id as in the polling example below.

Usage Examples

Get incoming transactions from 500,000 to 1,000,000:

cURL
1
2
3
curl -X GET "https://userapi.sepay.vn/v2/transactions?amount_in_min=500000&amount_in_max=1000000" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Poll for new transactions using since_id:

cURL
1
2
3
curl -X GET "https://userapi.sepay.vn/v2/transactions?since_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890&transaction_date_sort=asc" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Search transactions by content:

cURL
1
2
3
curl -X GET "https://userapi.sepay.vn/v2/transactions?q=DH001" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"