Download OpenAPI specification:Download
The purpose of this document is to assist merchants or clients of ITSLogic Freight in automating their delivery requests and obtaining an estimated delivery fee. By integrating with the ITSLogic Freight API, users can streamline their logistics processes, making it easier to manage shipments efficiently.
ITSLogic Freight uses Basic Authentication for API requests. You will need to use your email and password that you registered with on the ITSLogic Web Ordering App.
To authenticate your requests, you can use the following NodeJS code snippet. This example uses the axios library to make HTTP requests. If you don't have axios installed, you can add it to your project by running npm install axios.
const axios = require('axios');
const email = 'your_email@example.com'; // Your registered email
const password = 'your_password'; // Your password
const token = Buffer.from(`${email}:${password}`).toString('base64');
const config = {
headers: {
'Authorization': `Basic ${token}`
}
};
async function makeRequest() {
try {
const response = await axios.get('https://api.itslogic.ph/delivery', config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
makeRequest();
Use this endpoint to display the estimated delivery fee for the parcel. It's important to specify parcel dimensions, weight, and destination to receive an accurate estimate.
object | |
object | |
| paymentMethod | string Value: "billing" |
| amountToCollect | number |
| reference1 | string |
| reference2 | string |
| reference3 | string |
| remarks | string |
{- "packageDetails": {
- "value": 100,
- "weight": 1,
- "quantity": 2,
- "itemDescription": "test"
}, - "consignee": {
- "consigneeName": "Test",
- "address": "Cebu City",
- "phoneNumber": "+639174740855",
- "email": "asdasd@asdasd.com"
}, - "paymentMethod": "billing",
- "amountToCollect": 1000,
- "reference1": "",
- "reference2": "",
- "reference3": "",
- "remarks": ""
}{- "deliveryFee": 198
}This endpoint is used to book a delivery. You'll need to provide detailed information about the parcel and the pickup and delivery locations.
object | |
object | |
| pickUpDate | date |
| paymentMethod | string Value: "billing" |
| amountToCollect | number |
| reference1 | string |
| reference2 | string |
| reference3 | string |
| remarks | string |
{- "packageDetails": {
- "value": 100,
- "weight": 1,
- "quantity": 2,
- "itemDescription": "test"
}, - "consignee": {
- "consigneeName": "Test",
- "address": "Cebu City",
- "phoneNumber": "+639174740855",
- "email": "asdasd@asdasd.com"
}, - "pickUpDate": "2024-02-22",
- "paymentMethod": "billing",
- "amountToCollect": 1000,
- "reference1": "",
- "reference2": "",
- "reference3": "",
- "remarks": ""
}{- "isSuccess": false,
- "error": "UNAUTHORIZED REQUEST"
}