Biklo for developersTESTsandbox-api.biklo.comchange

Read your delivery bands

GET/v1/company/shipping-absorption

scope company.read

Per destination country AND per parcel size: above a threshold you pay the courier, below it the buyer pays at checkout. Bands compare the SELLER-GROUP subtotal — shipping is one charge per seller per order — not a single product's price. Each destination carries TWO independent sets, one per parcel_tier, because the courier prices them very differently: a small RO→HU parcel costs about 26 RON and a large one about 539. The response includes band_rules, which is worth reading before you write.

Response#

FieldTypeDescription
setsarrayEvery band set you have. One per destination PER PARCEL TIER, so the same country normally appears twice — absorbing delivery on an accessory and on a bike are different promises.
sets[].country_codestring|nullThe destination, or null for the scope's DEFAULT set, used wherever no country-specific set exists.
sets[].scopestringSame country as you is local, anywhere else international.

Accepts local · international

sets[].parcel_tierstringWhich parcel size this set governs. A product's tier is on GET /v1/products/{id} as shipping.parcel_tier.

Accepts small · large

sets[].currencystring|nullWhich currency the band amounts are in.
sets[].bandsarrayThe ladder, in order.
sets[].bands[].min_amountintegerWhere the band starts, INCLUSIVE, in minor units.
sets[].bands[].max_amountinteger|nullWhere it ends, EXCLUSIVE. null on the last band means no upper limit.
sets[].bands[].absorbsbooleantrue means you pay delivery for orders in this band; false means the buyer pays at checkout.
parcel_tiersobjectWhat each tier covers, in words, so you do not have to guess which one a product falls in.
parcel_tiers.smallstringWhat the small tier means.
parcel_tiers.largestringWhat the large tier means.
notestringHow bands are compared — against the seller-group subtotal, not a single product.
band_rulesobjectThe rules a set must satisfy, returned with the data so you can validate before writing rather than by being rejected.
band_rules.bands_are_half_openstringEach band covers [min, max) — the maximum is exclusive.
band_rules.must_be_contiguousstringTHE RULE THAT CATCHES EVERYONE: a band's max_amount must EQUAL the next band's min_amount. Writing 49999 then 50000 leaves a one-cent hole and the whole set is refused.
band_rules.first_band_starts_at_zerobooleanThe first band must start at 0.
band_rules.last_band_is_open_endedstringThe last band must have max_amount: null.
band_rules.exampleobjectA valid set, ready to copy.
band_rules.example.country_codestringExample destination.
band_rules.example.parcel_tierstringExample tier.
band_rules.example.currencystringExample currency.
band_rules.example.bandsarrayTwo contiguous bands: free delivery over 500,00.
band_rules.example.bands[].min_amountintegerInclusive lower bound.
band_rules.example.bands[].max_amountinteger|nullExclusive upper bound, null on the last.
band_rules.example.bands[].absorbsbooleanWho pays in that band.
selling_countriesarrayWhere you may sell — the only destinations a set may name.
selling_countries[].country_idintegerOur internal id.
selling_countries[].codestringISO-2, and what country_code takes.
selling_countries[].namestringThe country name.
selling_countries[].currencystringThe currency orders from there settle in.

Example

{
    "sets": [
        {
            "country_code": "HU",
            "scope": "international",
            "parcel_tier": "small",
            "currency": "EUR",
            "bands": [
                {
                    "min_amount": 0,
                    "max_amount": 50000,
                    "absorbs": false
                },
                {
                    "min_amount": 50000,
                    "max_amount": null,
                    "absorbs": true
                }
            ]
        },
        {
            "country_code": "HU",
            "scope": "international",
            "parcel_tier": "large",
            "currency": "EUR",
            "bands": [
                {
                    "min_amount": 0,
                    "max_amount": null,
                    "absorbs": false
                }
            ]
        }
    ],
    "parcel_tiers": {
        "small": "Accessories and small parcels — billed on the small-courier tariff.",
        "large": "Bikes, large and extra-large items — the expensive tariff."
    },
    "note": "Bands compare the seller-group subtotal, in minor units. A band with absorbs=false means the buyer pays delivery at checkout. Each destination has a SEPARATE set per parcel_tier — writing one does not touch the other.",
    "band_rules": {
        "bands_are_half_open": "Each band covers [min_amount, max_amount) — max is exclusive.",
        "must_be_contiguous": "A band's max_amount must equal the next band's min_amount. Not max-1.",
        "first_band_starts_at_zero": true,
        "last_band_is_open_ended": "The last band must have max_amount: null.",
        "example": {
            "country_code": "RO",
            "parcel_tier": "small",
            "currency": "RON",
            "bands": [
                {
                    "min_amount": 0,
                    "max_amount": 50000,
                    "absorbs": false
                },
                {
                    "min_amount": 50000,
                    "max_amount": null,
                    "absorbs": true
                }
            ]
        }
    },
    "selling_countries": [
        {
            "country_id": 70,
            "code": "ES",
            "name": "España",
            "currency": "EUR"
        }
    ]
}

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/company/shipping-absorption" \
  -H "Authorization: Bearer bk_test_YOUR_KEY"
<?php

$ch = curl_init('https://sandbox-api.biklo.com/v1/company/shipping-absorption');

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/company/shipping-absorption");

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

response = requests.get(
    "https://sandbox-api.biklo.com/v1/company/shipping-absorption",
    headers={"Authorization": "Bearer bk_test_YOUR_KEY"},
)

data = response.json()
const response = await fetch("https://sandbox-api.biklo.com/v1/company/shipping-absorption", {
  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/company/shipping-absorption"))
    .header("Authorization", "Bearer bk_test_YOUR_KEY")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

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