This Doc highlight steps to follow in order to book a shipment using terminal API
Create Pickup Address
import axios from'axios'constaddress= { 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' }consturl=`$baseUrl}/address`constheaders= {authorization:`Bearer ${secrete_key} ` const pickupAddress =awaitaxios.post(url, address, {headers} const pickupAddressId =pickupAddress.data.address_idconsole.log(pickupAddressId) //'AD-GDJGJ368DGG'