Example Book Shipment Flow

This Doc highlight steps to follow in order to book a shipment using terminal API

Create Pickup Address

import axios from 'axios'

const address = {
 email: 'email@email.com',
 first_name: 'name',
 last_name: 'last name',
 country: 'NG', // Use country list api to select a country
 state: 'Lagos', // Use state list api to select a country
 city: 'Lagos' // Use city list api to select a country
 line1: 'No 22 john umunna street',
 zip: '12345'
 }
 const url = `$baseUrl}/address`
 const headers = {authorization: `Bearer ${secrete_key} `
 const pickupAddress = await axios.post(url, address, {headers}
 const pickupAddressId = pickupAddress.data.address_id
 console.log(pickupAddressId) //'AD-GDJGJ368DGG'
 

Create Delivery

Last updated