Get started

    API Endpoint

    https://api.spediscih24.it/
                

The spediscih24 API provides programmatic access to spediscih24 data. Retrieve a orders, provide an oauth connexion, retrieve a order details, tracking, etc.

To use this API, you need an API key. Please contact us at Administrator to get your own API key.

Token Verification


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.spediscih24.it/token/verification?token={token}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: laravel_session=eyJpdiI6IlZ1RmNSemJoSmFrZHV4dFJNQjBkNVE9PSIsInZhbHVlIjoiYkE2T0tSbEtpb2xIVnFQWHE4dUJQc1ZHTlFXMW5rKzJsc3hvMXg4ckRKSzN1YWdRUWltdko5bVEyVzlYbWVuYmxtRDNNajNJWHlwcGJ6OHU4Y0VaQysrTVluTGVwZU1FLy9rZEw2cWNSTWh4QjF3ZnlXaXlJWE4zUFhNbEw4RWwiLCJtYWMiOiJhMWFiNWJjZGJmMDQ5NWE3ODhmODQxNzMwOTM1MjE1Mzc5MWE4YzllNjZmNDZjYjVhNzEzNjNlOGUxMjkwZjQzIiwidGFnIjoiIn0%3D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

                

To get verify your token/api key you need to make a GET call to the following url :
https://api.spediscih24.it/



Result example :

{
    "status":true,
    "message":"Token matched"
}
                

QUERY PARAMETERS

Field Type Description
token String Admin Token Varification.

User Details


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://spediscih24.techplus.com.pk/token_verification?token=da979d2922c74d7851e6f0eff2270d73',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: laravel_session=eyJpdiI6IlZ1RmNSemJoSmFrZHV4dFJNQjBkNVE9PSIsInZhbHVlIjoiYkE2T0tSbEtpb2xIVnFQWHE4dUJQc1ZHTlFXMW5rKzJsc3hvMXg4ckRKSzN1YWdRUWltdko5bVEyVzlYbWVuYmxtRDNNajNJWHlwcGJ6OHU4Y0VaQysrTVluTGVwZU1FLy9rZEw2cWNSTWh4QjF3ZnlXaXlJWE4zUFhNbEw4RWwiLCJtYWMiOiJhMWFiNWJjZGJmMDQ5NWE3ODhmODQxNzMwOTM1MjE1Mzc5MWE4YzllNjZmNDZjYjVhNzEzNjNlOGUxMjkwZjQzIiwidGFnIjoiIn0%3D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


                

To get user account details you need to make a GET call to the following url :
https://api.spediscih24.it/token_verification



Result example :

{
    "status": true,
    "message": "Token matched",
    "data": {
        "ID": 10,
        "user_login": "ztatiana012@gmail.com",
        "user_nicename": "ztatiana012gmail-com",
        "user_email": "ztatiana012@gmail.com",
        "user_url": "",
        "user_registered": "2021-08-07 17:19:38",
        "user_activation_key": "",
        "user_status": 1,
        "display_name": "tatiana zamora"
    }
}
                

QUERY PARAMETERS

Field Type Description
token String Get user details.

Get Orders



$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.spediscih24.it/get/orders?token=JzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikpva',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: laravel_session=eyJpdiI6IlZ1RmNSemJoSmFrZHV4dFJNQjBkNVE9PSIsInZhbHVlIjoiYkE2T0tSbEtpb2xIVnFQWHE4dUJQc1ZHTlFXMW5rKzJsc3hvMXg4ckRKSzN1YWdRUWltdko5bVEyVzlYbWVuYmxtRDNNajNJWHlwcGJ6OHU4Y0VaQysrTVluTGVwZU1FLy9rZEw2cWNSTWh4QjF3ZnlXaXlJWE4zUFhNbEw4RWwiLCJtYWMiOiJhMWFiNWJjZGJmMDQ5NWE3ODhmODQxNzMwOTM1MjE1Mzc5MWE4YzllNjZmNDZjYjVhNzEzNjNlOGUxMjkwZjQzIiwidGFnIjoiIn0%3D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;



                

To get user orders you need to make a GET call to the following url :
https://api.spediscih24.it/get/orders



Result example :

