This API endpoint allows you to create a new FlexFlow (door-to-door) parcel request. The HTTP POST request should be sent to /parcel/logistics/door-door with the following payload in the raw request body:
{
"pickup_origin": {
"state_code": "LA",
"country_code": "NG",
"city": "Lagos",
"address": "Ikolaba Rd, Ibadan 200285, Oyo ...",
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"contacts": {
"name": "Olakunle Olayemi",
"email": "[email protected]",
"phone_number": "09020500177",
"phone_number_2": ""
},
"pickup_note": "",
"pickup_date": "",
"pickup_time": "",
"vehicle": ""
},
"destinations": [
{
"state_code": "LA",
"country_code": "NG",
"city": "Lagos",
"address": "Ikolaba Rd, Ibadan 200285, Oyo ...",
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"contacts": {
"name": "Olakunle Olayemi",
"email": "[email protected]",
"phone_number": "09020500177",
"phone_number_2": ""
},
"delivery_note": "",
"items": [
{
"name": "Book",
"width": "",
"length": "",
"height": ""
}
],
"item_weight": 1
}
]
}
The response to this request will include a JSON object with the following structure:
{
"status": true,
"message": "",
"data": {
"tracking_number": "",
"status": "",
"total_amount": 0,
"total_discount_amount": 0,
"total_amount_payable": 0,
"discount_type": "",
"discount_description": ""
}
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
[
{
"address": "Ikolaba Rd, Ibadan 200285, Oyo, Nigeria",
"city": "Lagos",
"contacts": {
"email": "[email protected]",
"name": "Olakunle Olayemi",
"phone_number": "09020500177",
"phone_number_2": ""
},
"country_code": "NG",
"delivery_note": "",
"item_weight": 1,
"items": [
{
"height": "",
"length": "",
"name": "Book",
"width": ""
}
],
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": "LA"
},
{
"address": "Ikolaba Rd, Ibadan 200285, Oyo, Nigeria",
"city": "Lagos",
"contacts": {
"email": "[email protected]",
"name": "Olakunle Olayemi",
"phone_number": "09020500177",
"phone_number_2": ""
},
"country_code": "NG",
"delivery_note": "",
"item_weight": 1,
"items": [
{
"height": "",
"length": "",
"name": "Book",
"width": ""
}
],
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": "LA"
},
{
"address": "Ikolaba Rd, Ibadan 200285, Oyo, Nigeria",
"city": "Lagos",
"contacts": {
"email": "[email protected]",
"name": "Olakunle Olayemi",
"phone_number": "09020500177",
"phone_number_2": ""
},
"country_code": "NG",
"delivery_note": "",
"item_weight": 1,
"items": [
{
"height": "",
"length": "",
"name": "Book",
"width": ""
}
],
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": "LA"
}
]