Skip to content
On this page

Advanced

Users

UserRegister

This resource allows the creation of user or customer accounts together with their account information as parameters.

End Point

POST /users/register

Request Information

URI Parameters: None

Body Parameters:

NameDescriptionTypeAdditional Info
LoginNameuser/customer account loginnamestringrequired
Passworduser/customer account passwordstringrequired
FirstNameuser/customer’s first namestringrequired
MiddleNameuser/customer’s middle namestringoptional
LastNameuser/customer’s last namestringrequired
EmailAddressuser/customer’s email addressstringrequired
MobileNumberuser/customer’s mobile numberstringrequired
Addressuser/customer’s addressarrayrequired
Streetuser’s street addressstringrequired
Barangayuser's barangaystringrequired
PostalCodeaddress serviceable area’s postal codestringrequired
IsBillingAddressaddress is the billing addressbooloptional
IsDeliveryAddressaddress is the delivery addressbooloptional
IsPickupAddressaddress is the pickup address addressbooloptional

Sample Schema Content-type: application/json

json
{
    "LoginName": "test4@customer.com",
    "Password": "testpass",
    "FirstName": "Customer",
    "MiddleName": "",
    "LastName": "Test 4",
    "EmailAddress": "test4@customer.com",
    "MobileNumber": "09175558870",
    "Address": [
                {
                    "Street": " Makati Street ",
                    "Barangay": "Barangay 123",
                    "PostalCode": "1200",
                    "IsBillingAddress": true,
                    "IsDeliveryAddress": true,
                    "IsPickupAddress": true
                }
            ]
}

Response Information

A successful request to this API will return its creation information such as its status and the user account information being added based on the body parameters.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "Token": "18D74E560ED34690FC938D9966CF3171F9115254AD64ADAB599A92B9A9412C33",
        "UserInfo": {
            "Id": 4754,
            "CustomerCode": "W-1795",
            "LoginName": "test5@customer.com",
            "Password": "D55FBE735C5A2501ACB056AAC081DAB133D128FF0E9087F644D57E1618D34C2E",
            "FirstName": "Customer",
            "MiddleName": "",
            "LastName": "Prepaid",
            "EmailAddress": "test5@customer.com",
            "MobileNumber": "09123456789",
            "Address": [
                {
                    "Id": 2688,
                    "Street": " Makati Street ",
                    "Barangay": "Barangay 123",
                    "CityMunicipality": "Makati City",
                    "StateProvince": "Metro Manila",
                    "PostalCode": "1200",
                    "IsBillingAddress": true,
                    "IsDeliveryAddress": true,
                    "IsPickupAddress": true
                }
            ]
        }
    }
}

UserLogin

This resource allows customers to log in using their created accounts’ loginname and password as parameters.

End Point

POST /users/login

Request Information

URI Parameters: None

Body Parameters:

NameDescriptionTypeAdditional Info
LoginNameuser/customer account loginnamestringrequired
Passworduser/customer account passwordstringrequired

Sample Schema Content-type: application/json

json
{
    "LoginName": "test4@customer.com",
    "Password" : "testpass"
}

Response Information

A successful request to this API will return the login status and the user’s account information.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "Token": "FE2347F0A8DF64F0D18302A8DA7E080A50FC454C0CB61F0C77B8BE3C84567EEC",
        "UserInfo": {
            "Id": 3751,
            "CustomerCode": "W-1793",
            "LoginName": "test4@customer.com",
            "Password": "13D249F2CB4127B40CFA757866850278793F814DED3C587FE5889E889A7A9F6C",
            "FirstName": "Customer",
            "MiddleName": "",
            "LastName": "Test 4",
            "EmailAddress": "test4@customer.com",
            "MobileNumber": "09175558870",
            "Address": [
                {
                    "Id": 2688,
                    "Street": " Makati Street ",
                    "Barangay": "Barangay 123",
                    "CityMunicipality": "Makati City",
                    "StateProvince": "Metro Manila",
                    "PostalCode": "1200",
                    "IsBillingAddress": true,
                    "IsDeliveryAddress": true,
                    "IsPickupAddress": true
                }
            ]
        }
    }
}

