APG PayAPG Paydocs

Transactions

Get transaction

GET/transactions/{transactionId}
Request
GEThttps://api.tst.au.apgpay.dev/transactions/{transactionId}
curl -X GET https://api.tst.au.apgpay.dev/transactions/{transactionId} \
  -H "Authorization: Bearer $API_KEY"

Return one transaction.

Permissions

Required permission
transactions:query

Requires the `query` action on `transactions` for the supplied runtime context

Path parameters

transactionIdstring
required

Responses

The response is a tagged shape: type is always "TranViewAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "TranViewAttributes"
transactionIdTranIdrequired

Identifier of a transaction.

Example tran_9f2Kd8QpLzXw

merchantIdMchtIdrequired

Identifier of a merchant.

Example mcht_9f2Kd8QpLzXw

Who paid, carried here so a report does not need a second call.

orderIdOrdrIdrequired

The order this payment settles. Every transaction has one, the platform creates one where the caller did not.

Example ordr_9f2Kd8QpLzXw

referenceOrderIdstring

Your own reference for that order.

Example your-own-reference

paymentTypeTranPaymentTyperequired

How the payment was structured, in full, or over instalments.

PayInFullPayPlanUnknown
statusTranStatusrequired
AcceptedCapturedAuthorisedPendingAwaitingAuthenticationPartiallyRefundedRefundedDisputedFailedCancelled
+1 more

Unknown

The amounts on a transaction. All are in the single currency given here.

The refunds issued against this transaction, in full.

The disputes raised against this transaction, in full.

payoutIdPayoutId

The payout this payment settled in. Absent unless the principal may read merchant financials.

Example payout_9f2Kd8QpLzXw

settlementDatestring (date)

The date that payout settles.

Example 2026-08-19

availableOnstring (date)

The date the funds became available to pay out.

Example 2026-08-19

referenceTransactionIdstring

The caller's own reference for this transaction.

Example your-own-reference

referenceIssuerTransactionIdstring

The issuer transaction this payment was made with, where the payer used a card the platform issued.

Example your-own-reference

createdAtstring (date-time)required

Example 2026-08-19T04:21:07Z

updatedAtstring (date-time)required

Example 2026-08-19T04:21:07Z

Example
{
  "type": "TranViewAttributes",
  "transactionId": "tran_9f2Kd8QpLzXw",
  "merchantId": "mcht_9f2Kd8QpLzXw",
  "customer": {
    "type": "RfndCustomerAttributes",
    "customerId": "cust_9f2Kd8QpLzXw",
    "name": "Ada Lovelace",
    "emailAddress": "ada@example.com",
    "phoneNumber": "+61400000000"
  },
  "orderId": "ordr_9f2Kd8QpLzXw",
  "referenceOrderId": "your-own-reference",
  "paymentType": "PayInFull",
  "status": "Accepted",
  "amounts": {
    "type": "TranAmountsAttributes",
    "currency": "AUD",
    "amount": 1250,
    "surcharge": 1250,
    "refunded": 1250,
    "fee": 1250
  },
  "refunds": [
    {
      "type": "RfndViewAttributes",
      "refundId": "rfnd_9f2Kd8QpLzXw",
      "subject": {
        "type": "RfndSubjectTransaction",
        "transactionId": "tran_9f2Kd8QpLzXw"
      },
      "merchantId": "mcht_9f2Kd8QpLzXw",
      "customer": {
        "type": "RfndCustomerAttributes",
        "customerId": "cust_9f2Kd8QpLzXw",
        "name": "Ada Lovelace",
        "emailAddress": "ada@example.com",
        "phoneNumber": "+61400000000"
      },
      "status": "Pending",
      "amounts": {
        "type": "RfndAmountsAttributes",
        "currency": "AUD",
        "amount": 1250,
        "transactionAmount": 1250
      },
      "orderId": "ordr_9f2Kd8QpLzXw",
      "referenceOrderId": "your-own-reference",
      "orderMetadata": {
        "yourKey": {}
      },
      "payoutId": "payout_9f2Kd8QpLzXw",
      "settlementDate": "2026-08-19",
      "attempts": 1250,
      "lastError": "string",
      "createdAt": "2026-08-19T04:21:07Z",
      "refundedAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "disputes": [
    {
      "type": "DisputeViewAttributes",
      "disputeId": "dispute_9f2Kd8QpLzXw",
      "subject": {
        "type": "RfndSubjectTransaction",
        "transactionId": "tran_9f2Kd8QpLzXw"
      },
      "merchantId": "mcht_9f2Kd8QpLzXw",
      "customer": {
        "type": "RfndCustomerAttributes",
        "customerId": "cust_9f2Kd8QpLzXw",
        "name": "Ada Lovelace",
        "emailAddress": "ada@example.com",
        "phoneNumber": "+61400000000"
      },
      "status": "Pending",
      "gatewayState": "string",
      "amounts": {
        "type": "DisputeAmountsAttributes",
        "currency": "AUD",
        "amount": 1250,
        "transactionAmount": 1250
      },
      "feeAmount": {
        "type": "IsoCurrencyAmount",
        "minorCurrencyUnits": 1250,
        "currency": "AUD"
      },
      "reason": "Requested by the customer.",
      "description": "string",
      "orderId": "ordr_9f2Kd8QpLzXw",
      "referenceOrderId": "your-own-reference",
      "orderMetadata": {
        "yourKey": {}
      },
      "evidenceDueBy": "2026-08-19",
      "createdAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "payoutId": "payout_9f2Kd8QpLzXw",
  "settlementDate": "2026-08-19",
  "availableOn": "2026-08-19",
  "referenceTransactionId": "your-own-reference",
  "referenceIssuerTransactionId": "your-own-reference",
  "createdAt": "2026-08-19T04:21:07Z",
  "updatedAt": "2026-08-19T04:21:07Z"
}

Error responses