Find a transaction by operation id
curl --request GET \
--url https://{host}/bonus/v1/transactions \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/transactions"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/bonus/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/bonus/v1/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/bonus/v1/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/bonus/v1/transactions")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"transactionId": 9154377,
"amount": -25.5,
"state": "Waiting",
"type": "Payment",
"operationId": "8d2f6b1e-4c7a-4f3b-b6d9-2a5e7c9f1d34"
}
]{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Find a transaction by operation id
Your backend calls this to find out whether a create call went through, for example after a timeout: send the
operationId of the request and get the transaction it created, if there is one. Its transactionId is what
the capture, cancel and refund calls take.
The answer is a list, because the id is a filter: it holds the one transaction that was created with this
operationId, or nothing.
GET
/
v1
/
transactions
Find a transaction by operation id
curl --request GET \
--url https://{host}/bonus/v1/transactions \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/transactions"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/bonus/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/bonus/v1/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/bonus/v1/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/bonus/v1/transactions")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"transactionId": 9154377,
"amount": -25.5,
"state": "Waiting",
"type": "Payment",
"operationId": "8d2f6b1e-4c7a-4f3b-b6d9-2a5e7c9f1d34"
}
]{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Query Parameters
Response
The transaction with this operationId, as a list of one. The list is empty when no transaction has it.
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"
Last modified on August 10, 2026