Get a specific transaction
GET/api/v3/transaction/:transaction_id
Getting a transaction (a payment, refund, credit, etc.) gives you the full transaction details.
A couple of notes about some specific attributes returned:
- applied_to - if the payment is applied to any invoices, a list of invoices and the amount of the payment applied will be listed here
- refunds - for payments, if any portion of the payment was refunded, a list of related refund
transaction_id
values will be here - payments - for refunds, the original payment
transaction_id
value will be here
Request
Responses
- 200
- 400
- 401
- 404
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
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": "",
"details": {},
"response": {
"transaction_id": 43,
"gateway_id": 201,
"currency_id": 1,
"external_key": null,
"token": "185g5984n91k",
"transaction_date": "2019-07-24",
"gateway_status": 1,
"gateway_transid": "1563978556",
"gateway_msg": "",
"gateway_err_code": 0,
"gateway_err_detail": null,
"gateway_opts": {
"time_stamp": "Wed, 24 Jul 2019 09:29:16 -0500",
"auth_code": "ABC123"
},
"gateway_method": "visa",
"amount": 75,
"fee": 0,
"transaction_type": "pay",
"transaction_method": "Visa",
"transaction_detail": "x1111",
"transaction_datetime": "2019-07-24 09:29:16",
"transaction_ipaddr": "10.80.1.1",
"void_datetime": null,
"transaction_status_name": "Success",
"transaction_status_str": "ok-successful",
"transaction_status_state": "o",
"transaction_type_name": "Payment",
"applied": 75,
"brand_id": 1,
"currency_symbol": "$",
"currency_iso4217": "USD",
"url_self": "https://dev1.chargeover.com/admin/r/transaction/view/43",
"customer_id": 48,
"unapplied": 0,
"applied_to": [
{
"invoice_id": 1027,
"applied": 75
}
],
"refunds": [
{
"transaction_id": 44
}
]
}
}
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
}
Object not found
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 404,
"status": "Error",
"message": "This object does not exist.",
"details": {},
"response": null
}