{
    "status": true,
    "message": "Token matched",
    "data": [
        {
            "ID": 46031,
            "post_author": 2,
            "post_date": "2021-07-11 17:38:59",
            "post_date_gmt": "2021-07-11 15:38:59",
            "post_content": "",
            "post_title": "",
            "post_excerpt": "",
            "post_status": "paid",
            "comment_status": "closed",
            "ping_status": "closed",
            "post_password": "",
            "post_name": "46031",
            "to_ping": "",
            "pinged": "",
            "post_modified": "2021-07-11 17:39:12",
            "post_modified_gmt": "2021-07-11 15:39:12",
            "post_content_filtered": "",
            "post_parent": 0,
            "guid": "http://spediscih24.test/?post_type=shipping_order&p=46031",
            "menu_order": 0,
            "post_type": "shipping_order",
            "post_mime_type": "",
            "comment_count": 0,
            "id": 1,
            "order_id": 46031,
            "sender_data": "{\"sender_name\":\"asa\",\"sender_email\":\"asa@gmail.com\",\"sender_phone\":\"1212121212\",\"sender_address\":\"asdas\",\"sender_city\":\"Malcesine\",\"sender_province\":\"VR\",\"sender_postalcode\":\"37018\",\"sender_country\":\"IT\"}",
            "destination_data": "{\"destination_name\":\"sas\",\"destination_email\":\"asassad@gmail.com\",\"destination_phone\":\"1212121212\",\"destination_address\":\"dsd\",\"destination_city\":\"Arco\",\"destination_province\":\"TN\",\"destination_postalcode\":\"38062\",\"destination_country\":\"IT\"}",
            "package_data": "{\"pack_weight\":\"2\",\"pack_width\":\"12\",\"pack_height\":\"12\",\"pack_length\":\"12\",\"pack_content\":\"asdsad\",\"pickup_start\":\"08:00\"}",
            "service_data": "{\"vector_name\":\"CROE\",\"vector_display\":\"CRONO ECONOMY\",\"supplier_cost\":\"3.76\"}",
            "service_provider": "easyparcel",
            "dispatch_success": null,
            "dispatch_error": null,
            "dispatched_at": null
        }
    ]
}
                

QUERY PARAMETERS

Field Type Description
token String Get orders.

Get Orders



$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.spediscih24.it/orders/list/view?token=JzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikpva',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: laravel_session=eyJpdiI6IlZ1RmNSemJoSmFrZHV4dFJNQjBkNVE9PSIsInZhbHVlIjoiYkE2T0tSbEtpb2xIVnFQWHE4dUJQc1ZHTlFXMW5rKzJsc3hvMXg4ckRKSzN1YWdRUWltdko5bVEyVzlYbWVuYmxtRDNNajNJWHlwcGJ6OHU4Y0VaQysrTVluTGVwZU1FLy9rZEw2cWNSTWh4QjF3ZnlXaXlJWE4zUFhNbEw4RWwiLCJtYWMiOiJhMWFiNWJjZGJmMDQ5NWE3ODhmODQxNzMwOTM1MjE1Mzc5MWE4YzllNjZmNDZjYjVhNzEzNjNlOGUxMjkwZjQzIiwidGFnIjoiIn0%3D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;




                

To get user orders list IDs you need to make a GET call to the following url :
https://api.spediscih24.it/orders/list/view



Result example :

{
    "status": true,
    "message": "Token matched",
    "data": [
        {
            "ID": 46031,
            "post_date": "2021-07-11 17:38:59",
            "post_modified": "2021-07-11 17:39:12"
        },
        {
            "ID": 46032,
            "post_date": "2021-07-11 18:25:25",
            "post_modified": "2021-07-11 18:25:49"
        },
    ]
}
                

QUERY PARAMETERS

Field Type Description
token String Get orders.

Get Order details




$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.spediscih24.it/get_orders?token=JzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikpva&order_id=46031',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: laravel_session=eyJpdiI6IlZ1RmNSemJoSmFrZHV4dFJNQjBkNVE9PSIsInZhbHVlIjoiYkE2T0tSbEtpb2xIVnFQWHE4dUJQc1ZHTlFXMW5rKzJsc3hvMXg4ckRKSzN1YWdRUWltdko5bVEyVzlYbWVuYmxtRDNNajNJWHlwcGJ6OHU4Y0VaQysrTVluTGVwZU1FLy9rZEw2cWNSTWh4QjF3ZnlXaXlJWE4zUFhNbEw4RWwiLCJtYWMiOiJhMWFiNWJjZGJmMDQ5NWE3ODhmODQxNzMwOTM1MjE1Mzc5MWE4YzllNjZmNDZjYjVhNzEzNjNlOGUxMjkwZjQzIiwidGFnIjoiIn0%3D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;





                

