---
title: "Get a transaction by id"
method: GET
path: "/transactions/{id}"
tags: ["Admin Sales: Transactions"]
---

# Get a transaction by id

`GET /transactions/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/transactions/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/transactions/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a single payment transaction — every column, the raw gateway `data` blob, and a slim summary of the linked order. Requires `sales.transactions.view` permission.

## Path parameters

- `id` integer, required

## Response `200`

The transaction.

## Other responses

- `401`: Missing or invalid admin token.
- `403`: Admin role lacks sales.transactions.view.
- `404`: Unknown transaction id.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
