Skip to main content
GET
/
api
/
pay
/
{projectId}
/
transactions
Get Transactions
curl --request GET \
  --url https://localhost:44371/api/pay/{projectId}/transactions \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "code": 200,
  "errorMessage": null,
  "entries": []
}

Description

Queries transaction history for the authenticated project. Returns transaction records including payment details, status, amounts, timestamps, and processor responses. Commonly used for transaction status checks, reconciliation, customer service inquiries, and financial reporting.

Input

  • Path Parameter: projectId (guid, required) — Project identifier matching authenticated API key.
  • Query Parameter: id (guid, optional) — Optional transaction ID to retrieve specific transaction.

Output

Returns a TransactionQueryResponse containing matching transactions or an empty list if none found.

Example Request

GET /api/payment/projects/{projectId}/transactions?id={transactionId}
Authorization: Bearer {project-api-key}

Example Response

{
  "success": true,
  "entries": [
    {
      "id": "7b8c9d0e-1234-5678-9abc-def012345678",
      "amount": 99.99,
      "status": "Approved",
      "maskedCardNumber": "************1111"
    }
  ]
}

Errors

  • 400 Bad Request — Invalid project or transaction ID format.
  • 401 Unauthorized — Invalid API key.
  • 404 Not Found — Project not found.

Notes

  • Card numbers are always masked for PCI compliance.
  • CVV values are never stored or returned.
  • Results are scoped to the authenticated project only.

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string<guid>
required

The unique identifier of the project for which to retrieve transactions (must match authenticated API key).

Query Parameters

id
string<guid> | null

Optional transaction identifier to retrieve a specific transaction; omit to retrieve all transactions for the project.

Response

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

Standard response structure containing operation status and error information. Standard query response containing a collection of matching entities. Wraps the transaction query results returned to payment clients. Includes standard paging metadata inherited from BaseQueryResponse{TModel}.

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

entries
object[] | null

Collection of entities matching the query criteria.

Example:
[]