Skip to main content
GET
/
api
/
adm
/
transactions
/
{id}
Get Transaction Details
curl --request GET \
  --url https://localhost:44371/api/adm/transactions/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "code": 200,
  "errorMessage": null
}

Description

Fetches comprehensive transaction information including customer data, payment method details, gateway responses, and related transactions (refunds, voids). Used when viewing transaction details in admin interfaces or investigating transaction issues.

Input

  • Path Parameter: id (guid, required) — Unique identifier of the transaction to retrieve.
  • Query Parameter: companyProjectId (guid, required) — Company project ID for security validation.

Output

Returns a TransactionDetailsResponse containing complete transaction information.

Example Request

GET /api/admin/transactions/a1b2c3d4-e5f6-7890-abcd-ef1234567890?companyProjectId=3fa85f64-5717-4562-b3fc-2c963f66afa6
Authorization: Bearer {admin-token}

Example Response

{
  "success": true,
  "code": 200,
  "errorMessage": null,
  "transactionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "amount": 99.99,
  "currency": "USD",
  "status": "Captured",
  "transactionType": "Sale",
  "customerEmail": "[email protected]",
  "billingAddress": {...},
  "paymentMethod": {
    "last4": "4242",
    "cardType": "Visa",
    "expirationDate": "12/2026"
  },
  "gatewayResponse": {
    "responseCode": "1",
    "responseMessage": "Approved",
    "authCode": "ABC123"
  },
  "relatedTransactions": [],
  "transactionDate": "2025-10-15T14:30:00Z"
}

Errors

  • 404 Not Found — No transaction exists with the specified ID.
  • 403 Forbidden — Transaction does not belong to specified project.

Notes

  • Response includes sensitive payment data; access should be restricted.
  • Related transactions (refunds, captures) are included in response.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string<guid>
required

The unique identifier of the transaction to retrieve.

Query Parameters

companyProjectId
string<guid>

The company project ID for security validation.

Response

Always returned. Check the success property in the response body to determine if the operation succeeded.

Standard response structure containing operation status and error information.

success
boolean

True if the operation completed successfully; false if an error occurred.

Example:

true

code
enum<string>

Result code indicating the outcome of the operation.

Available options:
Unknown,
Success,
BadRequest,
Unauthorized,
NotFound,
Error
Example:

200

errorMessage
string | null

Human-readable error message when an error occurs.

Example:

null

transactionDetails
object[] | null