Collate your shipment rate and information to be booked.
The book shipment endpoint is used to submit your shipping details to the SHiiP operations team for processing. Once your shipment is booked, it is typically attended to within 30 minutes to 3 hours. Please note that this time frame may vary depending on the volume of shipments and operational surges on that particular day.
Payload
Here's the documentation for the payload in a tabular form:
Field
Type
Required
Validation Rules
Description
redis_key
string
Yes
A unique key for identifying Redis records.
user_id
Integer
Yes
The ID of the user initiating the request.
rate_id
string
Yes
A unique identifier for the rate being used.
platform
String
Yes
Must be set toweb2
Specifies the platform the request originates from.
delivery_note
string
No
Must be a string
Custom order request and instructions
Notes:
redis_key and rate_id must be valid UUIDs, ensuring unique, standardized formats.
user_id must be a positive integer, representing a valid user in the system.
platform must be set to web2, ensure the request comes from an allowed source.
Ensure your wallet is adequately funded before booking a shipment, as we'd be debiting you from there.
Request Sample
curl --location 'https://delivery-staging.apiideraos.com/api/v2/token/bookshipment' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer Secrek Key' \--data '{"redis_key": "2c89e045-3a84-4316-923a-7729edbe4e21","user_id": 96,"rate_id": "2c89e045-3a84-4316-923a-7729edbe4e21","platform": "web2","delivery_note": "Leave at the reception in my condo"}'
import requestsimport jsonurl ="https://delivery-staging.apiideraos.com/api/v2/token/bookshipment"payload = json.dumps({"redis_key": "2c89e045-3a84-4316-923a-7729edbe4e21","user_id": 96,"rate_id": "2c89e045-3a84-4316-923a-7729edbe4e21","platform": "web2","delivery_note": "Leave at the reception in my condo"})headers ={'Content-Type':'application/json','Authorization':'Bearer Secrek Key'}response = requests.request("POST", url, headers=headers, data=payload)print(response.text)
require"uri"require"json"require"net/http"url =URI("https://delivery-staging.apiideraos.com/api/v2/token/bookshipment")https =Net::HTTP.new(url.host, url.port)https.use_ssl =truerequest =Net::HTTP::Post.new(url)request["Content-Type"] ="application/json"request["Authorization"] ="Bearer Secret Key"request.body =JSON.dump({"redis_key":"2c89e045-3a84-4316-923a-7729edbe4e21","user_id":96,"rate_id":"2c89e045-3a84-4316-923a-7729edbe4e21","platform":"web2","delivery_note":"Leave at the reception in my condo"})response = https.request(request)puts response.read_body
constmyHeaders=newHeaders();myHeaders.append("Content-Type","application/json");myHeaders.append("Authorization","Bearer Secret Key");constraw=JSON.stringify({"redis_key":"2c89e045-3a84-4316-923a-7729edbe4e21","user_id":96,"rate_id":"2c89e045-3a84-4316-923a-7729edbe4e21","platform":"web2","delivery_note":"Leave at the reception in my condo"});constrequestOptions= { method:"POST", headers: myHeaders, body: raw, redirect:"follow"};fetch("https://delivery-staging.apiideraos.com/api/v2/token/bookshipment", requestOptions).then((response) =>response.text()).then((result) =>console.log(result)).catch((error) =>console.error(error));