Customer API (1.0.0)

Download OpenAPI specification:Download

Introduction

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.

Authentication

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.

Sample Code for Basic Authentication in NodeJS

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();

Booking

Inquire Delivery

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.

Authorizations:
authorizationHeader
Request Body schema: application/json
object
object
paymentMethod
string
Value: "billing"
amountToCollect
number
reference1
string
reference2
string
reference3
string
remarks
string

Responses

Request samples

Content type
application/json
{
  • "packageDetails": {
    },
  • "consignee": {
    },
  • "paymentMethod": "billing",
  • "amountToCollect": 1000,
  • "reference1": "",
  • "reference2": "",
  • "reference3": "",
  • "remarks": ""
}

Response samples

Content type
application/json
{
  • "deliveryFee": 198
}

Book Delivery

This endpoint is used to book a delivery. You'll need to provide detailed information about the parcel and the pickup and delivery locations.

Authorizations:
authorizationHeader
Request Body schema: application/json
object
object
pickUpDate
date
paymentMethod
string
Value: "billing"
amountToCollect
number
reference1
string
reference2
string
reference3
string
remarks
string

Responses

Request samples

Content type
application/json
{
  • "packageDetails": {
    },
  • "consignee": {
    },
  • "pickUpDate": "2024-02-22",
  • "paymentMethod": "billing",
  • "amountToCollect": 1000,
  • "reference1": "",
  • "reference2": "",
  • "reference3": "",
  • "remarks": ""
}

Response samples

Content type
application/json
{
  • "isSuccess": false,
  • "error": "UNAUTHORIZED REQUEST"
}