Fulfil an order via the on-demand driver pool
Dispatch the order to nearby on-demand drivers at the chosen tier (express /
on_the_way / scheduled). Creates the shipment at the tier fare and broadcasts an
offer to matching online drivers — first to accept picks it up. Requires a secret key.
Emits an order.fulfilled webhook.
curl --request POST \
--url https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tier": "scheduled"
}
'import requests
url = "https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand"
payload = { "tier": "scheduled" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tier: 'scheduled'})
};
fetch('https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tier' => 'scheduled'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand"
payload := strings.NewReader("{\n \"tier\": \"scheduled\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tier\": \"scheduled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tier\": \"scheduled\"\n}"
response = http.request(request)
puts response.read_body{
"order_id": "ord_7f3a91",
"shipment_id": "shp_a12b",
"tracking_number": "TLDP-20260607-0022",
"tracking_url": "https://tldp.tybritelabs.com/track/TLDP-20260607-0022",
"fulfilment": "on_demand",
"tier": "scheduled",
"fare": 80,
"offers": 3
}Authorizations
Body
On-demand delivery speed. express = dedicate a trip now (same-city only, priciest);
on_the_way = a driver already heading there carries it (cheapest); scheduled =
flexible window (parcel rides along a trip); driver_rate_card = a driver's own price.
Pricing is flat per corridor, not per-km.
express, on_the_way, scheduled, driver_rate_card Response
Dispatched — shipment created and offered to drivers.
On-demand delivery speed. express = dedicate a trip now (same-city only, priciest);
on_the_way = a driver already heading there carries it (cheapest); scheduled =
flexible window (parcel rides along a trip); driver_rate_card = a driver's own price.
Pricing is flat per corridor, not per-km.
express, on_the_way, scheduled, driver_rate_card curl --request POST \
--url https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tier": "scheduled"
}
'import requests
url = "https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand"
payload = { "tier": "scheduled" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tier: 'scheduled'})
};
fetch('https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tier' => 'scheduled'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand"
payload := strings.NewReader("{\n \"tier\": \"scheduled\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tier\": \"scheduled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tybritelabs.com/logistics/v1/orders/{orderId}/fulfil-on-demand")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tier\": \"scheduled\"\n}"
response = http.request(request)
puts response.read_body{
"order_id": "ord_7f3a91",
"shipment_id": "shp_a12b",
"tracking_number": "TLDP-20260607-0022",
"tracking_url": "https://tldp.tybritelabs.com/track/TLDP-20260607-0022",
"fulfilment": "on_demand",
"tier": "scheduled",
"fare": 80,
"offers": 3
}
