Query for transactions
GET/api/v3/transaction
Available query parameter values for filtering:
- transaction_id
- customer_id
- gateway_id
- currency_id
- creditcard_id
- ach_id
- tokenized_id
- token
- external_key
- gateway_status
- gateway_transid
- amount
- fee
- transaction_type
- transaction_method
- transaction_detail
- transaction_datetime
- transaction_status.state
- transaction_status.str
- applied_to.package_id (this will find transactions that are applied to invoices from a specific package)
- applied_to.package_external_key (this will find transactions that are applied to invoices from a specific package)
- applied_to.invoice_id (this will find transactions that are applied to a particular invoice)
Request
Query Parameters
transaction_type:EQUALS:pay
transaction_id:ASC
2
8
Responses
- 200
- 400
- 401
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
Array [
Array [
]
]
response
object[]
Transaction ID #
Parent transaction ID #
Transaction batch ID #
Customer ID #
Brand ID #
Payment gateway ID #
Payment gateway type
Nickname for the payment gateway
Payment gateway status (1 for success, 0 for failure)
Payment gateway transaction identifier
Payment gateway method
A customer-facing error message indicating why the transaction declined/failed
A merchant-facing specific error code indicating why the transaction declined/failed
A merchant-facing detailed error message indicating why the transaction declined/failed
Additional gateway-specific data
A unique token for the transaction
Transaction external key value
Currency ID #
Currency ISO 4217 code
Currency symbol
Total transaction amount (refunds will be negative)
Transaction fee (if gateway provides this data)
Amount that is applied to invoices
Amount that is unapplied (not applied to any invoices)
Date of the transaction
Human-friendly transaction status
Status string
State code
Transaction type (one of: pay, ref, cre, spl)
Transaction type name
Transaction method
Transaction details
Date/time of the transaction was created
IP address that created the transaction
Date/time the transaction was voided
URL for viewing the transaction in the GUI
applied_to
object[]
Information about how the payment is applied
Line item ID #
Transaction ID #
Invoice ID #
Invoice schedule ID #
Amount applied to the invoice
Custom field #1
Custom field #2
Custom field #3
Custom field #4
Custom field #5
Transaction memo
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": [
{
"transaction_id": 0,
"parent_transaction_id": 0,
"transaction_batch_id": 0,
"customer_id": 0,
"brand_id": 0,
"gateway_id": 0,
"gateway_type": "string",
"gateway_nickname": "string",
"gateway_status": 0,
"gateway_transid": "string",
"gateway_method": "string",
"gateway_msg": "string",
"gateway_err_code": 0,
"gateway_err_detail": "string",
"gateway_opts": "string",
"token": "string",
"external_key": "string",
"currency_id": 0,
"currency_iso4217": "string",
"currency_symbol": "string",
"amount": 0,
"fee": 0,
"applied": 0,
"unapplied": 0,
"transaction_date": "2024-07-29",
"transaction_status_name": "string",
"transaction_status_str": "string",
"transaction_status_state": "string",
"transaction_type": "string",
"transaction_type_name": "string",
"transaction_method": "string",
"transaction_detail": "string",
"transaction_datetime": "string",
"transaction_ipaddr": "string",
"void_datetime": "string",
"url_self": "string",
"applied_to": [
{
"transaction_applied_id": 0,
"transaction_id": 0,
"invoice_id": 0,
"invoice_schedule_id": 0,
"applied": 0
}
],
"custom_1": "string",
"custom_2": "string",
"custom_3": "string",
"custom_4": "string",
"custom_5": "string",
"memo": "string"
}
]
}
{
"code": 200,
"status": "OK",
"message": "",
"response": [
{
"transaction_id": 65,
"gateway_id": 201,
"currency_id": 1,
"token": "6by30nr7dxlh",
"transaction_date": "2015-02-16",
"gateway_status": 1,
"gateway_transid": "*TEST CC* Mon, 16 Feb 2015 16:29:13 -0500",
"gateway_msg": "",
"amount": 10.95,
"fee": -0.33,
"transaction_type": "pay",
"transaction_method": "Visa",
"transaction_detail": "x1111",
"transaction_datetime": "2015-02-16 20:29:13",
"void_datetime": null,
"transaction_type_name": "Payment",
"currency_symbol": "$",
"currency_iso4217": "USD",
"customer_id": 1
},
{
"transaction_id": 66,
"gateway_id": 202,
"currency_id": 1,
"token": "flsxubzeao0t",
"transaction_date": "2015-02-20",
"gateway_status": 0,
"gateway_transid": null,
"gateway_msg": "-",
"amount": 25.95,
"fee": 0,
"transaction_type": "pay",
"transaction_method": "Visa",
"transaction_detail": "x1111",
"transaction_datetime": "2015-02-20 20:20:34",
"void_datetime": null,
"transaction_type_name": "Payment",
"currency_symbol": "$",
"currency_iso4217": "USD",
"customer_id": 1
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}