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

What to capture of a waiting transaction.

operationId
string
required

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

Required string length: 1 - 128
Example:

"b74e0c1d-9f3a-4a52-8c6b-1e2d3f4a5b60"

amount
number<double> | null

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

Example:

20

cancelRemainingAmount
boolean | null
default:false

true releases what is still reserved after this capture, which makes the transaction final. Default false.

Example:

true

metadata
object | null

Key-value pairs to add to the transaction; with the stored ones at most 1024 characters as JSON. Only new keys are accepted.

Example:

Response

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

Where the transaction stands after the capture.

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:

"Successful"

remainingReservedAmount
number<double>
required

The amount that is still reserved after the capture. Zero when the transaction is final.

Example:

0

Last modified on August 10, 2026