UserChangePassword

This resource allows customers to change their account password.

End Point

POST /users/change-password

Request Information

URI Parameters: None

Body Parameters:

NameDescriptionTypeAdditional Info
LoginNameuser/customer account loginnamestringrequired
NewPassworduser/customer account new passwordstringrequired

Sample Schema Content-type: application/json

json
{
    "LoginName": "test@customer.com",
    "NewPassword": "testpass1234"
}

Response Information

A successful request to this API will return the account's loginame and new password.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "LoginName": "test@customer.com",
        "NewPassword": "41289997211742C9FECAA36F0EA9FF2C7203497D2B60BAD8B97578850A63F7D3"
    }
}

GetUserById

This resource allows the getting of user account's details by user id.

End Point

GET /users/{id}

Request Information

URI Parameters: None

Body Parameters: None

Response Information

Request to this API will return an object containing the user account's details/information. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "Token": "FE2347F0A8DF64F0D18302A8DA7E080A50FC454C0CB61F0C77B8BE3C84567EEC",
        "UserInfo": {
            "Id": 5758,
            "CustomerCode": "W-2799",
            "LoginName": "dandysembrano@gmail.com",
            "Password": "EF797C8118F02DFB649607DD5D3F8C7623048C9C063D532CC95C5ED7A898A64F",
            "FirstName": "Dandy",
            "MiddleName": "T",
            "LastName": "Sembrano",
            "EmailAddress": "dandysembrano@gmail.com",
            "MobileNumber": "09189378640",
            "Address": [
                {
                    "Id": 2684,
                    "Street": " Makati Street ",
                    "Barangay": "Barangay 123",
                    "CityMunicipality": "Makati City",
                    "StateProvince": "Metro Manila",
                    "PostalCode": "1200",
                    "IsBillingAddress": true,
                    "IsDeliveryAddress": true,
                    "IsPickupAddress": true
                }
            ]
        }
    }
}

GetUserByLoginName

This resource allows the getting of user account's details by user loginname.

End Point

GET /users

Request Information

URI Parameters:

NameDescriptionTypeAdditional Info
loginNameuser/customer account loginnamestringrequired

Body Parameters: None

Response Information

Request to this API will return an object containing the user account's details/information. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "Token": "0F382066F1F34AA21B8F83AA8AC0A2FDAAED5E92493C785717ABD68CD7E7E0FB",
        "UserInfo": {
            "Id": 4754,
            "CustomerCode": "W-1795",
            "LoginName": "test5@customer.com",
            "Password": "D55FBE735C5A2501ACB056AAC081DAB133D128FF0E9087F644D57E1618D34C2E",
            "FirstName": "Customer",
            "MiddleName": "",
            "LastName": "Prepaid",
            "EmailAddress": "test5@customer.com",
            "MobileNumber": "09123456789",
            "Address": [
                {
                    "Id": 1679,
                    "Street": " Makati Street ",
                    "Barangay": "Barangay 123",
                    "CityMunicipality": "Makati City",
                    "StateProvince": "Metro Manila",
                    "PostalCode": "1200",
                    "IsBillingAddress": true,
                    "IsDeliveryAddress": true,
                    "IsPickupAddress": true
                }
            ]
        }
    }
}

ShipmentBooking

ShipmentBooking

This resource allows customers to save shipment transactions or to book a shipment with its required shipment information.

End Point

POST /shipments/booking

Request Information

URI Parameters: None

Body Parameters:

