Transaction Detail API

API to retrieve detailed information of a specific transaction by transaction_id. Supports full lookup of a transaction.


API Endpoint

GET
https://bankhub-api-sandbox.sepay.vn/v1/transaction/{transaction_id}

Path Parameters

transaction_idstringrequired

Unique transaction ID

Note
  • This API requires a Bearer Token in the Authorization header
  • The transaction ID must exist in the system
  • Returns full detailed information of a transaction
  • Includes Virtual Account (VA) information if available

Error Handling

401Unauthorized

The access token is invalid or has expired

404Not Found

The transaction does not exist or does not belong to this merchant

API Response

Response 200 - Success
{
  "data": {
    "transaction_id": "string",
    "transaction_date": "string",
    "bank_account_xid": "string",
    "company_xid": "string",
    "brand_name": "string",
    "account_number": "string",
    "va": "string",
    "va_xid": "string",
    "reference_number": "string",
    "transfer_type": "in",
    "amount": 0,
    "transaction_content": "string",
    "payment_code": "string",
    "webhook_success": 0
  }
}
dataobject

Code Examples

1
2
3
curl --request GET \
--url https://bankhub-api-sandbox.sepay.vn/v1/transaction/a47b6ab2-8f8b-11f0-b21a-a6006ab65aca \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Usage Examples

JSGet transaction details
1
2
curl --location 'https://bankhub-api-sandbox.sepay.vn/v1/transaction/123456' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Note
  • Transaction ID: Must be a valid ID that exists in the system
  • 404 Error: If the transaction_id does not exist, the API will return a 404 error
  • VA Fields: The va and va_xid fields are only populated for transactions via virtual accounts
  • Payment Code: Automatically extracted from transaction_content based on merchant configuration