Skip to main content
POST
Cancel 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.

Body

application/json

What to release.

What to release of a waiting transaction.

operationId
string
required

Your unique id for this cancel, at most 128 characters. Send the same id only when you repeat the same request.

Required string length: 1 - 128
Example:

"c1a9e7d3-2b48-4f60-9d15-7a6b5c4d3e21"

amount
number<double> | null

The amount to release. Positive, with at most two decimals, and not more than is still reserved. Omitted, everything that is still reserved is released.

Example:

5.5

Response

The amount was released, or an earlier call with the same operationId had released it already.

Where the transaction stands after the cancel.

state
enum<string>
required

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:

"Waiting"

remainingReservedAmount
number<double>
required

The amount that is still reserved after the cancel. Zero when the transaction is cancelled or final.

Example:

20

Last modified on August 10, 2026