NameDescriptionTypeAdditional Info
LoginNameuser account's login namestringrequired
ServiceIdshipment’s service idintrequired
ShipmentTypeIdshipment’s shipment type idintrequired
ShipmentCategoryIdshipment category idintrequired
PickupDatedate when to pick up shipmentdaterequired
PickupTimetime when to pick up shipmenttimerequired
PickupAddressaddress where to pick up shipmentobjectrequired
PickupAddress.Streetstreet of pickup addressstringrequired
PickupAddress.Barangaybarangay of pickup addressstringrequired
PickupAddress.PostalCodepickup address’ postal code based on serviceable areastringrequired
Remarksshipment remarksstringoptional
RequestedDeliveryDatedate when the customer wants the shipment to be delivereddateoptional
RequestedDeliveryTimetime when the customer wants the shipment to be deliveredtimeoptional
Weightshipment’s total weight in kilogramsdecimalrequired
CBMshipment's total CBMdecimalrequired
Distancedistance in km from origin to destinationdecimaloptional
DeclaredValueshipment’s declared valuedecimalrequired (minimum value: 100)
PackageDimensionsdimensions of the shipment's packagearrayrequired
Lengthshipment’s packaging length in cmdecimalrequired only if shipment type name is “Own Packaging”
Widthshipment’s packaging width in cmdecimalrequired only if shipment type name is “Own Packaging”
Heightshipment’s packaging height in cmdecimalrequired only if shipment type name is “Own Packaging”
Weightshipment’s packaging weight in kgdecimalrequired
Quantityshipment’s packaging quantityintrequired
CargoDescriptiondescription of cargostringoptional
ConsigneeNamename of shipment receiverstringrequired
ConsigneeContactNocontact no of shipment receiverstringoptional
ConsigneeEmailAddressemail address of shipment receiverstringrequired
ConsigneeAddressaddress of shipment receiver/ delivery addressobjectrequired
ConsigneeAddress.Streetstreet of delivery addressstringrequired
ConsigneeAddress.Barangaybarangay of delivery addressstringrequired
ConsigneeAddress.PostalCodedelivery address’ postal code based on serviceable areastringrequired
PaymentModeTransaction’s payment mode (Modes: A - Account, P - Prepaidstringrequired
RatesDetailsshipment breakdown of rates/chargesobjectrequired
RatesDetails.Idrate Idintrequired
RatesDetails.Namerate namestringrequired
RatesDetails.Chargesarray of the shipment charges/rates breakdownarrayrequired
Descriptioncharge descriptionstringrequired
Amountcharge amountdecimalrequired

Sample Schema Content-type: application/json

json
{
    "LoginName": "test5@customer.com",
    "ServiceId": 5,
    "ShipmentTypeId": 30,
    "ShipmentCategoryId": 6,
    "PickupDate": "2020-10-07",
    "PickupTime": "08:00",
    "PickupAddress": {
        "Street": "Naval St.",
        "Barangay": "Bagumbayan South",
        "PostalCode": 1485
    },
    "Remarks": "Test new booking",
    "RequestedDeliveryDate": "2020-10-14",
    "RequestedDeliveryTime": "08:00",
    "Weight": 1,
    "CBM": 1,
    "Distance" : 59.1,
    "DeclaredValue": 50000.00,
    "PackageDimensions": [
        {
            "Length": 1,
            "Width": 1,
            "Height": 1,
            "Weight": 1,
            "Quantity": 1
        }
    ],
    "CargoDescription": "Assorted",
    "ConsigneeName": "Shiena Grace Formentera",
    "ConsigneeContactNo": "09123456789",
    "ConsigneeEmailAddress": "consigneeemail@email.com",
    "ConsigneeAddress": {
        "Street": "San Isidro Road",
        "Barangay": "San Isidro",
        "PostalCode": 4025
    },
    "PaymentMode": "P",
    "RatesDetails": {
        "Id": 31435,
        "Name": "AUV",
        "Charges": [
            {
                "Description": "Trucking",
                "Amount": 3000
            }
        ]
    }
}

Response Information

A successful request to this API will save the booked shipment and its information and will return a success booking status and the shipment’s tracking number.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "trackingId": "00187487",
        "BookingDate": "07/10/2020",
        "BookingTime": "15:59:23"
    }
}

Services

This resource allows customers to request all shipment service types.

End Point

GET /services

Request Information

URI Parameters:

NameDescriptionTypeAdditional Info
bookingTypevalid booking type (whether LCL or FTL)stringrequired

Body Parameters: None.

Response Information

Request to this API will return an object containing an array of all shipment services. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
        "message": null,
        "data": [
           {
                "Id": 8,
                "Name": "Express"
            },
            {
                "Id": 7,
                "Name": "Standard"
            }
        ]
}

