1. Introduction

Last modified by Giorgi Mdivnishvili on 2024/02/26 15:43

Rustar Tourism integration services Ver 1.01 (Draft)

Rustar API uses rest services for data exchange. The services on Rustar side are written in .NET and can use Rest endpoints. Although the services are written in .NET, the services can be integrated with any systems that support Rest, including but not limited to JAVA, PHP, Python and others.

URL for accessing Rest services is https://restapi.rustaronline.com/v1.01/api/

In order to use the services, agent must receive following credentials:

agentid – Unique username that is bound to agents account in Rustar

agentpassword – Password for the agentid

To obtain agentid anda gentpassword for accessing the services the company must send request to [email protected]

For development purposes the following credentials can be used:

URL- https://restapi.rustaronline.com/v1.01/api/

agentid – test.test

agentpassword – TestP@ssw0rd

All methods return following JSON object

{
 "Code": "00",
 "Message": "",
 "Timestamp": "2016-06-27T17:42:25.6292336+04:00",
 "Version": 1.01,
"ResponseID":"b512a117-6745-493d-9fa4-828d79c0df1d"
 "Data": [
   /**/
  ]
}

Where

Code: CHAR(2) parameter. “00” in case of success. In case of failure other than “00” is returned

Message: string parameter. “” in case of success. In case of failure the description of the problem/error

Timestamp: datetime parameter. The date and time of the returned message

Version: string parameter. Version of the API

ResponseID: GUID parameter. Unique GUID of the response message

Data: The array of the objects, depending on the method that was called