To get order details you need to make a GET call to the following url :
https://api.spediscih24.it/get_orders



Result example :

{
    "status": true,
    "message": "Token and order ID matched",
    "data": [
        {
            "id": null,
            "order_id": null,
            "sender_data": "{\"sender_name\":\"asa\",\"sender_email\":\"asa@gmail.com\",\"sender_phone\":\"1212121212\",\"sender_address\":\"asdas\",\"sender_city\":\"Malcesine\",\"sender_province\":\"VR\",\"sender_postalcode\":\"37018\",\"sender_country\":\"IT\"}",
            "destination_data": "{\"destination_name\":\"sas\",\"destination_email\":\"asassad@gmail.com\",\"destination_phone\":\"1212121212\",\"destination_address\":\"dsd\",\"destination_city\":\"Arco\",\"destination_province\":\"TN\",\"destination_postalcode\":\"38062\",\"destination_country\":\"IT\"}",
            "package_data": "{\"pack_weight\":\"2\",\"pack_width\":\"12\",\"pack_height\":\"12\",\"pack_length\":\"12\",\"pack_content\":\"asdsad\",\"pickup_start\":\"08:00\"}",
            "service_data": "{\"vector_name\":\"CROE\",\"vector_display\":\"CRONO ECONOMY\",\"supplier_cost\":\"3.76\"}",
            "service_provider": "easyparcel",
            "dispatch_success": null,
            "dispatch_error": null,
            "dispatched_at": null,
            "message": "Ordine creato correttamente con ID 46031 e stato 'incomplete'",
            "created_at": "2021-07-11 15:38:59",
            "waybill_data": null,
            "waybill_tracking": null,
            "waybill_pickup": null,
            "waybill_error": null,
            "times_downloaded": null
        }
    ]
}
                

QUERY PARAMETERS

Field Type Description
token String user token api key
order_id numeric order id

Get Order Tracking





$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.spediscih24.it/get_order_tracking?token=da979d2922c74d7851e6f0eff2270d73&tracking=5C4357H167437',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: laravel_session=eyJpdiI6IlZ1RmNSemJoSmFrZHV4dFJNQjBkNVE9PSIsInZhbHVlIjoiYkE2T0tSbEtpb2xIVnFQWHE4dUJQc1ZHTlFXMW5rKzJsc3hvMXg4ckRKSzN1YWdRUWltdko5bVEyVzlYbWVuYmxtRDNNajNJWHlwcGJ6OHU4Y0VaQysrTVluTGVwZU1FLy9rZEw2cWNSTWh4QjF3ZnlXaXlJWE4zUFhNbEw4RWwiLCJtYWMiOiJhMWFiNWJjZGJmMDQ5NWE3ODhmODQxNzMwOTM1MjE1Mzc5MWE4YzllNjZmNDZjYjVhNzEzNjNlOGUxMjkwZjQzIiwidGFnIjoiIn0%3D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;






                

To get order tracking you need to make a GET call to the following url :
https://api.spediscih24.it/get_order_tracking



Result example :

{
    "status": true,
    "message": "order is dispathed",
    "dispatched_at": "2021-08-07 11:57:00"
}
                

QUERY PARAMETERS

Field Type Description
token String user token api key
tracking String tracking ID of the order

Get Balance





$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://spediscih24.techplus.com.pk/get_balance?token=da979d2922c74d7851e6f0eff2270d73',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

                

To get user balance you need to make a GET call to the following url :
https://api.spediscih24.it/get_balance



Result example :

{
    "status": true,
    "message": "request success",
    "account_balance": 0
}
                

QUERY PARAMETERS

Field Type Description
token String user token api key

Get Balance

The Westeros API uses the following error codes: https://spediscih24.techplus.com.pk/account/balance

Field Type Discription
Token String the token goes to and verify users valid r not if valid then get the user detail. Otherwise token not match

Errors

The Westeros API uses the following error codes:

Field Type Discription
Token String the token goes to and verify users valid r not if valid then get the user detail. Otherwise token not match