Biklo for developersTESTsandbox-api.biklo.comchange

Countries you sell into

GET/v1/company/selling-countries

scope company.read

You can only add pickup points, absorption bands and listings for these. Changing the list is a commercial decision made in the dashboard.

Response#

FieldTypeDescription
countintegerHow many countries you sell into.
dataarrayWhere YOU may sell, which is a subset of GET /v1/countries. Shipping absorption and pickup points both refuse a country that is not on this list, so check here first.
data[].country_idintegerOur internal id.
data[].codestringISO-2, and what country_code takes on the company endpoints.
data[].namestringThe country name.
data[].currencystringThe currency an order from that country settles in. Selling into several means holding several balances at once.

Example

{
    "count": 1,
    "data": [
        {
            "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/selling-countries" \
  -H "Authorization: Bearer bk_test_YOUR_KEY"
<?php

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

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/selling-countries");

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

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

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

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