latestOpenAPI 3.0.3MIT2026-08-10121945.1 KB

a52c87b9a2b9

Payments

Fetch a payment by its transaction ID

This will fetch the given payment associated with this transaction id. Single payment transaction IDs begin with tbx-

get/payments/{txnId}?type=txn_id

Path parameters

txnIdstring required
Example:tbx-55fff4107740a1f40d844ff89607557f45bfafb3

The payment reference to fetch.

Response

Payment fetched successfully.

transaction_idstring
payment_sequencestring
created_atstring date-time
couponsobject[]
gift_cardsobject[]
recurring_payment_referencestring nullable
customobject

Example response

{
  "transaction_id": "tbx-26929122a56954-0e15be",
  "status": {
    "id": 1,
    "description": "Complete"
  },
  "payment_sequence": "oneoff",
  "created_at": "2022-10-19T15:49:15.000000Z",
  "price": {
    "amount": 5.35,
    "currency": "USD"
  },
  "fees": {
    "tax": {
      "currency": "USD"
    },
    "gateway": {
      "amount": 0.45,
      "currency": "USD"
    }
  },
  "customer": {
    "first_name": "Test",
    "last_name": "Test",
    "email": "test@test.com",
    "ip": "1.2.3.4",
    "country": "TS"
  }
}