---
title: "Fetch a payment by its transaction ID"
method: GET
path: "/payments/{txnId}?type=txn_id"
tags: ["Payments"]
---

# Fetch a payment by its transaction ID

`GET /payments/{txnId}?type=txn_id`

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

## Path parameters

- `txnId` string, required

## Response `200`

Payment fetched successfully.

- Payment, nullable
  - `transaction_id` string
  - `status` object
    - `id` integer
    - `description` string
  - `payment_sequence` string
  - `created_at` string, date-time
  - `price` object
    - `amount` number, float
    - `currency` string
  - `fees` object
    - `tax` object
      - `amount` number, float
      - `currency` string
    - `gateway` object
      - `amount` number, float
      - `currency` string
  - `customer` object
    - `first_name` string
    - `last_name` string
    - `email` string
    - `ip` string
    - `username` string, nullable
    - `marketing_consent` boolean
    - `country` string
    - `postal_code` string, nullable
  - `products` object[]
    - `id` string, nullable
    - `name` string
    - `quantity` integer
    - `base_price` object
      - `amount` number, float
      - `currency` string
    - `paid_price` object
      - `amount` number, float
      - `currency` string
    - `variables` string[]
    - `expires_at` string, date-time, nullable
    - `custom` object — Any custom data associated with the payment
    - `username` string, nullable
  - `coupons` object[]
  - `gift_cards` object[]
  - `recurring_payment_reference` string, nullable
  - `custom` object

## Other responses

- `404` — Transaction not found.

---

[API](https://skmtc.net/tebex/apis/tebex-checkout-api.md) · [All operations](https://skmtc.net/tebex/apis/tebex-checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tebex/tebex-checkout-api/revisions/a52c87b9a2b9/schema)