ShipmentTypes

This resource allows customers to request LCL or FTL shipmenttypes of a specific available service. The service id will be its parameter.

End Point

GET /shipment-types

Request Information

URI Parameters:

NameDescriptionTypeAdditional Info
serviceIdavailable/valid service id: 5 (Full Truck Load), 7 (Standard), 8 (Express)intrequired

Response Information

Request to this API will return an array of LCL or FTL shipment types of a specific available service together with its dimensions and other details. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": [
        {
            "Id": 30,
            "Name": "AUV",
            "ServiceId": 5,
            "Length": null,
            "Width": null,
            "Height": null,
            "Description": "Max CBM Load Capacity: 3 CBM ~Max Tonnage Load Capacity: 1 Ton ~Safe Allowance Load (KG): 800 ~Maximum Declared Value Covered: 500,000.00 ~Inclusive of 1 driver and 1 helper",
            "SortId": 1
        },
        {
            "Id": 32,
            "Name": "4 Wheeler",
            "ServiceId": 5,
            "Length": null,
            "Width": null,
            "Height": null,
            "Description": "Max CBM Load Capacity: 5 CBM ~Max Tonnage Load Capacity: 1 Ton ~Safe Allowance Load (KG): 800 ~Maximum Declared Value Covered: 750,000.00 ~Inclusive of 1 driver and 1 helper",
            "SortId": 2
        },
        {
            "Id": 33,
            "Name": "6 Wheeler",
            "ServiceId": 5,
            "Length": null,
            "Width": null,
            "Height": null,
            "Description": "Max CBM Load Capacity: 14 CBM ~Max Tonnage Load Capacity: 4 Ton ~Safe Allowance Load (KG): 3600 ~Maximum Declared Value Covered: 1,000,000.00 ~Inclusive of 1 driver and 1 helper",
            "SortId": 3
        },
        {
            "Id": 34,
            "Name": "6 Wheeler Forward",
            "ServiceId": 5,
            "Length": null,
            "Width": null,
            "Height": null,
            "Description": "Max CBM Load Capacity: 18 CBM ~Max Tonnage Load Capacity: 7.5 Ton ~Safe Allowance Load (KG): 7200 ~Maximum Declared Value Covered: 1,500,000.00 ~Inclusive of 1 driver and 1 helper",
            "SortId": 4
        },
        {
            "Id": 31,
            "Name": "10 Wheeler",
            "ServiceId": 5,
            "Length": null,
            "Width": null,
            "Height": null,
            "Description": "Max CBM Load Capacity: 32 CBM ~Max Tonnage Load Capacity: 13.5 Ton ~Safe Allowance Load (KG): 12000 ~Maximum Declared Value Covered: 2,000,000.00 ~Inclusive of 1 driver and 1 helper",
            "SortId": 5
        }
    ]
}

Rates

This resource allows customers to request breakdown of shipment charges/rates based on its origin, destination, service and shipment type as parameters. This resource will also require the length, width, height, weight and quantity of the shipment’s packaging if its shipment type parameter is “Own Packaging”.

End Point

GET /rates/standard

Request Information

URI Parameters: None

Body Parameters:

NameDescriptionTypeAdditional Info
OriginPostalCodeserviceable area postal code of shipment’s origin addressintrequired
DestinationPostalCodeserviceable area postal code of shipment’s destination addressintrequired
ServiceIdId of the shipment serviceintrequired
ShipmentTypeIdId of the shipment typeintrequired
DeclaredValueshipment’s declared valuedecimalrequired (minimum value: 100)
Weightshipment’s total weight in kilogramsdecimalrequired
CBMshipment's total CBMdecimalrequired
Distancedistance in km from origin to destinationdecimaloptional
PackageDimensionsdimensions of the shipment's packagearrayrequired
Lengthshipment’s packaging length in cmdecimalrequired only if shipment type name is “Own Packaging”
Widthshipment’s packaging width in cmdecimalrequired only if shipment type name is “Own Packaging”
Heightshipment’s packaging height in cmdecimalrequired only if shipment type name is “Own Packaging”
Weightshipment’s packaging weight in kgdecimalrequired
Quantityshipment’s packaging quantityintrequired

