Get Booking Detail Via Link Code
curl --request GET \
--url https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_codeimport requests
url = "https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code', 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://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"uuid": "649547b5-7f68-4ff0-94e4-3a4a7a7922b5",
"profile_id": "8e116ffe-6012-4242-be89-0267db26bef2",
"booking_form_template_id": "4ffb790b-631f-4c55-ad75-0e65990c0022",
"link_code": "sendstack",
"link_url": "https://usedora.com/sendstack",
"logo": "https://usedora-bucket-dev.s3.amazonaws.com/provider-logos/X5xQzSnl3Mn1k4YhgvNGVyN2ViP4dkXygIE1fY9U.png",
"business_name": "Sendstack",
"business_address": "Aso Housing Estate, Airport road, Abuja",
"business_phone": "+2348082738270",
"pricing": {
"uuid": "beefeae8-5bdb-4100-bf46-2c850fc2f722",
"pricing_model": "Per Kilometer (KM)",
"pricing_model_slug": "per_km",
"per_km_amount": "200",
"express_delivery": {
"express_type": null,
"express_value": null
},
"created_at": "2024-04-01T11:19:38.000000Z",
"updated_at": "2024-04-01T11:19:38.000000Z"
}
}
}
Manage Deliveries
Get Booking Detail Via Link Code
Get Booking Detail Via Link Code
curl --request GET \
--url https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_codeimport requests
url = "https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code', 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://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.fleets.usedora.com/api/v1/booking-inbound/get_booking_link_detail/link_code")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"uuid": "649547b5-7f68-4ff0-94e4-3a4a7a7922b5",
"profile_id": "8e116ffe-6012-4242-be89-0267db26bef2",
"booking_form_template_id": "4ffb790b-631f-4c55-ad75-0e65990c0022",
"link_code": "sendstack",
"link_url": "https://usedora.com/sendstack",
"logo": "https://usedora-bucket-dev.s3.amazonaws.com/provider-logos/X5xQzSnl3Mn1k4YhgvNGVyN2ViP4dkXygIE1fY9U.png",
"business_name": "Sendstack",
"business_address": "Aso Housing Estate, Airport road, Abuja",
"business_phone": "+2348082738270",
"pricing": {
"uuid": "beefeae8-5bdb-4100-bf46-2c850fc2f722",
"pricing_model": "Per Kilometer (KM)",
"pricing_model_slug": "per_km",
"per_km_amount": "200",
"express_delivery": {
"express_type": null,
"express_value": null
},
"created_at": "2024-04-01T11:19:38.000000Z",
"updated_at": "2024-04-01T11:19:38.000000Z"
}
}
}
📝 Summary
This endpoint gives you a unique, shareable URL that you can send directly to your customers. Think of it as a personalized portal and your customers can use this single link to either book a new order right away or effortlessly track an existing package’s journey .Responses
| HTTP Status Code | Meaning | Description | Data schema |
|---|---|---|---|
| 200 | OK | none | Inline |
| 422 | Bad Request | none | Inline |
{
"status": "success",
"data": {
"uuid": "649547b5-7f68-4ff0-94e4-3a4a7a7922b5",
"profile_id": "8e116ffe-6012-4242-be89-0267db26bef2",
"booking_form_template_id": "4ffb790b-631f-4c55-ad75-0e65990c0022",
"link_code": "sendstack",
"link_url": "https://usedora.com/sendstack",
"logo": "https://usedora-bucket-dev.s3.amazonaws.com/provider-logos/X5xQzSnl3Mn1k4YhgvNGVyN2ViP4dkXygIE1fY9U.png",
"business_name": "Sendstack",
"business_address": "Aso Housing Estate, Airport road, Abuja",
"business_phone": "+2348082738270",
"pricing": {
"uuid": "beefeae8-5bdb-4100-bf46-2c850fc2f722",
"pricing_model": "Per Kilometer (KM)",
"pricing_model_slug": "per_km",
"per_km_amount": "200",
"express_delivery": {
"express_type": null,
"express_value": null
},
"created_at": "2024-04-01T11:19:38.000000Z",
"updated_at": "2024-04-01T11:19:38.000000Z"
}
}
}
⌘I