List Transactions

The purpose of transaction API is to provide users with an ability to access the transaction related reports and merchant reports via API.

Get Transactions

GET https://<PayEngine-host>/api/merchant/:merchant_id/transaction

Path Parameters

Name
Type
Description

merchant_id*

string

Merchant ID

Query Parameters

Name
Type
Description

page

string

Page number

date[from]

string

Unix epoch

date[to]

string

Unix epoch

method

string

Credit Card, ACH

amount[from]

string

From Amount

amount[to]

string

To Amount

status[n]

string

The array of statuses. Accepted values are succeeded, failed, refunded, partialRefund, pending, canceled

n=0, 1, 2... Example query string for multiple statuses

statuses[0]=partialRefund&statuses[1]=refunded&statuses[2]=pending

batch_id

string

Batch ID generated when transaction is settled

subscription_id

string

Subscription ID

payment_link_id

string

Payment Link ID

only_disputes

boolean

Indicates to filter only disputes

ids

string

Transaction IDs, Payment IDs, Internal Transaction IDs or Reference Number. Multiple IDs can be included, separated by commas Note: Internal Transaction ID is the ID provided in the auth or sale transaction API request

Field Name
Type
Description
Requried?

data

array

List of transactions

Required

data[i].id

string

PayEngine system ID

Required

data[i].transaction_id

string

Unique transaction ID

Required

data[i].batch_id

string

Batch ID associated with this transaction.

Optional

data[i].merchant_id

string

Merchant ID associated with this transaction.

Required

data[i].gateway

string

Name of the gateway through which the transaction is processed

Optional

data[i].gateway_id

string

ID of the gateway through which the transaction is processed

Optional

data[i].is_offline

boolean

Indicates whether the transaction is offline type.

Required

data[i].currency

string

Currency of the transaction

Required

data[i].internal_transaction_id

string

Internal transaction ID provided for the transaction

Optional

data[i].amount

string

Transaction dollar value

Required

data[i].user_consent

boolean

True | False True if the customer gave consent to use the payment method for future payments

Optional

data[i].data.last_4

string

Last 4 digits of credit card or bank account

Required

data[i].data.bank_account_id

string

PayEngine bank account ID associated with this transaction if `payment_method` is ACH

Optional

data[i].data.card_type

string

Credit card type used for the transaction if `payment_method` is Credit Card

Optional

data[i].data.card_id

string

PayEngine card id associated with this transaction if `payment_method` is Credit Card

Optional

data[i].host_report

Object

Refer to Credit Card Sale (SaleResponse) or ACH Sale (AchResponse) object definitions

Required

data[i].payment_method

string

Transaction payment method. Possible values `Credit Card` | `ACH` | `Offline - <method>`

Required

data[i].type

string

Transaction type Possible values `payment` | `refund`

Required

data[i].status

string

PayEngine transaction status Possible values succeeded | failed | pending | cancelled | pending_3dsauth

Required

data[i].created_at

string

Timestamp when the transaction was created

Required

data[i].settled

boolean

Indicates whether this transaction has been settled or not

Required

meta.total

integer

Total transactions in this response

Required

meta.current_page

integer

Current page

Required

meta.total_pages

integer

Total pages available

Required

Last updated