Get a transaction
curl --request GET \
--url https://{host}/bonus/v1/transactions/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/transactions/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/transactions/{id}")
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": "Successful",
"type": "Payment",
"operationId": "8d2f6b1e-4c7a-4f3b-b6d9-2a5e7c9f1d34",
"operations": [
{
"type": "Reserve",
"amount": 25.5,
"creationDate": "2026-11-14T10:15:00Z"
},
{
"type": "Capture",
"amount": 20,
"creationDate": "2026-11-14T10:21:00Z"
},
{
"type": "Cancel",
"amount": 5.5,
"creationDate": "2026-11-14T10:21:00Z"
},
{
"type": "Refund",
"amount": 10,
"creationDate": "2026-11-16T09:30:00Z"
}
],
"remainingReservedAmount": 0,
"remainingCapturedAmount": 10,
"metadata": {
"storeId": "475",
"receiptId": "475-0002-000381",
"memberId": "12396909",
"conversionRate": 1
}
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Get a transaction
Your backend calls this to see where a transaction stands before it captures, cancels or refunds it, or to check
afterwards that an operation went through. Besides the state, it returns what can still be captured or cancelled
in remainingReservedAmount, what can still be refunded in remainingCapturedAmount, and the operations so
far: the reservation, each capture and cancel and, for a payment, each refund.
GET
/
v1
/
transactions
/
{id}
Get a transaction
curl --request GET \
--url https://{host}/bonus/v1/transactions/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/transactions/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/transactions/{id}")
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": "Successful",
"type": "Payment",
"operationId": "8d2f6b1e-4c7a-4f3b-b6d9-2a5e7c9f1d34",
"operations": [
{
"type": "Reserve",
"amount": 25.5,
"creationDate": "2026-11-14T10:15:00Z"
},
{
"type": "Capture",
"amount": 20,
"creationDate": "2026-11-14T10:21:00Z"
},
{
"type": "Cancel",
"amount": 5.5,
"creationDate": "2026-11-14T10:21:00Z"
},
{
"type": "Refund",
"amount": 10,
"creationDate": "2026-11-16T09:30:00Z"
}
],
"remainingReservedAmount": 0,
"remainingCapturedAmount": 10,
"metadata": {
"storeId": "475",
"receiptId": "475-0002-000381",
"memberId": "12396909",
"conversionRate": 1
}
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Response
The transaction with its operations.
A transaction with what happened to it so far.
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"
Last modified on August 10, 2026