Bookings

Add Extra Charge

This API will post the extra charge to a particular single or multiple reservations. The API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json
NameData TypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
Request_Type*VARCHAR(100)Request TypeAddExtraCharge
Reservation->BookingId*VARCHAR(100)Reservation No.11-1  or 12
Reservation->FolioNoINT(20)Folio No.12
Reservation->ChargeId*INT(20)Charge Unique Id
(Click here to get ChargeId)
https://api.ezeetechnosys.com/#592
123400000000000001
Reservation->Amount*DECIMAL(19,4)Amount to pay100.00
Reservation->Qty*INT(20)Quantity1 or 2
Receipt->CommentVARCHAR(100)Comment is optionalExtra charge is added for room

Note: To get the chargeunkid of specific extra charge, use this api
API : Retrieve Extras


Request 

{
"RES_Request": {
"Request_Type": "AddExtraCharge",
"Authentication": {
"HotelCode": "1234",
"AuthCode": "xxxxxxxxxxxxxxxx"
},
"Reservation": [
{
"BookingId": "11-1",
"FolioNo": "", // Optional
"ChargeId": "123400000000000007",
"Amount": "70",
"Qty": "1",
"Comment": "extra charge is added"
},
{
"BookingId": "12",
"FolioNo": "302", // Optional
"ChargeId": "123400000000000007",
"Amount": "10",
"Qty": "5",
"Comment": "extra charge is added"
}
]
}
}

Response

Success

{
"Success": {
"SuccessMsg": "Extra charge is added successfully for booking 11-1"
},
"Errors": [
{
"ErrorCode": "0",
"ErrorMessage": "Success"
}
]
}

Success/Error:

{
"Success": {
"SuccessMsg": "Extra charge is added successfully for booking 11-1"
},
"Errors": [
{
"ErrorCode": "104",
"ErrorMessage": "Charge Id is missing for booking 12"
}
]
}

Error

{
"Errors": [
{
"ErrorCode": "104",
"ErrorMessage": "Charge Id is missing for booking 12"
}
]
}

Error Codes

Error CodeError Name
100Missing required parameters
500Error occurred during processing.
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
301Unauthorized Request. Please check hotel code and authentication code
302Unauthorized Request. Integration is not allowed
303Auth Code is inactive
201Unauthorized request.(Request Type) request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
103Booking ID is missing
104Payment Id  is missing for booking
105Currency Id is missing for booking
106Payment amount is missing or invalid payment amount for booking
108Error in folio.
109Maximum 10 bookings are allowed at a time.
110Payment ID not valid
114Currency is not valid for booking
115Amount is exceeded than folio balance for booking
116Invalid parameter for booking
113We don’t find this reservation in our system. So payment not processed for booking
117Reservation is void. So payment not processed for booking
118Reservation is past checked out. So payment not processed for booking
119Invalid folio no for booking

Finance

Retrieve Inwards Folio wise Payments

This API provides inwards payments (receipts data) that can be used in your financial accounts. The API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

NameData TypeDescriptionExample
hotel_code*INT(11)Unique Hotel codexxxx
auth_code*VARCHAR(300)Unique Authentication codexxxxxxxxxx
foliounkid*TEXTProvide foliounkid with comma separated8000000000000026123,8000000000000026123
requestfor*VARCHAR(100)Request TypeXERO_GET_RECEIPT_DATA_FOLIOUNKID

Request 

{
  "auth_code": "XXXXXXXXXXXXXXXXXXX",
  "hotel_code": "XXXX",
  "foliounkid" : "8000000000000026123,8000000000000026123",
  "requestfor": "XERO_GET_RECEIPT_DATA_FOLIOUNKID"
}

Response

