---
title: "Transaction details by `sessionId`"
method: GET
path: "/api/v1/transaction/by/sessionId/{sessionId}"
tags: ["Additional API functionality"]
---

# Transaction details by \`sessionId\`

`GET /api/v1/transaction/by/sessionId/{sessionId}`

## Request

- Base URL: `https://sandbox.przelewy24.pl`
- URL: `https://sandbox.przelewy24.pl/api/v1/transaction/by/sessionId/{sessionId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/przelewy24/apis/przelewy24-rest-api-documentation/docs/api/v1/transaction/by/sessionId/:sessionId/get.ts> (a function with typed inputs; its response is checked against the schema)

The method returns transaction information based on the `sessionId` field.

## Path parameters

- `sessionId` string, required

## Response `200`

OK

- TransactionBySessionIdSuccessResponse
  - `data` TransactionBySessionIdResponse
    - `statement` string: Transfer title.
    - `orderId` integer: Transaction ID.
    - `sessionId` string: Transaction ID assigned by the merchant.
    - `status` integer: Transaction status: `0` - no payment; `1` - advance payment; `2` - payment made; `3` - payment returned.
    - `amount` integer: Transaction amount.
    - `currency` string: Transaction currency.
    - `date` string: Transaction registration date.
    - `dateOfTransaction` string: Payment date.
    - `clientEmail` string: Customer's email.
    - `accountMD5` string: Customer's hashed bank account number.
    - `paymentMethod` integer: Payment method ID.
    - `description` string: Transaction description.
    - `clientName` string: Customer's first name and surname.
    - `clientAddress` string: Customer's address.
    - `clientCity` string: Customer's city.
    - `clientPostcode` string: Customer's postal code.
    - `batchId` integer: Batch number in which the transaction was settled.
    - `fee` string: Commission.
  - `responseCode` number

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found - the transaction does not exist.

## Changes

- **2026-09-03** `5861a691aa36`: 4 breaking, 2 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `404`
  - the `data` response's property type changed from no type to `object` for status `200`
  - …2 more

[Operation history](https://skmtc.dev/przelewy24/apis/przelewy24-rest-api-documentation/changes/api/v1/transaction/by/sessionId/:sessionId/get.md)

---

[API](https://skmtc.dev/przelewy24/apis/przelewy24-rest-api-documentation.md) - [All operations](https://skmtc.dev/przelewy24/apis/przelewy24-rest-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/przelewy24/apis/przelewy24-rest-api-documentation/revisions/5861a691aa36?raw)
