> This page is for BaaS.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://en.docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://en.docs.api.corpx.com/_mcp/server.

# Get the timeline of one transaction by id

GET https://tenant.api.corpx.com/v1/transactions/{transactionId}/timeline

Returns the curated event timeline of a transaction. Unlike
`/v1/accounts/{accountId}/transactions/timeline`, which looks the
transaction up by `endToEndId`/`identifier`, this route takes the id in
the path and accepts several aliases: our internal `paymentId`, the
partner id echoed on creation, the BACEN end-to-end id, or a QR `txid`.

Only the public event vocabulary is returned. `level=full` is not
part of this contract and is ignored here.

Reference: https://en.docs.api.corpx.com/baas/referencia/accounts/get-timeline-by-transaction-id

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `transactionId` (string, required) — Internal `paymentId`, partner id, `endToEndId` or QR `txid`.

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.

## Response

### 200

Timeline found.

- `transactionId` (string, required) — Canonical transaction id, resolved from whichever alias was sent in the path.
- `level` (enum, required) — Always `public` on this route. A fuller level is not part of this contract.
  - Allowed values: `public`
- `events` (list of PublicTimelineEvent, required)

## Errors

### 400 Bad Request Error

Invalid request sent by client.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 401 Unauthorized Error

Authentication required.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 403 Forbidden Error

The caller has no role on the tenant that owns the transaction.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 404 Not Found Error

Requested resource was not found.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 500 Internal Server Error

Unexpected server error.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### PublicTimelineEvent

A curated timeline event, as returned by `GET /v1/transactions/{transactionId}/timeline`. The catalogue of `type` values is documented in the Timeline guide.

- `eventId` (string, required)
- `transactionId` (string, required)
- `type` (string, required) — Event name, `<domain>.<verb>` (e.g. `pix_out.requested`).
- `occurredAt` (datetime, required)
- `workflowId` (string, optional)
- `runId` (string, optional)
- `source` (string, optional) — Where the event came from (e.g. `workflow`, `partner`).
- `audience` (enum, optional)
  - Allowed values: `public`
- `severity` (enum, optional)
  - Allowed values: `info`, `warn`, `error`
- `actor` (string, optional)
- `message` (string, optional)
- `recordedAt` (datetime, optional)
- `payload` (map from string to any, optional) — Event-specific fields; see the Timeline guide per event type.

### ErrorResponsePartner

Raw error from the settlement bank, when the failure came from it. Diagnostic only.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional) — Field the partner pointed at, when any.

## Examples

**Response**

```json
{
  "transactionId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
  "level": "public",
  "events": [
    {
      "eventId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
      "transactionId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
      "type": "pix_out.confirmed",
      "occurredAt": "2026-02-20T08:33:39Z",
      "workflowId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
      "runId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
      "source": "MANUAL",
      "audience": "public",
      "severity": "info",
      "actor": "maria.silva@example.com",
      "message": "Pagamento pedido #12345",
      "recordedAt": "2026-02-20T08:33:39Z",
      "payload": {}
    }
  ]
}
```

**SDK Code**

```python Accounts_getTimelineByTransactionId_example
import requests

url = "https://tenant.api.corpx.com/v1/transactions/transactionId/timeline"

headers = {
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Accounts_getTimelineByTransactionId_example
const url = 'https://tenant.api.corpx.com/v1/transactions/transactionId/timeline';
const options = {
  method: 'GET',
  headers: {'X-Tenant-Id': 'X-Tenant-Id', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Accounts_getTimelineByTransactionId_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://tenant.api.corpx.com/v1/transactions/transactionId/timeline"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Accounts_getTimelineByTransactionId_example
require 'uri'
require 'net/http'

url = URI("https://tenant.api.corpx.com/v1/transactions/transactionId/timeline")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Accounts_getTimelineByTransactionId_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://tenant.api.corpx.com/v1/transactions/transactionId/timeline")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Accounts_getTimelineByTransactionId_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://tenant.api.corpx.com/v1/transactions/transactionId/timeline', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp Accounts_getTimelineByTransactionId_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/transactions/transactionId/timeline");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Accounts_getTimelineByTransactionId_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/transactions/transactionId/timeline")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```