NameData TypeDescription Example
statusStringResponse statusSuccess
data->typeStringResponse typeAdvance Deposit,
Received From Guest, Received From Cityledger
tranIdStringTransaction IdR946-22
tran_datetimeDateTransaction Date [Format: yyyy-mm-dd]2020-03-22
reference1DateReceipt No (For only Advance Deposit data)52
reference2DateGuest Name / Cityledger NameEliza
reference3StringReservation No (For only Advance Deposit, Received From Guest data)50
reference4StringReservation No  (For only Advance Deposit, Received From Guest data)50
reference5StringFolio No 
(For only Advance Deposit, Received From Guest data)
54
reference6StringBill No / Inv. No45
reference7StringBill To  (For only Advance Deposit, Received From Guest dataEliza
reference8StringArrival Date Time 
(For only Advance Deposit, Received From Guest data)
2020-03-24
reference9StringDeparture Date Time 
(For only Advance Deposit, Received From Guest data)
2020-03-28
reference10StringTravel Agent/ Business Source 
(For only Advance Deposit, Received From Guest data)
Apex Travels
reference11StringTravel Agent Voucher No 
(For only Advance Deposit, Received From Guest data)
reference13StringRoom Name 
(For only Advance Deposit, Received From Guest data)
108
reference14StringFolio Type / Settlement Type (CASH/CREDIT) 
(For only Advance Deposit, Received From Guest data)
CASH
reference15String
reference16String Not Applicable
reference17StringIdentity type of billing contact.If Billing contact is guest,Company tax ID of guest will be displayed and if Billing contact is company, it will be blankPassport
reference18StringIdentity number of billing contact.If Billing contact is a guest,the tax id of guest will be displayed and if Billing contact is company ,it will be blankT9305602
reference19StringEmail of billing contacttest@gmail.com
reference20StringAddress of billing contactNear railway station, Surat – 396380, Gujarat, India
reference21StringTelephone of billing contact0261242059
reference22StringAddress of billing contactNear railway station
reference23StringCity name of billing contactSurat
reference24StringState name of billing contactGujarat
reference25StringZip code396380
reference26StringCountry of billing contactIndia
reference27StringGSTIN Number
reference28IntegerContact Type Unique IdVENDOR/TRAVELAGENT
reference29IntegerFolio Unique Id1234500000000000123
detail->tran_typeStringTransaction Type (Credit/Debit)Cr/Dr
detail->detailIdIntegerDetail Id1234500000000000946
detail->reference_idinteger6
detail->reference_valueStringTransaction ModeAdvance,Payment,
Paid Out
detail->sub_ref1_idinteger1
detail->sub_ref1_valueString1
detail->sub_ref2_idinteger2
detail->sub_ref2_valueStringCity Ledger Contact Id, Payment Id
Guest Name
(For only Received From Guest in Credit transaction type data)
1234500000000000155
detail->sub_ref3_idinteger0
detail->sub_ref3_valueStringBusiness Source Id
(For only Received From Guest in Credit transaction type data)
0
detail->sub_ref4_idinteger0
detail->sub_ref4_valueStringRoom Id  (For only Received From Guest in Credit transaction type data)0
detail->sub_ref5_idinteger0
detail->sub_ref5_valueStringRoom Type Id  (For only Received From Guest in Credit transaction type data)0
detail->sub_ref6_idinteger0
detail->sub_ref6_valueStringFolio No  (For only Received From Guest in Credit transaction type data)0
detail->sub_ref7_idinteger0
detail->sub_ref7_valueStringBill To (For only Received From Guest in Credit transaction type data)0
detail->sub_ref8_idinteger0
detail->sub_ref8_valueString0
detail->amountDecimalTransaction Amount200
gross_amountDecimalGross Amount200
remarkStringComment of transaction

Success

{
    "status": "Success",
    "data": [
        {
            "type": "Advance Deposit",
            "data": [
                {
                    "tranId": "R946-22",
                    "tran_datetime": "2020-03-22",
                    "reference1": "52",
                    "reference2": "Eliza,
                    "reference3": "50",
                    "reference4": "50",
                    "reference5": "54",
                    "reference6": "45",
                    "reference7": "Eliza",
                    "reference8": "2020-03-24",
                    "reference9": "2020-03-28",
                    "reference10": "Apex Travels",
                    "reference11": "",
                    "reference13": "108",
                    "reference14": "Cash",
                    "reference15": "",
  "reference16": "",
  "reference17": "Company Tax ID",  
"reference18": "", 
 "reference19": "test@gmail.com", 
  "reference20": "Near railway station,surat-396380,gujarat, india", 
  "reference21": "026142059",
                    "detail": [
                        {
                            "tran_type": "Dr",
                            "detailId": "1234500000000000946",
                            "reference_id": 6,
                            "reference_value": "Payment",
                            "sub_ref1_id": 1,
                            "sub_ref1_value": 1,
                            "sub_ref2_id": 2,
                            "sub_ref2_value": "1234500000000000155",
                            "sub_ref3_id": 0,
                            "sub_ref3_value": 0,
                            "sub_ref4_id": 0,
                            "sub_ref4_value": 0,
                            "sub_ref5_id": 0,
                            "sub_ref5_value": 0,
                            "sub_ref6_id": 0,
                            "sub_ref6_value": 0,
                            "sub_ref7_id": 0,
                            "sub_ref7_value": 0,
                            "sub_ref8_id": 0,
                            "sub_ref8_value": 0,
                            "amount": "25000.0000"
                        },
                        {
                            "tran_type": "Cr",
                            "detailId": "1234500000000000946",
                            "reference_id": 13,
                            "reference_value": "Advance",
                            "sub_ref1_id": 1,
                            "sub_ref1_value": 1,
                            "sub_ref2_id": 0,
                            "sub_ref2_value": 0,
                            "sub_ref3_id": 0,
                            "sub_ref3_value": 0,
                            "sub_ref4_id": 0,
                            "sub_ref4_value": 0,
                            "sub_ref5_id": 0,
                            "sub_ref5_value": 0,
                            "sub_ref6_id": 0,
                            "sub_ref6_value": 0,
                            "sub_ref7_id": 0,
                            "sub_ref7_value": 0,
                            "sub_ref8_id": 0,
                            "sub_ref8_value": 0,
                            "amount": "25000.0000"
                        }
                    ],
                    "gross_amount": "25000.0000",
                    "remark": ""
                }
            ]
        },
        {
            "type": "Received From Guest",
            "data": [
                {
                    "tranId": "R355-21",
                    "tran_datetime": "2020-03-21",
                    "reference1": "39",
                    "reference2": "Loy",
                    "reference3": "42",
                    "reference4": "42",
                    "reference5": "45",
                    "reference6": "20",
                    "reference7": "Loy",
                    "reference8": "2020-03-19",
                    "reference9": "2020-03-21",
                    "reference10": "Apex Travels",
                    "reference11": "",
                    "reference13": "113",
                    "reference14": "Cash",
                    "reference15": "",
"reference16": "",
"reference17": "Company Tax ID",
"reference18": "",
"reference19": "test@gmail.com",
"reference20": "Near railway station, surat-396380,gujarat,india",
"reference21": "026142059",
"reference22": "Near railway station",
"reference23": "Surat",
"reference24": "Gujarat",
"reference25": "396380",
"reference26": "India",
"reference27": "",
"reference28": "VENDOR/TRAVELAGENT",
"reference29": "1234500000000000123",
                    "detail": [
                        {
                            "tran_type": "Dr",
                            "detailId": "1234500000000000355",
                            "reference_id": 6,
                            "reference_value": "Payment",
                            "sub_ref1_id": 1,
                            "sub_ref1_value": 1,
                            "sub_ref2_id": 2,
                            "sub_ref2_value": "1234500000000000155",
                            "sub_ref3_id": 0,
                            "sub_ref3_value": 0,
                            "sub_ref4_id": 0,
                            "sub_ref4_value": 0,
                            "sub_ref5_id": 0,
                            "sub_ref5_value": 0,
                            "sub_ref6_id": 0,
                            "sub_ref6_value": 0,
                            "sub_ref7_id": 0,
                            "sub_ref7_value": 0,
                            "sub_ref8_id": 0,
                            "sub_ref8_value": 0,
                            "amount": 8310
                        },
                        {
                            "tran_type": "Cr",
                            "detailId": "1234500000000000355",
                            "reference_id": 8,
                            "reference_value": "Guest Ledger",
                            "sub_ref1_id": 1,
                            "sub_ref1_value": 1,
                            "sub_ref2_id": 2,
                            "sub_ref2_value": "Loy",
                            "sub_ref3_id": 3,
                            "sub_ref3_value": "1234500000000000010",
                            "sub_ref4_id": 4,
                            "sub_ref4_value": "1234500000000000013",
                            "sub_ref5_id": 5,
                            "sub_ref5_value": "1234500000000000002",
                            "sub_ref6_id": 6,
                            "sub_ref6_value": "45",
                            "sub_ref7_id": 7,
                            "sub_ref7_value": "Loy",
                            "sub_ref8_id": 0,
                            "sub_ref8_value": 0,
                            "amount": 8310
                        }
                    ],
                    "gross_amount": 8310,
                    "remark": ""
                }
            ]
        },
        {
            "type": "Received From Cityledger",
            "data": [
                {
                    "tranId": "R363-21",
                    "tran_datetime": "2020-03-21",
                    "reference1": "42",
                    "reference2": "Apex Travels",
                    "reference3": "",
                    "reference4": "",
                    "reference5": "",
                    "reference6": "",
                    "reference7": "",
                    "reference8": "",
                    "reference9": "",
                    "reference10": "",
                    "reference11": "",
                    "reference13": "",
                    "reference14": "",
                    "reference15": "",
  "reference16": "",
  "reference17": "Company Tax ID",
"reference18": "",
  "reference19": "test@gmail.com",
 "reference20": "Near railway station,surat-396380,gujarat,india",
  "reference21": "0261242059",
"reference22": "Near railway station",
"reference23": "Surat",
"reference24": "Gujarat",
"reference25": "396380",
"reference26": "India",
"reference27": "",
"reference28": "VENDOR/TRAVELAGENT",
"reference29": "1234500000000000123",

                    "detail": [
                        {
                            "tran_type": "Dr",
                            "detailId": "1234500000000000363",
                            "reference_id": 6,
                            "reference_value": "Payment",
                            "sub_ref1_id": 1,
                            "sub_ref1_value": 1,
                            "sub_ref2_id": 2,
                            "sub_ref2_value": "1234500000000000155",
                            "sub_ref3_id": 0,
                            "sub_ref3_value": 0,
                            "sub_ref4_id": 0,
                            "sub_ref4_value": 0,
                            "sub_ref5_id": 0,
                            "sub_ref5_value": 0,
                            "sub_ref6_id": 0,
                            "sub_ref6_value": 0,
                            "sub_ref7_id": 0,
                            "sub_ref7_value": 0,
                            "sub_ref8_id": 0,
                            "sub_ref8_value": 0,
                            "amount": 200
                        },
                        {
                            "tran_type": "Cr",
                            "detailId": "1234500000000000363",
                            "reference_id": 10,
                            "reference_value": "Cityledger",
                            "sub_ref1_id": 1,
                            "sub_ref1_value": 1,
                            "sub_ref2_id": 2,
                            "sub_ref2_value": "1234500000000000020",
                            "sub_ref3_id": 0,
                            "sub_ref3_value": 0,
                            "sub_ref4_id": 0,
                            "sub_ref4_value": 0,
                            "sub_ref5_id": 0,
                            "sub_ref5_value": 0,
                            "sub_ref6_id": 0,
                            "sub_ref6_value": 0,
                            "sub_ref7_id": 0,
                            "sub_ref7_value": 0,
                            "sub_ref8_id": 0,
                            "sub_ref8_value": 0,
                            "amount": 200
                        }
                    ],
                    "gross_amount": 200,
                    "remark": ""
                }
            ]
        }
    ]
}

Error Codes

CodeMessage
AllFieldsAll fields are mandatory.
AuthKeyAuthentication Key Is Not Found.
ReqForInvalid Request Format.
HotelCodeHotel Code Is Not Found
ErrorSomething went wrong!
ErrorBad Request
304Database Error
202Unauthorized request. Hotel code is not active
301Unauthorized request. Request is not valid for this hotel code [Permission denied]
303Auth Code is inactive.

Finance

Retrieve Outwards Folio wise Payments

This API provides outwards payments that can be used in your financial accounts. The API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

NameData TypeDescriptionExample
hotel_code*INT(11)Unique Hotel codexxxx
auth_code*VARCHAR(300)Unique Authentication codexxxxxxxxxx
foliounkid*TEXTProvide foliounkid with comma separated8000000000000026198,8000000000000026199
requestfor*VARCHAR(100)Request TypeXERO_GET_PAYMENT_DATA_FOLIOUNKID

Request 

{
  "auth_code": "XXXXXXXXXXXXXXXXXXX",
  "hotel_code": "XXXX",
  "foliounkid" : "8000000000000026198,8000000000000026199",
  "requestfor": "XERO_GET_PAYMENT_DATA_FOLIOUNKID"
}

Response

NameData TypeDescription Example
statusStringResponse statusSuccess
data->typeStringResponse typeGeneral Expense, Advance Deposit Refund, Guest Refund, Cityledger Refund
tranIdStringTransaction IdP950-221
tran_datetimeDateTransaction Date [Format: yyyy-mm-dd]2020-03-22
reference1StringBill No / Inv. No (For only General Expenses data)
Receipt No (For only Advance Deposit Refund, Guest Refund, Cityledger Refund data)
12
reference2StringGuest Name (For only General Expense,Advance Deposit Refund, Guest Refund data)Johnson
reference3StringReservation No (For only  Advance Deposit Refund, Guest Refund data)
reference4StringReservation No (For only  Advance Deposit Refund, Guest Refund data)
reference5StringFolio No (For only  Advance Deposit Refund, Guest Refund data)
reference6StringBill No / Invoice No12
reference7StringBill To (For only General Expense,Advance Deposit Refund, Guest Refund data)Johnson
reference8StringArrival Date Time (For only Advance Deposit Refund, Guest Refund data)
reference9StringDeparture Date Time (For only Advance Deposit Refund, Guest Refund data)
reference10StringBusiness Source Id (For only Advance Deposit Refund, Guest Refund data)
reference11StringTravelAgent Voucher No (For only Advance Deposit Refund, Guest Refund data)
reference12StringMarket Code Id ( For only Advance Deposit Refund, Guest Refund data)
reference13StringRoom Name (For only Advance Deposit Refund, Guest Refund data)
reference14StringFolio Type / Settlement TypeCASH
reference15String
reference16StringNot Applicable
reference17StringIdentity type of billing contact. If Billing contact is guest,Company Tax ID of guest will be displayed and if Billing contact is company,it will be blankPassport
reference18StringIdentity number of billing contact. If Billing contact is a guest, the tax id of guest will be displayed and if Billing contact is company , it will be blankT9305602
reference19StringEmail of billing contacttest@gmail.com
reference20StringAddress of billing contactNear railway station surat 396380 gujarat india
reference21StringTelephone of billing contact0261242059
reference22StringAddress of billing contactNear railway station
reference23StringCity name of billing contactsurat
reference24StringState name of billing contactgujarat
reference25StringZip code of billing contact396380
reference26StringCountry name of billing contactindia
reference27StringGSTIN number of billing contact
reference28StringContact Type Unique IdVENDOR/TRAVELAGENT
reference29StringFolio Unique Id8000000000000026198
detail->tran_typeStringTransaction Type (Credit/Debit)Cr/Dr
detail->detailIdIntegerDetail Id1234500000000000951
detail->reference_idintegerReference Id6
detail->reference_valueStringTransaction ModeAdvance,Payment, Paid Out
detail->sub_reference1_idintegerSingle Ledger Id1
detail->sub_reference1_valueStringSingle Ledger Value1
detail->sub_reference2_idinteger2
detail->sub_reference2_valueStringExpense Type Id, Tax Id (For Only General Expensel )
City Ledger Id, Payment Id (All API) 
Guest Name (For Only Guest Refund in debit transaction type)
1234500000000000155
detail->sub_reference3_idinteger3
detail->sub_reference3_valueStringBusiness Source Id (For Only Guest Refund in debit transaction type)0
detail->sub_reference4_idinteger4
detail->sub_reference4_valueStringRoom Id (For Only Guest Refund in debit transaction type)0
detail->sub_reference5_idinteger5
detail->sub_reference5_valueStringRate Type Id (For Only Guest Refund in debit transaction type)0
detail->sub_reference6_idinteger6
detail->sub_reference6_valueStringFolio No (For Only Guest Refund in debit transaction type)0
detail->sub_reference7_idinteger7
detail->sub_reference7_valueStringBill To (For Only Guest Refund in debit transaction type)0
detail->sub_reference8_idinteger8
detail->sub_reference8_valueString0
detail->amountDecimalTransaction Amount1900.0000
detail->slabtaxunkidStringIF General Expense type found then add Slab Tax id1234500000000000013_1
detail->slabtaxStringIF General Expense type found then add Slab tax nameCGST
detail->slabStringIF General Expense type found then add Slab range1000-2499-12
gross_amountDecimalGross Amount0
amount_paidDecimalAmount Paid (For Only General Expense)2242
balanceDecimalAccount Balance (For Only General Expense)0
remarkStringComment of transaction

Success

{
"status": "Success",
"data": [
{
"type": "General Expense",
"data": [
{
"tranId": "P950-221",
"tran_datetime": "2020-03-22",
"reference1": "12",
"reference2": "Johnson",
"reference3": "",
"reference4": "",
"reference5": "",
"reference6": "12",
"reference7": "Johnson",
"reference8": "",
"reference9": "",
"reference10": "",
"reference11": "",
"reference12": "",
"reference13": "",
"reference14": "CASH",
"reference15": "",
"reference16": "",
"reference17": "Passport",
"reference18": "T9305602",
"reference19": "test@gmail.com",
"reference20": "Near railway station surat 396380 gujarat india",
"reference21": "0261242059",
"reference22": "Near railway station surat",
"reference23": "",
"reference24": "",
"reference25": "",
"reference26": "",
"reference27": null,
"reference28": "",
"reference29": "8000000000000026198",
"detail": [
{
"tran_type": "Cr",
"detailId": "1234500000000000951",
"reference_id": 6,
"reference_value": "Payment",
"sub_reference1_id": 1,
"sub_reference1_value": 1,
"sub_reference2_id": 2,
"sub_reference2_value": "1234500000000000155",
"sub_reference3_id": 0,
"sub_reference3_value": 0,
"sub_reference4_id": 0,
"sub_reference4_value": 0,
"sub_reference5_id": 0,
"sub_reference5_value": 0,
"sub_reference6_id": 0,
"sub_reference6_value": 0,
"sub_reference7_id": 0,
"sub_reference7_value": 0,
"sub_reference8_id": 0,
"sub_reference8_value": 0,
"amount": 1500,
"slabtaxunkid": "",
"slabtax": "",
"slab": ""
},
{
"tran_type": "Dr",
"detailId": "1234500000000000950",
"reference_id": 16,
"reference_value": "Paid Out",
"sub_reference1_id": 1,
"sub_reference1_value": 1,
"sub_reference2_id": 2,
"sub_reference2_value": "1234500000000000002",
"sub_reference3_id": 0,
"sub_reference3_value": 0,
"sub_reference4_id": 0,
"sub_reference4_value": 0,
"sub_reference5_id": 0,
"sub_reference5_value": 0,
"sub_reference6_id": 0,
"sub_reference6_value": 0,
"sub_reference7_id": 0,
"sub_reference7_value": 0,
"sub_reference8_id": 0,
"sub_reference8_value": 0,
"amount": "1500.0000",
"slabtaxunkid": "",
"slabtax": "",
"slab": ""
}
],
"gross_amount": 1500,
"amount_paid": 1500,
"balance": 0,
"remark": ""
}
]
},
{
"type": "Advance Deposit Refund",
"data": [
{
"tranId": "P949-221",
"tran_datetime": "2020-03-22 00:00:00",
"reference1": "53",
"reference2": "Eliya",
"reference3": "50",
"reference4": "50",
"reference5": "54",
"reference6": "45",
"reference7": "Mrs. Eliya",
"reference8": "2020-03-24",
"reference9": "2020-03-28",
"reference10": "Mark Tour and Travels",
"reference11": "",
"reference12": "",
"reference13": "108",
"reference14": "",
"reference15": "",
"reference16": "",
"reference17": "Company Tax ID",
"reference18": "",
"reference19": "test@gmail.com",
"reference20": "Near railway station surat 396380 gujarat india",
"reference21": "0261242059",
"reference22": "Near railway station surat",
"reference23": "",
"reference24": "",
"reference25": "",
"reference26": "",
"reference27": null,
"reference28": "",
"reference29": "8000000000000026198",
"detail": [
{
"tran_type": "Dr",
"detailId": "1234500000000000948",
"reference_id": 13,
"reference_value": "Advance",
"sub_reference1_id": 1,
"sub_reference1_value": 1,
"sub_reference2_id": 0,
"sub_reference2_value": 0,
"sub_reference3_id": 0,
"sub_reference3_value": 0,
"sub_reference4_id": 0,
"sub_reference4_value": 0,
"sub_reference5_id": 0,
"sub_reference5_value": 0,
"sub_reference6_id": 0,
"sub_reference6_value": 0,
"sub_reference7_id": 0,
"sub_reference7_value": 0,
"sub_reference8_id": 0,
"sub_reference8_value": 0,
"amount": 2640
},
{
"tran_type": "Cr",
"detailId": "1234500000000000948",
"reference_id": 6,
"reference_value": "Payment",
"sub_reference1_id": 1,
"sub_reference1_value": 1,
"sub_reference2_id": 2,
"sub_reference2_value": "1234500000000000155",
"sub_reference3_id": 0,
"sub_reference3_value": 0,
"sub_reference4_id": 0,
"sub_reference4_value": 0,
"sub_reference5_id": 0,
"sub_reference5_value": 0,
"sub_reference6_id": 0,
"sub_reference6_value": 0,
"sub_reference7_id": 0,
"sub_reference7_value": 0,
"sub_reference8_id": 0,
"sub_reference8_value": 0,
"amount": 2640
}
],
"gross_amount": 2640,
"remark": ""
}
]
},
{
"type": "Guest Refund",
"data": [
{
"tranId": "3",
"tran_datetime": "2020-06-06 12:10:00",
"reference1": "VOC-003",
"reference2": "Guest/Person Name",
"reference3": "BKN-13",
"reference4": "RN-13",
"reference5": "FN-13",
"reference6": "BL-13",
"reference7": "Bill to Name",
"reference8": "2020-06-06",
"reference9": "2020-06-07",
"reference10": "Business Source Name",
"reference11": "OTA Booking Voucher number",
"reference12": "Market Name",
"reference13": "103",
"reference14": "Cash",
"reference15": "Credit Number",
"reference16": "",
"reference17": "Passport",
"reference18": "T9305602",
"reference19": "test@gmail.com",
"reference20": "Near railway station,surat-396380,gujarat,india",
"reference21": "0261242059",
"reference22": "Near railway station surat",
"reference23": "",
"reference24": "",
"reference25": "",
"reference26": "",
"reference27": null,
"reference28": "",
"reference29": "8000000000000026198",
"detail": [
{
"tran_type": "Dr",
"detailId": "3-1",
"reference_id": "8",
"reference_value": "Guest Ledger",
"sub_reference1_id": "1",
"sub_reference1_value": "1",
"sub_reference2_id": "2",
"sub_reference2_value": "Guest Name",
"sub_reference3_id": "3",
"sub_reference3_value": "buss01",
"sub_reference4_id": "4",
"sub_reference4_value": "1234500000000000150",
"sub_reference5_id": "5",
"sub_reference5_value": "1234500000000000006",
"sub_reference6_id": "6",
"sub_reference6_value": "fn-001",
"sub_reference7_id": "7",
"sub_reference7_value": "Bill to Name",
"sub_reference8_id": "0",
"sub_reference8_value": "0",
"amount": "1780.000"
},
{
"tran_type": "Cr",
"detailId": "3-1",
"reference_id": "6",
"reference_value": "Payment",
"sub_reference1_id": "1",
"sub_reference1_value": "1",
"sub_reference2_id": "2",
"sub_reference2_value": "1234500000000000156",
"sub_reference3_id": "0",
"sub_reference3_value": "0",
"sub_reference4_id": "0",
"sub_reference4_value": "0",
"sub_reference5_id": "0",
"sub_reference5_value": "0",
"sub_reference6_id": "0",
"sub_reference6_value": "0",
"sub_reference7_id": "0",
"sub_reference7_value": "0",
"sub_reference8_id": "0",
"sub_reference8_value": "0",
"amount": "1780.000"
}
],
"gross_amount": "1780.0000",
"remark": ""
}
]
},
{
"type": "Cityledger Refund",
"data": [
{
"tranId": "4",
"tran_datetime": "2020-06-06 12:10:00",
"reference1": "VOC-004",
"reference2": "",
"reference3": "",
"reference4": "",
"reference5": "",
"reference6": "",
"reference7": "",
"reference8": "",
"reference9": "",
"reference10": "",
"reference11": "",
"reference12": "",
"reference13": "",
"reference14": "",
"reference15": "",
"reference16": "",
"reference17": "",
"reference18": "",
"reference19": "",
"reference20": "",
"reference21": "",
"reference22": "Near railway station surat",
"reference23": "",
"reference24": "",
"reference25": "",
"reference26": "",
"reference27": null,
"reference28": "",
"reference29": "8000000000000026198",
"detail": [
{
"tran_type": "Dr",
"detailId": "4-1",
"reference_id": "10",
"reference_value": "City Ledger",
"sub_reference1_id": "1",
"sub_reference1_value": "1",
"sub_reference2_id": "2",
"sub_reference2_value": "1234500000000000156",
"sub_reference3_id": "0",
"sub_reference3_value": "0",
"sub_reference4_id": "0",
"sub_reference4_value": "0",
"sub_reference5_id": "0",
"sub_reference5_value": "0",
"sub_reference6_id": "0",
"sub_reference6_value": "0",
"sub_reference7_id": "0",
"sub_reference7_value": "0",
"sub_reference8_id": "0",
"sub_reference8_value": "0",
"amount": "2801.000"
},
{
"tran_type": "Cr",
"detailId": "4-1",
"reference_id": "6",
"reference_value": "Payment",
"sub_reference1_id": "1",
"sub_reference1_value": "1",
"sub_reference2_id": "2",
"sub_reference2_value": "1234500000000000158",
"sub_reference3_id": "0",
"sub_reference3_value": "0",
"sub_reference4_id": "0",
"sub_reference4_value": "0",
"sub_reference5_id": "0",
"sub_reference5_value": "0",
"sub_reference6_id": "0",
"sub_reference6_value": "0",
"sub_reference7_id": "0",
"sub_reference7_value": "0",
"sub_reference8_id": "0",
"sub_reference8_value": "0",
"amount": "2801.000"
}
],
"gross_amount": "2801.0000",
"remark": ""
}
]
}
]
}

Error Codes

CodeMessage
AllFieldsAll fields are mandatory.
AuthKeyAuthentication Key Is Not Found.
ReqForInvalid Request Format.
HotelCodeHotel Code Is Not Found
ErrorSomething went wrong!
ErrorBad Request
304Database Error
202Unauthorized request. Hotel code is not active
301Unauthorized request. Request is not valid for this hotel code [Permission denied]
303Auth Code is inactive.

F & B

Purchases [F&B]

This API provides detailed information about all the financial heads mapped in the Food and Beverage (FnB) domain. It supports various combinations of financial data types, allowing for the relevant combination based on specific requirements.

End Point URL

https://api.ipos247.com/v1/fas/get_purchase_data

Header

Content-Type: application/json
Authorization: Basic {Base64 encoded username:password}

Parameter

NameData TypeDescription
hotel_code*StringThe unique code identifying the hotel for which financial data is requested.
fromdate*DateThe starting date of the financial data retrieval period (in YYYY-MM-DD format).
todate*DateThe ending date of the financial data retrieval period (in YYYY-MM-DD format).
outletIntegerThe unique identifier for the outlet store

Request

{
    "hotel_code": "XXXX",
    "fromdate": "2024-05-28",
    "todate": "2024-06-27",
    "outlet" : "1000000000000001"
 }
 

Response

Field NameData TypeDescription
statusStringIndicates the success or failure of the API response.
statusCodeIntegerHTTP status code for the API response.
dataArrayContains the main records of financial transactions. Each entry represents a transaction.

Information about data array

Field NameData TypeDescription
record_idStringUnique identifier for the financial record.
record_dateDateThe date of the financial transaction (in YYYY-MM-DD format).
reference1StringPrimary reference ID for the transaction.
reference2StringSecondary reference ID for the transaction. Can be null.
reference3StringName of the store or location. Can be blank.
reference4 to reference22StringAdditional references. Data may be null or blank depending on the record.
gross_amountDecimalTotal gross amount of the transaction.
flat_discountDecimalAny flat discount applied to the transaction. Can be blank.
total_taxDecimalTotal tax applied to the transaction. Will be provided even if 0.
total_amountDecimalTotal amount after adding taxes and discounts.
amount_paidDecimalAmount paid for the transaction. Can be blank.
amount_postedDecimalAmount posted for the transaction. Can be null or blank.
balanceDecimalRemaining balance for the transaction. Will be provided even if 0.
narrationStringAdditional narration or comments for the transaction. Can be blank.
detailsArrayDetailed breakdown of the transaction, including items and taxes. Empty or null data fields will be provided for individual details if applicable.

Information about details array

Field NameData TypeDescription
detail_record_idStringUnique identifier for the detail record.
parent_record_idStringParent record ID, applicable for related records. Can be null.
reference_idIntegerID representing the reference type (e.g., POS Sales, Taxes).
reference_nameStringName of the reference, such as transaction type.
tran_typeStringTransaction type (e.g., Credit, Debit).
charge_nameStringName of the charge or item in the transaction.
amountDecimalAmount related to the detail record.
remarkStringAdditional remarks for the detail record. Can be blank or null.
taxperDecimalTax percentage for the item or charge. Can be null or blank.
sub_ref1_value to sub_ref8_valueVariousSub-references for the detailed record. These values may vary and can be null.

Success

{
    "status": "success",
    "statusCode": 200,
    "data": [
        {
            "record_id": "1000000000014622",
            "record_date": "2024-06-20",
            "reference1": "GRN-25",
            "reference2": "1021",
            "reference3": "1000000000000001",
            "reference4": "Store Name",
            "reference5": "Account 1",
            "reference6": "",
            "reference7": "",
            "reference8": "",
            "reference9": "",
            "reference10": "",
            "reference11": "",
            "reference12": "",
            "reference13": "",
            "reference14": "",
            "reference15": "Goods Received Note",
            "gross_amount": "3591.7150",
            "flat_discount": "0.0000",
            "total_tax": "1.2656",
            "add_less_amount": "0.0000",
            "total_amount": "3592.9806",
            "remark": "",
            "narration": "",
            "details": [
                {
                    "detail_reference_id": "1000000000116025",
                    "tran_type": "Dr",
                    "reference_id": 17,
                    "reference_name": "Purchase",
                    "sub_ref1_id": 1,
                    "sub_ref1_value": 1,
                    "sub_ref2_id": 2,
                    "sub_ref2_value": "1000000000000001",
                    "sub_ref3_id": 0,
                    "sub_ref3_value": 0,
                    "sub_ref4_id": 4,
                    "sub_ref4_value": "1000000000000030",
                    "sub_ref5_id": 5,
                    "sub_ref5_value": 0,
                    "amount": "5.7150",
                    "item_code": "",
                    "charge_name": "Item 1",
                    "hsn_code": "",
                    "rate_per_unit": "5.7150",
                    "qty": "1.0000",
                    "unit_unkid": "1000000000000015"
                },
                {
                    "detail_reference_id": "1000000000116026",
                    "tran_type": "Dr",
                    "reference_id": 17,
                    "reference_name": "Purchase",
                    "sub_ref1_id": 1,
                    "sub_ref1_value": 1,
                    "sub_ref2_id": 2,
                    "sub_ref2_value": "1000000000000001",
                    "sub_ref3_id": 0,
                    "sub_ref3_value": 0,
                    "sub_ref4_id": 4,
                    "sub_ref4_value": "1000000000000018",
                    "sub_ref5_id": 5,
                    "sub_ref5_value": 0,
                    "amount": "1500.0000",
                    "item_code": "",
                    "charge_name": "Item 2",
                    "hsn_code": "",
                    "rate_per_unit": "1500.0000",
                    "qty": "1.0000",
                    "unit_unkid": "1000000000000013"
                }
            ]
        }
    ]
}

Error

{
    "status": "warning",
    "statusCode": 400,
    "message": "Please Enter Valid Outlet Name"
}

F & B

Sales [F&B]

This API provides detailed information about all the financial heads mapped in the Food and Beverage (FnB) domain. It supports various combinations of financial data types, allowing for the relevant combination based on specific requirements.

End Point URL

https://api.ipos247.com/v1/fas/get_sales_data

Header

Content-Type: application/json
Authorization: Basic {Base64 encoded username:password}

Parameter

NameData TypeDescription
hotel_code*StringThe unique code identifying the hotel for which financial data is requested.
fromdate*DateThe starting date of the financial data retrieval period (in YYYY-MM-DD format).
todate*DateThe ending date of the financial data retrieval period (in YYYY-MM-DD format).
exclude_roompostingIntegerFlag to exclude room posting details from the data [0 = Include (default), 1 = Exclude].
exclude_nochargeIntegerFlag to exclude no-charge details from the data [0 = Include (default), 1 = Exclude].

Request

{
    "hotel_code": "XXXX",
    "fromdate": "2024-05-16",
    "todate": "2024-05-16",
    "exclude_roomposting": "0",
    "exclude_nocharge": "0"
}

Response

Field NameData TypeDescription
statusStringIndicates the success or failure of the API response.
statusCodeIntegerHTTP status code for the API response.
dataArrayContains the main records of financial transactions. Each entry represents a transaction.

Information about data array

Field NameData TypeDescription
record_idStringUnique identifier for the financial record.
record_dateDateThe date of the financial transaction (in YYYY-MM-DD format).
reference1StringPrimary reference ID for the transaction.
reference2StringSecondary reference ID for the transaction. Can be null.
reference3StringName of the store or location. Can be blank.
reference4 to reference22StringAdditional references. Data may be null or blank depending on the record.
gross_amountDecimalTotal gross amount of the transaction.
flat_discountDecimalAny flat discount applied to the transaction. Can be blank.
total_taxDecimalTotal tax applied to the transaction. Will be provided even if 0.
total_amountDecimalTotal amount after adding taxes and discounts.
amount_paidDecimalAmount paid for the transaction. Can be blank.
amount_postedDecimalAmount posted for the transaction. Can be null or blank.
balanceDecimalRemaining balance for the transaction. Will be provided even if 0.
narrationStringAdditional narration or comments for the transaction. Can be blank.
detailsArrayDetailed breakdown of the transaction, including items and taxes. Empty or null data fields will be provided for individual details if applicable.

Information about details array

Field NameData TypeDescription
detail_record_idStringUnique identifier for the detail record.
parent_record_idStringParent record ID, applicable for related records. Can be null.
reference_idIntegerID representing the reference type (e.g., POS Sales, Taxes).
reference_nameStringName of the reference, such as transaction type.
tran_typeStringTransaction type (e.g., Credit, Debit).
charge_nameStringName of the charge or item in the transaction.
amountDecimalAmount related to the detail record.
remarkStringAdditional remarks for the detail record. Can be blank or null.
taxperDecimalTax percentage for the item or charge. Can be null or blank.
sub_ref1_value to sub_ref8_valueVariousSub-references for the detailed record. These values may vary and can be null.

Success

{
    "status": "success",
    "statusCode": 200,
    "data": [
        {
            "record_id": "1000000000013299",
            "record_date": "2024-05-16",
            "reference1": "REC-4041",
            "reference2": "1000000000000014",
            "reference3": "McDonald's- vesu",
            "reference4": null,
            "reference5": null,
            "reference6": "1715852000",
            "reference7": "",
            "reference8": "",
            "reference9": "0",
            "reference10": "0",
            "reference11": "",
            "reference12": "",
            "reference13": "",
            "reference14": "",
            "reference15": "",
            "reference16": "",
            "reference17": "",
            "reference18": "john",
            "reference19": "",
            "reference20": "",
            "reference21": "Take Away",
            "reference22": "",
            "gross_amount": "200.0000",
            "flat_discount": "0.0000",
            "total_tax": "10.0000",
            "add_less_amount": "0.0000",
            "total_amount": "210.0000",
            "amount_paid": "0.0000",
            "amount_posted": "0.0000",
            "balance": "210.0000",
            "narration": "",
            "details": [
                {
                    "detail_record_id": "1000000000109878",
                    "reference_id": 1,
                    "reference_name": "POS Sales",
                    "tran_type": "Cr",
                    "item_code": "",
                    "charge_name": "Test2",
                    "hsn_code": "",
                    "quantity": "1.000000000000",
                    "sub_ref1_id": 1,
                    "sub_ref1_value": 1,
                    "sub_ref2_id": 2,
                    "sub_ref2_value": 0,
                    "sub_ref3_id": 3,
                    "sub_ref3_value": 0,
                    "sub_ref4_id": 4,
                    "sub_ref4_value": "1000000000000001",
                    "sub_ref5_id": 5,
                    "sub_ref5_value": 0,
                    "sub_ref6_id": 6,
                    "sub_ref6_value": "1000000000000001 + ",
                    "sub_ref7_id": 7,
                    "sub_ref7_value": "1000000000000605",
                    "sub_ref8_id": 0,
                    "sub_ref8_value": 0,
                    "amount": "100.0000",
                    "remark": ""
                },
                {
                    "detail_record_id": "1000000000109879",
                    "parent_record_id": "1000000000109878",
                    "reference_id": 3,
                    "reference_name": "Taxes",
                    "tran_type": "Cr",
                    "sub_ref1_id": 1,
                    "sub_ref1_value": 1,
                    "sub_ref2_id": 2,
                    "sub_ref2_value": "1000000000000002",
                    "sub_ref3_id": 3,
                    "sub_ref3_value": "2.5000",
                    "sub_ref4_id": 0,
                    "sub_ref4_value": 0,
                    "sub_ref5_id": 0,
                    "sub_ref5_value": 0,
                    "sub_ref6_id": 0,
                    "sub_ref6_value": 0,
                    "sub_ref7_id": 0,
                    "sub_ref7_value": 0,
                    "sub_ref8_id": 0,
                    "sub_ref8_value": 0,
                    "amount": "2.5000",
                    "taxper": "2.5000",
                    "remark": ""
                },
                {
                    "detail_record_id": "1000000000109880",
                    "parent_record_id": "1000000000109878",
                    "reference_id": 3,
                    "reference_name": "Taxes",
                    "tran_type": "Cr",
                    "sub_ref1_id": 1,
                    "sub_ref1_value": 1,
                    "sub_ref2_id": 2,
                    "sub_ref2_value": "1000000000000001",
                    "sub_ref3_id": 3,
                    "sub_ref3_value": "2.5000",
                    "sub_ref4_id": 0,
                    "sub_ref4_value": 0,
                    "sub_ref5_id": 0,
                    "sub_ref5_value": 0,
                    "sub_ref6_id": 0,
                    "sub_ref6_value": 0,
                    "sub_ref7_id": 0,
                    "sub_ref7_value": 0,
                    "sub_ref8_id": 0,
                    "sub_ref8_value": 0,
                    "amount": "2.5000",
                    "taxper": "2.5000",
                    "remark": ""
                }
            ]
        }
    ]
}

Error

{
    "status": "warning",
    "statusCode": 400,
    "message": "Please Enter Valid Outlet Name"
}

F & B

Financial Accounts [F&B]

This API provides detailed information about all the financial heads mapped in the Food and Beverage (FnB) domain. It supports various combinations of financial data types, allowing for the relevant combination based on specific requirements.

End Point URL

https://api.ipos247.com/v1/fas/get_config_data

Header

Content-Type: application/json
Authorization: Basic {Base64 encoded username:password}

Parameter

NameData TypeDescription
hotel_code*INTThe unique identifier for the hotel. This is essential for retrieving relevant data.

Request

{
    "hotel_code": "your_hotel_code", // Required
}

Response

NameData TypeDescription
statusStringIndicates the status of the response.
statusCodeIntegerHTTP status code for the response.
dataArrayList of details related to financial accounts.
headeridStringUnique identifier for the header.
headerStringName of the financial account header.
descriptiontypeunkidStringUnique identifier for the description type.
descriptiontypeStringType of the description for the financial account.
descriptionunkidStringUnique identifier for the specific description.
descriptionStringDetailed description related to the financial account and type.

Reference Data

Header IDHeaderDescription Type Unk IDDescription Type
1POS REVENUE1Single Ledger
1POS REVENUE2Menu Group
1POS REVENUE3Menu Subgroup
1POS REVENUE4Menu Item Category
1POS REVENUE6Session and Category Wise
2EXTRA CHARGE1Single Ledger
2EXTRA CHARGE2Extra Charge
3TAX1Single Ledger
3TAX2Tax
4TIPS1Single Ledger
5ADJUSTMENT1Single Ledger
6DISCOUNT1Single Ledger
6DISCOUNT2Discount
7ROOM POSTING1Single Ledger
7ROOM POSTING2Room Posting
8PAYMENT1Single Ledger
8PAYMENT2Payment Type
9CITY LEDGER1Single Ledger
9CITY LEDGER2City Ledger
17PURCHASE1Single Ledger
17PURCHASE2Store Item Category
17PURCHASE4Store Item
18STORE TAX1Single Ledger
18STORE TAX2Store Tax
19VENDOR1Single Ledger
19VENDOR2Vendor
20VENDOR – ACCOUNT1Single Ledger
20VENDOR – ACCOUNT2Vendor – Account
21ADJUSTMENT1Single Ledger
22ADD/LESS1Single Ledger
23DISCOUNT1Single Ledger
31VENDOR PAYMENT1Single Ledger
31VENDOR PAYMENT2Vendor Payment Type
32EXTRA CHARGE1Single Ledger
32EXTRA CHARGE2Extra Charge

Success

{
    "status": "success",
    "statusCode": 200,
    "data": [
        {
            "headerid": "1",
            "header": "POS REVENUE",
            "descriptiontypeunkid": "1",
            "descriptiontype": "Single Ledger",
            "descriptionunkid": "1",
            "description": "Revenue"
        },
        {
            "headerid": "1",
            "header": "POS REVENUE",
            "descriptiontypeunkid": "2",
            "descriptiontype": "Menu Group",
            "descriptionunkid": "1081060000000001",
            "description": "7Seven-Menu"
        }
    ]
}

Error

{
    "status": "warning",
    "statusCode": 400,
    "message": "Please Enter Valid Outlet Name"
}

F & B

Outlet and Store Information [F&B]

This API retrieves the list of available outlet stores, along with their unique identifiers and names.

End Point URL

https://api.ipos247.com/v1/fas/get_store_name

Header

Content-Type: application/json
Authorization: Basic {Base64 encoded username:password}

Parameter

NameData TypeDescription
hotel_code*StringThe unique code identifying the hotel for which financial data is requested.

Request

{
    "hotel_code": "XXXX",
}

Response

Field NameData TypeDescription
statusStringIndicates the success or failure of the API response.
statusCodeIntegerHTTP status code for the API response.
dataArrayContains the main records of financial transactions. Each entry represents a transaction.
idStringUnique identifier for the outlet store.
nameStringName of the outlet store.

Success

{
    "status": "success",
    "statusCode": 200,
    "data": [
        {
            "id": "1000000000000001",
            "name": "MainOutlet"
        },
        {
            "id": "1000000000000002",
            "name": "Store Factory"
        }
    ]
}

Error

{
    "status": "warning",
    "statusCode": 400,
    "message": "Please Enter Valid Outlet Name"
}

F & B

Orders

This API endpoint retrieves order information from a specific hotel or outlet in the Optimus system.

End Point URL

https://api.ipos247.com/v1/service/orders

Header

Content-Type: application/json
Authorization: Basic {Base64 encoded username:password}

Parameter

NameData TypeDescription
hotel_code*INTThe unique identifier for the hotel. This is essential for retrieving relevant data.
form_date*DateSpecifies the starting date for the query. The date format should be in YYYY-MM-DD
to_dateDateSpecifies the ending date for the query. If omitted, the system will consider the form_date as the only date for data retrieval. The date format should also be YYYY-MM-DD.
outlet_nameStringThe name of the specific outlet within the hotel. If not provided, the query will retrieve data from all outlets.

Request

{
    "hotel_code": "your_hotel_code", // Required
    "form_date": "2024-08-22", // Required (format: YYYY-MM-DD)
    "to_date": "2024-08-22", // Optional (format: YYYY-MM-DD)
    "outlet_name": "MainOutlet" // Optional
}

Response

NameData TypeDescription
statusStringStatus of the request, indicating whether it was successful.
statusCodeIntegerHTTP status code indicating the result of the request.
dataArrayAn array of order objects, each containing detailed information about individual orders.
outletNameStringThe name of the outlet where the order was placed.
orderNumberStringA unique identifier for the order.
receiptNumberStringThe receipt number associated with the order.
orderTypeStringType of order (e.g., Dine In, Takeaway, Delivery).
orderDateTimeDate TimeDate and time when the order was placed.
businessSourceStringSource of the business (may be empty or provided depending on configuration).
guestNameStringName of the guest, if available.
guestCountIntegerNumber of guests associated with the order.
employeeNameStringName of the employee who handled the order.
sessionNameStringName of the session in which the order was placed (can be empty).
totalItemsAmountFloatTotal amount for the items ordered, before discounts, taxes, and surcharges.
totalDiscountAmountFloatTotal discount applied to the order.
totalTaxAmountFloatTotal tax applied to the order.
totalTipsAmountFloatTotal amount of tips added to the order.
totalSurchargesAmountFloatTotal surcharges applied to the order.
totalRoundOffAmountFloatAny rounding-off adjustments made to the total amount.
totalPaymentAmountFloatTotal amount paid for the order.
netSalesAmountFloatThe net sales amount after applying discounts but before taxes and other charges.
grossSalesAmountFloatThe gross sales amount before any discounts or adjustments.
remarkStringAny additional remarks related to the order.
orderPaymentsArrayAn array of payment objects detailing how the order was paid.
orderPayments.amountFloatThe amount paid using a specific payment method.
orderPayments.typeStringThe payment type (e.g., Bank, Cash, Credit Card).
orderPayments.methodStringThe specific payment method used (e.g., Visa, MasterCard, PayPal).

Success

{
    "status": "success",
    "statusCode": 200,
    "data": [
        {
            "outletName": "MainOutlet",
            "orderNumber": "1",
            "receiptNumber": "9696",
            "orderType": "Dine In",
            "orderDateTime": "2024-08-22 11:51:13",
            "businessSource": "",
            "guestName": "",
            "guestCount": "1",
            "employeeName": "Analyn",
            "sessionName": "",
            "totalItemsAmount": "75.9905",
            "totalDiscountAmount": "15.8000",
            "totalTaxAmount": "3.0095",
            "totalTipsAmount": "16.8000",
            "totalSurchargesAmount": "0.0000",
            "totalRoundOffAmount": "0.0000",
            "totalPaymentAmount": "80.0000",
            "netSalesAmount": "60.1905",
            "grossSalesAmount": "75.9905",
            "remark": "",
            "orderPayments": [
                {
                    "amount": "80.0000",
                    "type": "Bank",
                    "method": "Visa"
                }
            ]
        },
        {
            "outletName": "MainOutlet",
            "orderNumber": "2",
            "receiptNumber": "9698",
            "orderType": "Dine In",
            "orderDateTime": "2024-08-22 12:06:55",
            "businessSource": "",
            "guestName": "",
            "guestCount": "2",
            "employeeName": "Manager",
            "sessionName": "",
            "totalItemsAmount": "167.3714",
            "totalDiscountAmount": "34.8000",
            "totalTaxAmount": "6.6286",
            "totalTipsAmount": "0.0000",
            "totalSurchargesAmount": "0.0000",
            "totalRoundOffAmount": "0.0000",
            "totalPaymentAmount": "139.2000",
            "netSalesAmount": "132.5714",
            "grossSalesAmount": "167.3714",
            "remark": "",
            "orderPayments": [
                {
                    "amount": "139.2000",
                    "type": "Bank",
                    "method": "Visa"
                }
            ]
        }
    ]
}

Error

{
    "status": "warning",
    "statusCode": 400,
    "message": "Please Enter Valid Outlet Name"
}

F & B

Menu

This API retrieves the menu information for a specific hotel based on the provided hotel code, including outlets, categories, subcategories, and items

End Point URL

https://api.ipos247.com/v1/service/menu  

Header

Content-Type: application/json
Authorization: Basic {Base64 encoded username:password}

Parameter

NameData TypeDescription
hotel_code *INTThe unique identifier for the hotel. This is essential for retrieving relevant data.
outlet_nameStringThe name of the specific outlet within the hotel. If not provided, the query will retrieve data from all outlets.

Request

{
    "hotel_code": "XXXX", // Required
    "outlet_name": "MainOutlet" // Optional
}

Response

NameData TypeDescription
statusStringStatus of the request, indicating whether it was successful.
statusCodeIntegerHTTP status code indicating the result of the request.
dataObjectContains all data related to outlets, categories, subcategories, and items.
outletsArrayContains the list of outlets available in the hotel.
outlets.ref_idIntegerReference ID of the outlet.
outlets.outlet_nameStringName of the outlet.
categoriesArrayContains the list of categories with names and reference IDs.
categories.ref_idIntegerReference ID of the category.
categories.category_nameStringName of the category.
subcategoriesArrayContains the list of subcategories with names and reference IDs.
subcategories.ref_idIntegerReference ID of the subcategory.
subcategories.subcategory_nameStringName of the subcategory.
itemsArrayContains the list of items with details like name, code, and price.
items.item_nameStringName of the item.
items.item_codeStringCode of the item.
items.food_typeStringVEG, NONVEG, EGG
items.unit_priceitems. descriptionPrice of the item.
items.category_ref_idArray of StringsList of reference IDs corresponding to the categories.
items.subcategory_ref_idArray of StringsList of reference IDs corresponding to the subcategories.
items.outlet_ref_idArray of StringsList of reference IDs corresponding to the outlets.
items.descriptionStringDescription of the item (if any).

Success

{
    "status": "success",
    "statusCode": 200,
    "data": {
        "outlets": [
            {
                "outlet_name": "MainOutlet",
                "ref_id": "10000000001"
            }
        ],
        "categories": [
            {
                "category_name": "Hot Drinks",
                "ref_id": "10000000001"
            },
            {
                "category_name": "Cold Drinks",
                "ref_id": "10000000002"
            },
            {
                "category_name": "Fresh Juice",
                "ref_id": "10000000003"
            },
            {
                "category_name": "Soft Drinks",
                "ref_id": "10000000004"
            }
        ],
        "subcategories": [
            {
                "subcategory_name": "Classic",
                "ref_id": "10000000001"
            },
            {
                "subcategory_name": "Coffee",
                "ref_id": "10000000002"
            },
            {
                "subcategory_name": "Tea",
                "ref_id": "10000000003"
            },
            {
                "subcategory_name": "Other Drinks",
                "ref_id": "10000000004"
            }
        ],
        "items": [
            {
                "item_name": "Blueberry",
                "Item Code": "376",
                "Unit Price": "75.2381",
                "category_ref_id": [
                    "10000000001"
                ],
                "subcategory_ref_id": [
                    "10000000001"
                ],
                "outlet_ref_id": [
                    "10000000001"
                ],
                "description": ""
            },
            {
                "item_name": "Double Apple",
                "Item Code": "377",
                "Unit Price": "75.2381",
                "category_ref_id": [
                    "10000000001"
                ],
                "subcategory_ref_id": [
                    "10000000001"
                ],
                "outlet_ref_id": [
                    "10000000001"
                ],
                "description": ""
            }
        ]
    }
}

Error

{
    "status": "warning",
    "statusCode": 400,
    "message": "Please Enter Valid Outlet Name"
}

Bookings

Retrieve Transaction Details

This API helps you to fetch booking details for specific transaction unique ID based on Room No, Guest, Identity No, Guest Email, Guest Mobile No, Guest Registration No. The API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

NameData TypeDescriptionExample
Request_Type*VARCHAR(100)Request TypeGetTransactionDetails
TranunkId*VARCHAR(100)Transaction Id single/multiple (comma separated)xxxxx0000000000400
RoomNoVARCHAR(500)Room No (It is Optional)101
GuestVARCHAR(100)Guest Name (It is Optional)test
IdentityNoVARCHAR(255)Identity No (It is Optional)ASD43543
GuestEmailVARCHAR(255)Guest Email (It is Optional)abc@gmail.com
GuestMobileNoVARCHAR(255)Guest Mobile No (It is Optional)XXXXXXXXXX
GuestRegistrationNoVARCHAR(255)Guest Registration No (It is Optional)XXXXXX
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx

Request 

{           
      "RES_Request": {
            "Request_Type": "GetTransactionDetails,"
.           "TranunkId": "xxxxx0000000000400",
            "RoomNo": "101",
            "Guest": "Joy T. Mnewy",          
            "IdentityNo": "ASD43543",              
            "GuestEmail": "XXXXXX@gmail.com",              
            "GuestMobileNo": "XXXXXXXXXX",  
            "GuestRegistrationNo": "XXXXXX", 
            "Authentication": {
                 "HotelCode": "XXXX",
                 "AuthCode": "XXXXXXXXXXXXXXXXXXX"
           } 
      }
}
 

Response

NameData TypeDescriptionExample
LocationIdINT(11)Hotel codexxxx
UniqueIDVARCHAR(255)Unique Booking id/ Reservation No10125, 86436, B4525 etc
BookedByVARCHAR(255)Information regarding Booked byBooking.com etc
Salutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,RegistrationNo.VARCHAR(255)Here * denotes guest information like Salutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,RegistrationNo.shown in JSON response below.
SourceVARCHAR(1000)Booking generated sourceBooking.com etc
PaymentMethodVARCHAR(255)Payment Mode selected by guestCash, Credit, CityLedger etc
IsChannelBookingINT(1)Is booking comes from channel [0 or 1]1 : Booking from the channel.0: Booking not from the channel.0 or 1
BookingTran. SubBookingIdVARCHAR(255)Sub booking Id138
BookingTran. TransactionIdINT(20)Booking Transaction ID112500000000000163
BookingTran. StatusVARCHAR(100)Booking StatusNew or Modify or Cancel.
BookingTran.IsConfirmedINT(1)Booking Confirmation Flag. [1 or 0]1 : Confirmed0 : Not Confirmed1 or 0.
BookingTran.CurrentStatusVARCHAR(100)Booking Current StatusArrived, Checked Out, Cancel, Void, etc
BookingTran.VoucherNoVARCHAR(255)Booking Voucher No10203049/8512
BookingTran. PackageCodeINT(20)Package Code112500000000000001
BookingTran. PackageNameVARCHAR(1000)Package NameEuropean Plan etc
BookingTran. RateplanCodeINT(20)Unique RatePlan Code112500000000000006
BookingTran. RateplanNameSTRING(1000)RatePlan NameGrand Sea View Junior Suite
BookingTran. RoomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran. RoomTypeNameSTRING(1000)RoomType NameGarden View Studio Room
BookingTran.RoomIDINT(20)Unique RoomID112500000000000001
BookingTran. RoomNameSTRING(1000)Room Name101
BookingTran. StartDATECheck-in date[Format : yyyy-mm-dd]2017-12-25
BookingTran. EndDATECheck-out date [Format : yyyy-mm-dd]2017-12-27
BookingTran.TotalRateDECIMAL(19,4)Rate on room in amount1500.43
BookingTran.TotalDiscountDECIMAL(19,4)Discount on room in amount500
BookingTran. TotalExtraChargeDECIMAL(19,4)Extra charges in amount(if any)300
BookingTran.*Here * denotes guest informations like Salutation, FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth, WeddingAnniversary, Nationality, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,RegistrationNo,IdentityType, IdentityNo, ExpiryDate.
BookingTran. TransportationModeVARCHAR(100)Mode of transportationBus, car etc
BookingTran. VehicleVARCHAR(255)Detail of vehicle
BookingTran. PickupDateDATEPickup date[Format : yyyy-mm-dd]2017-12-25 etc
BookingTran. PickupTimeTIMEPickup time
BookingTran. SourceVARCHAR(1000)Booking generated sourceBooking.com
BookingTran. CommentVARCHAR(1000)Additional Information or comment.
BookingTran. AffiliateNameVARCHAR(1000)Booking Affiliate Name
BookingTran.AffiliateCodeVARCHAR(1000)Booking Affiliate Code
BookingTran.*Here * denotes Credit Card Informations like CCLink, CCNo, CCType, CardHolderName, CCExpiryDate,CCLink in encoded with base64_encode.
BookingTran.RentalInfo.RoomIDINT(20)Unique RoomID112500000000000001
BookingTran.RentalInfo. RoomNameSTRING(1000)Room Name101
BookingTran.RentalInfo.EffectiveDateDATETIMEBooking details for particular effective date2017-12-25 etc
BookingTran.RentalInfo.PackageCodeINT(20)Package code112500000000000001
BookingTran.RentalInfo.PackageNameVARCHAR(1000)Package NameEuropean Plan
BookingTran.RentalInfo.RoomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran.RentalInfo.RoomTypeNameSTRING(1000)RoomType NameGrand Sea View Junior Suite
BookingTran.RentalInfo.AdultINT(11)No. of Adults2,3,4 etc
BookingTran. RentalInfo.ChildINT(11)No. of Child2,3,4 etc
BookingTran. RentalInfo.RentDECIMAL(19,4)Room rental amount1500.43
BookingTran. RentalInfo.DiscountDECIMAL(19,4)Discount on rental room in amount500
BookingTran.Sharer.*Here * denotes Sharer informations like Salutation, FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth, WeddingAnniversary, Nationality, Address, City, State, Country, Nationality,Zip Code, Phone, Mobile, Fax, Email,RegistrationNo,IdentityTypeID, IdentityNo, ExpiryDate.
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

{
  "Reservations": {
    "Reservation": [
      {
        "BookingTran": [
          {
            "SubBookingId": "11241254",
            "TransactionId": "112400000000001902",
            "Createdatetime": "2019-09-04 11:40:30",
            "Modifydatetime": "2019-09-04 11:40:30",
            "Status": "New",
            "IsConfirmed": "1",
            "CurrentStatus": "Arrived",
            "VoucherNo": "single1276/1",
            "PackageCode": "112400000000000001",
            "PackageName": "European Plan",
            "RateplanCode": "112400000000000001",
            "RateplanName": "Sea View Deluxe Room",
            "RoomTypeCode": "112400000000000001",
            "RoomTypeName": "Sea View Deluxe Room",
            "RoomID": "112400000000000001",           
            "RoomName": "101",
            "Start": "2019-09-26",
            "End": "2019-09-28",
            "ArrivalTime": "12:00:00",
            "DepartureTime": "11:00:00",
            "CurrencyCode": "USD",
            "TotalAmountAfterTax": "976.00",
            "TotalAmountBeforeTax": "800.00",
            "TotalTax": "176.00",
            "TotalDiscount": "0.00",
            "TotalExtraCharge": "0.00",
            "TotalPayment": "0.00",
            "TACommision": "0.00",
            "Salutation": "Ms.",
            "FirstName": "Test",
            "LastName": "One",
            "Gender": "Female",
            "DateOfBirth": "",
            "SpouseDateOfBirth": "",
            "WeddingAnniversary": "",
            "Address": "",
            "City": " Brockway",
            "State": "CA",
            "Country": "USA",
            "Nationality": "Malta",
            "Zipcode": "95730",
            "Phone": "",
            "Mobile": "3534",
            "Fax": "564564",
            "Email": "LarryLForney@rhyta.com",
            “RegistrationNo” : "", 
            "IdentityType": "Pan card",
            "IdentityNo": "12345667765",
            "ExpiryDate": "",
            "TransportationMode": "",
            "Vehicle": "car",
            "PickupDate": "",
            "PickupTime": "",
            "Source": "BookingEye",
            "Comment": "",
            "AffiliateName": "",
            "AffiliateCode": "",
            "CCLink": "",
            "CCNo": "",
            "CCType": "",
            "CCExpiryDate": "",
            "CardHoldersName": "",
            "TaxDeatil": [
              {
                "TaxCode": "AA",
                "TaxName": "VAT @ 12%",
                "TaxAmount": "96.0000"
              },
              {
                "TaxCode": "LT",
                "TaxName": "Luxury @ 10%",
                "TaxAmount": "80.0000"
              }
            ],
            "RentalInfo": [
              {
                "RoomID": "112400000000000001",   
                "RoomName": "101",
                "EffectiveDate": "2019-09-26",
                "PackageCode": "112400000000000001",
                "PackageName": "European Plan",
                "RoomTypeCode": "112400000000000001",
                "RoomTypeName": "Sea View Deluxe Room",
                "Adult": "4",
                "Child": "2",
                "RentPreTax": "550.00",
                "Rent": "671.00",
                "Discount": "0.00"
              },
              {
                 "RoomID": "112400000000000001",   
                 "RoomName": "101",
                "EffectiveDate": "2019-09-27",
                "PackageCode": "112400000000000001",
                "PackageName": "European Plan",
                "RoomTypeCode": "112400000000000001",
                "RoomTypeName": "Sea View Deluxe Room",
                "Adult": "4",
                "Child": "2",
                "RentPreTax": "250.00",
                "Rent": "305.00",
                "Discount": "0.00"
              }
            ],
        "Sharer": [               
               {
                "Salutation": "Ms.",
                "FirstName": "Test",
                "LastName": "One",
                "Gender": "Female",
                "DateOfBirth": "",
                "SpouseDateOfBirth": "",
                "WeddingAnniversary": "",
                "Address": "",
                "City": " Brockway",
                "State": "CA",
                "Country": "USA",
                "Nationality": "Malta",
                "Zipcode": "95730",
                "Phone": "",
                "Mobile": "3534",
                "Fax": "564564",
                "Email": "LarryLForney@rhyta.com",
                "RegistrationNo" : "",  
                "IdentityTypeID": "894300000000000003",
                "IdentityNo": "12345667765",
                "ExpiryDate": "",
              },
              {
                "Salutation": "Ms.",
                "FirstName": "Test",
                "LastName": "One",
                "Gender": "Female",
                "DateOfBirth": "",
                "SpouseDateOfBirth": "",
                "WeddingAnniversary": "",
                "Address": "",
                "City": " Brockway",
                "State": "CA",
                "Country": "USA",
                "Nationality": "Malta",
                "Zipcode": "95730",
                "Phone": "",
                "Mobile": "3534",
                "Fax": "564564",
                "Email": "LarryLForney@rhyta.com",
                "Registration No" : "",  
                "IdentityTypeID": "894300000000000003",
                "IdentityNo": "12345667765",
                "ExpiryDate": "",
              }
            ] 
          }
        ],
        "LocationId": "1124",
        "UniqueID": "11241254",
        "BookedBy": "BookingEye",
        "Salutation": "Ms.",
        "FirstName": "Larry",
        "LastName": "Forney",
        "Gender": "Female",
        "Address": "",
        "City": "Brockway",
        "State": "CA",
        "Country": "USA",
        "Zipcode": "95730",
        "Phone": "",
        "Mobile": "3534",
        "Fax": "564564",
        "Email": "LarryLForney@rhyta.com",
        "Source": "BookingEye",
        "PaymentMethod": "Cash",
        "IsChannelBooking": "1"
      }
    ]
  }
}

Error Codes

Error CodeError Name
100Missing required parameters.
101Hotel Code is missing
102Authentication Code is missing
201Unauthorized request. (Request Type) the request is not valid for this hotel code OR OpenAPI platform is deactive
202Unauthorized request. Hotel code is not active
203Missing Parameter OR Invalid Parameter: TranunkId
301Unauthorized Request. Please check hotel code and authentication code
303Auth Code is inactive.
500Error occurred during processing
502Request Type is missing
503No Reservation Found.

Click here to Register