Biklo for developersTESTsandbox-api.biklo.comchange

Fees you owe, per order

GET/v1/fee-liabilities

scope wallet.read

A liability exists from the moment an order settles and is invoiced later in a batch, so this is where most of a current month lives — before any document exists. owed_amount and charged_amount differ whenever a liability settled PARTIALLY; reading one and assuming the other is how books stop balancing.

Query parameters#

NameExample
limit50Max 100
cursor—next_cursor
statussettledpending, settled or cancelled
order_id721Only liabilities for one order

Response#

FieldTypeDescription
countintegerHow many liabilities in this page.
next_cursorstring|nullPass back as ?cursor=; null on the last page.
dataarrayWhat you owe us PER ORDER, including what has not been invoiced yet. This is the endpoint to reconcile against: an invoice is a batch of these, and a liability exists from the moment an order settles, before any document is issued.
data[].idintegerThe liability id.
data[].order_idinteger|nullWhich order it arose from.
data[].currencystringIts currency.
data[].owed_amountintegerWhat the order owed us in total — platform plus shipping fees.
data[].charged_amountintegerWhat we actually took. This DIFFERS from owed_amount whenever a liability settled only partly, and reading one while assuming the other is how books stop balancing.
data[].written_off_amountintegerThe difference we gave up rather than pursued.
data[].platform_fee_amountintegerThe commission part of what was owed.
data[].shipping_fee_amountintegerThe courier part of what was owed.
data[].statusstringpending means not yet collected. settled means we took what we could — NOT necessarily all of it, so check written_off_amount before assuming the order paid in full. cancelled follows a refund.

Accepts pending · settled · cancelled

data[].settled_atstring|nullISO-8601 UTC, or null while pending.
data[].invoiceobject|nullThe invoice this landed on, once one was issued. null means it is owed but not yet invoiced — which is exactly what GET /v1/fee-liabilities is for.
data[].invoice.seriesstringThe invoice series.
data[].invoice.numberstringThe invoice number.
data[].invoice.pdf_urlstringPath to that invoice's PDF.

Example

{
    "count": 2,
    "next_cursor": null,
    "data": [
        {
            "id": 17,
            "order_id": 721,
            "currency": "RON",
            "owed_amount": 500,
            "charged_amount": 0,
            "written_off_amount": 0,
            "platform_fee_amount": 500,
            "shipping_fee_amount": 0,
            "status": "pending",
            "settled_at": null,
            "invoice": null
        },
        {
            "id": 15,
            "order_id": 718,
            "currency": "RON",
            "owed_amount": 3050,
            "charged_amount": 2700,
            "written_off_amount": 350,
            "platform_fee_amount": 1800,
            "shipping_fee_amount": 1250,
            "status": "settled",
            "settled_at": "2026-09-12T08:09:40Z",
            "invoice": {
                "series": "RO_BK_COM",
                "number": "0524",
                "pdf_url": "/v1/invoices/0524/pdf?series=RO_BK_COM"
            }
        }
    ]
}

Failures use the shared error envelope — a machine-readable code and a request_id to quote to support. Error handling.

curl -X GET "https://sandbox-api.biklo.com/v1/fee-liabilities?limit=50" \
  -H "Authorization: Bearer bk_test_YOUR_KEY"
<?php

$ch = curl_init('https://sandbox-api.biklo.com/v1/fee-liabilities?limit=50');

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST  => 'GET',
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer bk_test_YOUR_KEY',
    ],
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", "bk_test_YOUR_KEY");

var request = new HttpRequestMessage(
    new HttpMethod("GET"),
    "https://sandbox-api.biklo.com/v1/fee-liabilities?limit=50");

var response = await client.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();
import requests

response = requests.get(
    "https://sandbox-api.biklo.com/v1/fee-liabilities?limit=50",
    headers={"Authorization": "Bearer bk_test_YOUR_KEY"},
)

data = response.json()
const response = await fetch("https://sandbox-api.biklo.com/v1/fee-liabilities?limit=50", {
  method: "GET",
  headers: {
    Authorization: "Bearer bk_test_YOUR_KEY"
  }
});

const data = await response.json();
import java.net.http.*;
import java.net.URI;

var client = HttpClient.newHttpClient();

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://sandbox-api.biklo.com/v1/fee-liabilities?limit=50"))
    .header("Authorization", "Bearer bk_test_YOUR_KEY")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());