Biklo for developersTESTsandbox-api.biklo.comchange

Make an address the default

POST/v1/addresses/{id}/default

scope company.write

Makes this the address orders ship from, and clears the flag on every other one. This is the setting that decides where a courier collects, and which city a product with no city_id is published in — change it and your next product sync moves the catalogue with it.

Response#

Returns the same object as Create an address (POST /v1/addresses), described in full there.

Example

{
    "id": 4813,
    "street": "Strada Depozitului 9",
    "postal_code": "600001",
    "city": {
        "id": 385,
        "name": "Bacau"
    },
    "county": {
        "id": 2,
        "name": "Bacau"
    },
    "country_code": "RO",
    "company_name": "Bike Shop SRL",
    "company_vat_code": "RO12345678",
    "company_reg_no": "J16/123/2020",
    "is_default": true,
    "created_at": "2026-09-14T09:40:10+00:00",
    "updated_at": "2026-09-14T11:20:55+00:00"
}

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

curl -X POST "https://sandbox-api.biklo.com/v1/addresses/711/default" \
  -H "Authorization: Bearer bk_test_YOUR_KEY"
<?php

$ch = curl_init('https://sandbox-api.biklo.com/v1/addresses/711/default');

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST  => 'POST',
    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("POST"),
    "https://sandbox-api.biklo.com/v1/addresses/711/default");

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

response = requests.post(
    "https://sandbox-api.biklo.com/v1/addresses/711/default",
    headers={"Authorization": "Bearer bk_test_YOUR_KEY"},
)

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

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