Get Delivery Fee
curl --request POST \
--url https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_feeimport requests
url = "https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee', 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/link_code/get_delivery_fee",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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/link_code/get_delivery_fee"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyManage Deliveries
Get Delivery Fee
Get Delivery Fee
curl --request POST \
--url https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_feeimport requests
url = "https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee', 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/link_code/get_delivery_fee",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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/link_code/get_delivery_fee"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.fleets.usedora.com/api/v1/booking_inbound/link_code/get_delivery_fee")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body📝 Summary
This endpoint allows users to calculate the cost for a potential delivery. By providing necessary parameters such as the pickup location, delivery destination, and package dimensions/weight, the system will compute and return the estimated delivery fee and any associated taxes or surcharges. This enables users to determine the final price before confirming a delivery request.Requests
Example
Show child attributes
Show child attributes
{
"sender_address": "Aso housing estate, Lugbe, Abuja",
"receiver_address": "Grandeur squares and cubes estate, FHA, Lugbe, Abuja"
"scope":"insterstate" // insterstate, intracity
}
Params
Show child attributes
Show child attributes
Description:
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
body | body | object | no | none |
sender_address | body | string | yes | none |
receiver_address | body | string | yes | none |
scope | body | string | yes | interstate, intracity |
Responses
| HTTP Status Code | Meaning | Description | Data schema |
|---|---|---|---|
| 200 | OK | none | Inline |
| 422 | Bad Request | none | Inline |
⌘I