Sample Schema Content-type: application/json

json
{
    "OriginPostalCode": 1485,
    "DestinationPostalCode": 4025,
    "ServiceId": 5,
    "ShipmentTypeId": 30,
    "DeclaredValue": 50000.00,
    "Weight": 1.3,
    "CBM": 1,
    "Distance" : 59.1,
    "PackageDimensions": [
        {
            "Length": 0,
            "Width": 0,
            "Height": ,
            "Weight": 24,
            "Quantity": 1
        }
    ]
}

Response Information

Request to this API will return a breakdown of charges/rates for a shipment based on its origin, destination, service, shipment type, and the package’s weight, CBM, length, width, and height if its shipment type is “Own Packaging”. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "Id": 31435,
        "Name": "AUV",
        "Charges": [
            {
                "Description": "Trucking",
                "Amount": 3000
            }
        ]
    }
}

Rates Many

This resource allows customers to request breakdown of multiple shipment charges/rates based on its origin, destination, and service only as parameters.

End Point

GET /rates/standard/many

Request Information

URI Parameters: None

Body Parameters:

NameDescriptionTypeAdditional Info
OriginPostalCodeserviceable area postal code of shipment’s origin addressintrequired
DestinationPostalCodeserviceable area postal code of shipment’s destination addressintrequired
ServiceIdId of the shipment serviceintrequired

Sample Schema Content-type: application/json

json
{
    "OriginPostalCode": 1485,
    "DestinationPostalCode": 4025,
    "ServiceId": 5
}

Response Information

Request to this API will return multiple shipment rates/charges and its breakdown based on its origin, destination, and service. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": {
        "ServiceId": 5,
        "ServiceName": "Full Truck Load",
        "OriginPostalCode": "1485",
        "DestinationPostalCode": "4025",
        "RatesDetails": [
            {
                "Id": 31435,
                "Name": "AUV",
                "ShipmentTypeId": 30,
                "ShipmentTypeName": "AUV",
                "Charges": [
                    {
                        "Description": "Trucking",
                        "Amount": 3000
                    }
                ]
            },
            {
                "Id": 24733,
                "Name": "Inland Transaction ",
                "ShipmentTypeId": 31,
                "ShipmentTypeName": "10 Wheeler",
                "Charges": [
                    {
                        "Description": "Trucking",
                        "Amount": 12950
                    }
                ]
            },
            {
                "Id": 31445,
                "Name": "4 Wheeler",
                "ShipmentTypeId": 32,
                "ShipmentTypeName": "4 Wheeler",
                "Charges": [
                    {
                        "Description": "Trucking",
                        "Amount": 3542
                    }
                ]
            },
            {
                "Id": 30391,
                "Name": "6W FORWARD",
                "ShipmentTypeId": 33,
                "ShipmentTypeName": "6 Wheeler",
                "Charges": [
                    {
                        "Description": "Trucking",
                        "Amount": 9165.6925
                    }
                ]
            },
            {
                "Id": 31432,
                "Name": "6 WHEELER LAND",
                "ShipmentTypeId": 33,
                "ShipmentTypeName": "6 Wheeler",
                "Charges": [
                    {
                        "Description": "Trucking",
                        "Amount": 5000
                    }
                ]
            }
        ]
    }
}

ShipmentCategories

This resource allows customers to request all shipment categories.

End Point

GET /shipment-categories

Request Information

URI Parameters: None

Body Parameters: None

Response Information

Request to this API will return a list of all shipment categories. A status code of 404 will be returned when no record is found.

Sample Response Format Content-type: application/json

json
{
    "status": "SUCCESS",
    "message": null,
    "data": [
        {
            "Id": 1,
            "Description": "Dry Goods"
        },
        {
            "Id": 2,
            "Description": "Equipment"
        },
        {
            "Id": 3,
            "Description": "Electronics"
        },
        {
            "Id": 4,
            "Description": "Appliances"
        },
        {
            "Id": 5,
            "Description": "Furniture"
        },
        {
            "Id": 6,
            "Description": "Others(Specify)"
        }
    ]
}