Active Services API is used to get Active Services.
These are form parameters:
Parameter | Data Type | Required/Optional | Description |
---|---|---|---|
SecureKey | int | Required | It is a Unique key for accessing the API. For secure key email to support team. |
customerCode | String | Required | Customer Code should be same as available in logixerp. |
ON SUCCESS
{
"message": "Services available",
"messageType": "Success",
"services":
[
{
"category": "FTL",
"code": "FULLTRUCKLOAD",
"name": "Full Truck Load2"
},
{
"category": "EXPRESS",
"code": "SDD",
"name": "SAME DAY DELIVERY"
}
{
"category": "EXPRESS",
"code": "EXPRESS",
"name": "Express"
}
{
"category": "PL",
"code": "PARTLOAD",
"name": "PARTLOAD"
}
]
}
ON ERROR
{
"message": "Error_Message",
"messageType" : "Error"
}
Error Messages | Description |
---|---|
import java.net.URL;
public class ActiveServices {
private static final String ACCESS_URL = API_URL+SECURE_KEY+"&customerCode="+CUSTOMERCODE;
StringBuffer response = new StringBuffer();
in.close();
import requests