Info
Welcome to the generated API reference. Get Postman Collection
general
Authorize a client to access the user's account.
Example request:
curl "http://localhost/v1/oauth/token" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/oauth/token",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST v1/oauth/token
Parameters
grant_type
=> password
client_id
client_secret
username
password
Display a listing of the treaty statuses
Example request:
curl "http://localhost/v1/treaty-statuses" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/treaty-statuses",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
"SET",
"SIGNED",
"CUSTOMER_SETTLEMENT",
"AGENCY_SETTLEMENT",
"FULL_SETTLEMENT",
"CLOSED",
"CANCEL",
"CONFIRMED",
"EDIT_REQUEST"
]
HTTP Request
GET v1/treaty-statuses
HEAD v1/treaty-statuses
Display a listing of the statuses
Example request:
curl "http://localhost/v1/statuses" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/statuses",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"701": "PENDING",
"702": "CONFIRMED",
"703": "REJECTED"
}
HTTP Request
GET v1/statuses
HEAD v1/statuses
Display a listing of the service types
Example request:
curl "http://localhost/v1/service-types" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/service-types",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"601": "TOUR",
"602": "VISA",
"603": "TOURPACK",
"604": "TRANSPORT",
"605": "HOTEL",
"606": "SERVICE",
"607": "CUSTOM",
"608": "REFUND",
"609": "PICKUP"
}
HTTP Request
GET v1/service-types
HEAD v1/service-types
Display a listing of the payment methods
Example request:
curl "http://localhost/v1/payment-methods" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/payment-methods",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"901": "CASH",
"902": "ACCOUNT",
"903": "CHECK",
"904": "POS",
"905": "SAHAB_CART",
"906": "IP_GATEWAY",
"908": "CREDIT",
"907": "OTHERS_METHODS"
}
HTTP Request
GET v1/payment-methods
HEAD v1/payment-methods
get specified ticket.
Example request:
curl "http://localhost/v1/treaties/{treaty}/ticket" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/treaties/{treaty}/ticket",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"length": 1069,
"type": "application\/pdf",
"content": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL01lZGlhQm94IFswIDAgNTk1LjI4MCA4NDEuODkwXQovVHJpbUJveCBbMC4wMDAgMC4wMDAgNTk1LjI4MCA4NDEuODkwXQovUmVzb3VyY2VzIDIgMCBSCi9Hcm91cCA8PCAvVHlwZSAvR3JvdXAgL1MgL1RyYW5zcGFyZW5jeSAvQ1MgL0RldmljZVJHQiA+PiAKL0NvbnRlbnRzIDQgMCBSPj4KZW5kb2JqCjQgMCBvYmoKPDwvRmlsdGVyIC9GbGF0ZURlY29kZSAvTGVuZ3RoIDI3Pj4Kc3RyZWFtCnicUzBS8OIy0DM1M1co53IKUXAN4QIAI4YDwQplbmRzdHJlYW0KZW5kb2JqCjEgMCBvYmoKPDwvVHlwZSAvUGFnZXMKL0tpZHMgWzMgMCBSIF0KL0NvdW50IDEKL01lZGlhQm94IFswIDAgNTk1LjI4MCA4NDEuODkwXQo+PgplbmRvYmoKMiAwIG9iago8PC9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIgL0ltYWdlQyAvSW1hZ2VJXQovRm9udCA8PAo+Pgo+PgplbmRvYmoKNSAwIG9iago8PAovUHJvZHVjZXIgKP7\/AG0AUABEAEYAIAA1AC4ANykKL0NyZWF0aW9uRGF0ZSAoMjAxNjA5MjQxMDA3MzgrMDEnMDAnKQovTW9kRGF0ZSAoMjAxNjA5MjQxMDA3MzgrMDEnMDAnKQo+PgplbmRvYmoKNiAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKL09wZW5BY3Rpb24gWzMgMCBSIC9GaXRdCi9QYWdlTGF5b3V0IC9Ud29Db2x1bW5SaWdodAovVmlld2VyUHJlZmVyZW5jZXM8PAovRGlyZWN0aW9uIC9SMkwKL0R1cGxleCAvRHVwbGV4RmxpcExvbmdFZGdlCj4+Cj4+CmVuZG9iagp4cmVmCjAgNwowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAzMTkgMDAwMDAgbiAKMDAwMDAwMDQwOCAwMDAwMCBuIAowMDAwMDAwMDE1IDAwMDAwIG4gCjAwMDAwMDAyMjMgMDAwMDAgbiAKMDAwMDAwMDQ4NiAwMDAwMCBuIAowMDAwMDAwNjA5IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgNwovUm9vdCA2IDAgUgovSW5mbyA1IDAgUgovSUQgWzwwNzQzYzlhNDg5ODMzMzk4MTliODg2ZDAxNzEyYTYzMj4gPDA3NDNjOWE0ODk4MzMzOTgxOWI4ODZkMDE3MTJhNjMyPl0KPj4Kc3RhcnR4cmVmCjc3OQolJUVPRg=="
}
HTTP Request
GET v1/treaties/{treaty}/ticket
HEAD v1/treaties/{treaty}/ticket
get specified treaty receipt.
Example request:
curl "http://localhost/v1/treaties/{treaty}/receipt" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/treaties/{treaty}/receipt",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET v1/treaties/{treaty}/receipt
HEAD v1/treaties/{treaty}/receipt
get specified hotel voucher.
Example request:
curl "http://localhost/v1/treaties/{treaty}/hotel" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/treaties/{treaty}/hotel",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET v1/treaties/{treaty}/hotel
HEAD v1/treaties/{treaty}/hotel
Display a listing of the person.
Example request:
curl "http://localhost/v1/persons" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/persons",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET v1/persons
HEAD v1/persons
Display a listing of the treaty.
Example request:
curl "http://localhost/v1/treaties" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/treaties",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET v1/treaties
HEAD v1/treaties
Display a listing of the payment.
Example request:
curl "http://localhost/v1/payments" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/payments",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET v1/payments
HEAD v1/payments
Display a listing of the activity.
Example request:
curl "http://localhost/v1/activities" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/v1/activities",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET v1/activities
HEAD v1/activities