SePay icon

SePay

Interact with SePay API

Actions3

Overview

This node interacts with the SePay API to retrieve transaction data. Specifically, the "Get By ID" operation under the "Transaction" resource fetches detailed information about a single transaction using its unique identifier. This is useful when you need to obtain precise details of a specific transaction for auditing, reconciliation, or reporting purposes.

Practical examples:

  • Fetching transaction details after receiving a transaction ID from another system.
  • Verifying the status or metadata of a particular payment or transfer.
  • Integrating transaction lookups into automated workflows for financial processing.

Properties

Name Meaning
Transaction ID The unique identifier of the transaction to retrieve. This is required and must be provided as a string.

Output

The node outputs an array of JSON objects representing transactions. For the "Get By ID" operation, each output item corresponds to a single transaction object returned by the SePay API under the transaction field. The structure includes all available details of that transaction as provided by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the SePay API.
  • Needs an API authentication token credential configured in n8n (referred to generically as an API key credential).
  • Uses the Axios HTTP client internally to make requests to the SePay endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Transaction ID will cause the API call to fail or return no data.
    • Expired or incorrect API token credentials will result in authorization errors.
    • Network connectivity problems can prevent successful API communication.
  • Error messages:

    • Errors from the SePay API are caught and rethrown with the prefix SePay API Error: followed by the error message returned by the API. For example, if the transaction ID does not exist, the API might return an error which will be surfaced here.
  • Resolution tips:

    • Verify that the Transaction ID is correct and exists in the SePay system.
    • Ensure the API token credential is valid and has not expired.
    • Check network settings and firewall rules to allow outbound HTTPS requests to https://my.sepay.vn/userapi.

Links and References

Discussion