Skip to main content
GET
Get a transaction

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path Parameters

id
integer<int64>
required

The id of the transaction, as returned when it was created.

Response

The transaction with its operations.

A transaction with what happened to it so far.

transactionId
integer<int64>

The id of the transaction.

Example:

9154377

amount
number<double>

The amount the transaction was created with: positive for bonus added to the account, negative for bonus taken off it, as in a payment.

Example:

-25.5

state
enum<string>

Where a transaction stands.

  • Waiting: an amount is reserved and waits to be captured or cancelled.
  • Successful: the transaction is final. Its amount was captured, in full or in part with the rest cancelled.
  • Cancelled: the whole reservation was cancelled and nothing was captured.

This list is not final. Lobyco may add a value at any time, and a consumer must not fail on a value it does not know.

Available options:
Waiting,
Successful,
Cancelled
Example:

"Successful"

type
string | null

The transaction's type: Payment, Refund, Expiry, Balance, or the name of a bonus or adjustment type configured for your environment.

Example:

"Payment"

operationId
string | null

The operationId the transaction was created with.

Example:

"8d2f6b1e-4c7a-4f3b-b6d9-2a5e7c9f1d34"

operations
object[] | null

What happened to the transaction so far: the reservation, each capture and cancel and, for a payment, each refund.

remainingReservedAmount
number<double>

The amount that is still reserved and can be captured or cancelled. Zero for a transaction that is final or cancelled.

Example:

0

remainingCapturedAmount
number<double>

The amount that was captured and is not refunded yet. It can still be refunded.

Example:

10

metadata
object | null

The key-value pairs stored with the transaction: the ones sent when it was created or last updated, and the ones Lobyco added.

Example:
Last modified on August 10, 2026