+91 849 999 0501 , 849 999 0503   955 006 4974  

ReturnTrucks Rest API

Call At: +91 8019017925, +91 8019017919, +91 8019017909 Registration

REST API

Return Trucks Ecosystem

Companies can post their truck and load requirements through the open API interface used by Return Trucks, REST API. This allows for a seamless integration of the ERP system used by various companies with the Return Trucks platform.

What is REST API?

REST API is a set of functions that software developers can use to perform requests and receive responses through their HTTP protocols.   REST APIs are based on HTTP, which means they can be used by any programming language. These APIs can be tested with ease.

The most important consideration to be made when using a REST API is that the clients and servers should be independent of each other.  This way, both the client and the server can be coded in any language and improved upon in the future, in order to ensure continuity and further evolution.

 How Return Trucks Uses REST API

 Return Trucks uses REST API for a seamless integration of its platform with a client company’s ERP system. These REST APIs allow companies to read, write, and search for Returns Trucks Data.  The REST API can be integrated with Twitter through an OAuth type of authentication responses which are in the JSON format.  

Return Trucks Uses the Following REST APIs…


This is the Return Trucks User Login API which is a part of the Return Trucks REST APIs. Clients are given an auth token upon successful login. The auth token can then be used for accessing other API`s

    URL: http://api.returntrucks.com/trucksapi/login/format/json

    Input Request:

    "email"=>"999999999",

    "password":"xxxxxx"

     

     ( Token : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)

     

    Loggedin user will get Token for below services

    Example : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

     

    Content-type:application/json

    Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

     


The Search Trucks by location API takes name/ lat & language as an input. It then provides information about the available trucks from/to that location

    URL: http://api.returntrucks.com/trucksapi/trucksbylocation/format/json

    Input Request:

     

                if  'location_type': cords

                            'from_lat': 17.686815

                            'from_lng': 83.218483

                            'to_lat': 16.481112

                            'to_lng': 80.617958

               

                if  'location_type': place

                            'from_location': Visakhapatnam

                            'to_location': Vijayawada

     


The Search Loads by location API takes place name/ lat & language as inputs. It then provides information on the available loads from/to that location.

    URL: http://api.returntrucks.com/trucksapi/loadsbylocation/format/json

    Input Request:

     

                if  'location_type': cords

                            'from_lat': 17.686815

                            'from_lng': 83.218483

                            'to_lat': 16.481112

                            'to_lng': 80.617958

               

                if  'location_type': place

                            'from_location': Visakhapatnam

                            'to_location': Vijayawada

     


The Post Load API is used by the client company to post their Load into the Return Trucks Eco System.

    URL: http://api.returntrucks.com/trucksapi/load/format/json

    Input Request:

                'origin_place': Vijayawada,Andhra Pradesh,India

                'delivery_place': Visakhapatnam,Andhra Pradesh,India

                'material': 10

                'load_type': 2

                'deliverydate': 2016-08-22

                'load_capacity': 10

                'contact_person': demotest

                'contact_number': 45645687568

                'bid': 0

                'payment_type': Advance

                'expected_price': 1000

                'transit_time': 10

     


The Post Truck API is used by the client company to post their Truck into the Return Trucks Eco System.

    URL: http://api.returntrucks.com/trucksapi/truck/format/json


    input request:

    'origin_place': Vijayawada,Andhra Pradesh,India
    'delivery_place': Visakhapatnam,Andhra Pradesh,India
    'vehicle_number': Ap77XC999
    'truck_type': 94
    'available_date': 2016-08-22
    'truck_capacity': 10
    'contact_person': demotest
    'contact_number': 45645687568
    'expected_price': 1000


The Truck Status API provides information on the current status of the Truck.

    URL: http://api.returntrucks.com/trucksapi/truckstatus/format/json

    Input Request:

    user_id=12846

    truck_id=26145

    truck_status = 1


The Truck contact details API provided the contact details of the trucks which are interested and open to taking the client company’s Load.

    URL: http://api.returntrucks.com/trucksapi/rtdetails/format/json

    Input Request:

                "id" : 26145

                "type" : 1

               

     [ Note : type : 1->load , 2->truck

    id -> load id /truck id

    example:type=1 and  id=L16944 ]


The Load contact details API provides all the contact details of the Loads that are available.

    URL: http://api.returntrucks.com/trucksapi/rtdetails/format/json

    Input Request:

                "id" : 26145

                "type" : 1

               

     [ Note : type : 1->load , 2->truck

    id -> load id /truck id

    example:type=1 and  id=L16944 ]

 

© 2017 ReturnTrucks.in. All Rights Reserved.