Accepting an order already books its courier, so this returns that AWB (already_existed: true). It books one only for an order accepted before accept did so — and it is idempotent: never a second shipment for the same order.
The AWB number. Hand this to the courier and quote it in any dispute.
awb.tracking_url
string|null
Where the parcel can be followed.
already_existed
boolean
true means this order already had a waybill and you got the existing one back, not a second shipment. The call is idempotent on purpose — booking twice costs real money.
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/orders/711/awb");
request.Content = new StringContent(
@"[]",
System.Text.Encoding.UTF8,
"application/json");
var response = await client.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();