GET
/api/public/v1/transactions/{transactionId}

Get a transaction

Retrieve a single transaction by ID.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.

transactions:read

Path Parameters

NameTypeRequiredDescription
transactionIdstringRequiredTransaction ID.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/transactions/{transactionId}" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Transaction retrieved successfully!",
  "content": {
    "transaction": {
      "id": "txn_1",
      "amount": 12500,
      "type": "INCOME"
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Finances → Ledger
/finances/ledger
  1. Open a transaction from the ledger.