Order Tracking API Documentation

AllCarriers

allCarriers

Return lists of all available carriers.


/carriers

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/order-tracking/carriers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AllCarriersApi;

import java.io.File;
import java.util.*;

public class AllCarriersApiExample {

    public static void main(String[] args) {
        
        AllCarriersApi apiInstance = new AllCarriersApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.allCarriers(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllCarriersApi#allCarriers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AllCarriersApi;

public class AllCarriersApiExample {

    public static void main(String[] args) {
        AllCarriersApi apiInstance = new AllCarriersApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.allCarriers(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllCarriersApi#allCarriers");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

AllCarriersApi *apiInstance = [[AllCarriersApi alloc] init];

[apiInstance allCarriersWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderTrackingApiDocumentation = require('order_tracking_api_documentation');

var api = new OrderTrackingApiDocumentation.AllCarriersApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.allCarriers(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class allCarriersExample
    {
        public void main()
        {
            
            var apiInstance = new AllCarriersApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200 result = apiInstance.allCarriers(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AllCarriersApi.allCarriers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AllCarriersApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->allCarriers($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AllCarriersApi->allCarriers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AllCarriersApi;

my $api_instance = WWW::SwaggerClient::AllCarriersApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->allCarriers(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllCarriersApi->allCarriers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AllCarriersApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.all_carriers(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllCarriersApi->allCarriers: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


RealtimeTracking

realtimeTracking

Get realtime tracking results of a single tracking


/trackings/realtime

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/order-tracking/trackings/realtime"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RealtimeTrackingApi;

import java.io.File;
import java.util.*;

public class RealtimeTrackingApiExample {

    public static void main(String[] args) {
        
        RealtimeTrackingApi apiInstance = new RealtimeTrackingApi();
        String apiecoKey = apiecoKey_example; // String | 
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.realtimeTracking(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RealtimeTrackingApi#realtimeTracking");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RealtimeTrackingApi;

public class RealtimeTrackingApiExample {

    public static void main(String[] args) {
        RealtimeTrackingApi apiInstance = new RealtimeTrackingApi();
        String apiecoKey = apiecoKey_example; // String | 
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.realtimeTracking(apiecoKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RealtimeTrackingApi#realtimeTracking");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
Body *body = ; // 

RealtimeTrackingApi *apiInstance = [[RealtimeTrackingApi alloc] init];

[apiInstance realtimeTrackingWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderTrackingApiDocumentation = require('order_tracking_api_documentation');

var api = new OrderTrackingApiDocumentation.RealtimeTrackingApi()

var apiecoKey = apiecoKey_example; // {String} 

var body = ; // {Body} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.realtimeTracking(apiecoKey, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class realtimeTrackingExample
    {
        public void main()
        {
            
            var apiInstance = new RealtimeTrackingApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var body = new Body(); // Body | 

            try
            {
                inline_response_200 result = apiInstance.realtimeTracking(apiecoKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RealtimeTrackingApi.realtimeTracking: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RealtimeTrackingApi();
$apiecoKey = apiecoKey_example; // String | 
$body = ; // Body | 

try {
    $result = $api_instance->realtimeTracking($apiecoKey, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RealtimeTrackingApi->realtimeTracking: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RealtimeTrackingApi;

my $api_instance = WWW::SwaggerClient::RealtimeTrackingApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->realtimeTracking(apiecoKey => $apiecoKey, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RealtimeTrackingApi->realtimeTracking: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.RealtimeTrackingApi()
apiecoKey = apiecoKey_example # String | 
body =  # Body | 

try: 
    api_response = api_instance.realtime_tracking(apiecoKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RealtimeTrackingApi->realtimeTracking: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Successful