Post Charge To Room

This API allows you to post charges on a folio. This is basically you take food in the restaurant and ask to do Room Post as you are staying in the same hotel, so you wish to pay finally on checkout. The API can return data in XML formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/xml

Parameter

NameData TypeDescriptionExample
auth *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
oprn *VARCHAR(150)Use Keyword “chargepost”
room *VARCHAR(50)Room Name1401 A
folio *VARCHAR(50)Folio NoGF1120
table *VARCHAR(50)Table Nochargepost
outlet *VARCHAR(50)It is should be an Outlet name.OT
charge *VARCHAR(150)“Restaurant Charge” should be come.Breakfast
postingdate *DATEIt is a charge posting date.2020-07-02
trandate *DATEA date of charge posting to PMS.2020-07-02
amount *DECIMAL(10,2)The charging amount of Posting. It must be tax exclusive amount.7.57
tax *DECIMAL(10,2)It should be Tax amount, if tax applicable. Can take multiple2.00
gross_amount *DECIMAL(10,2)The charging amount of Posting. It must be tax inclusive amount.5.57
voucherno *VARCHAR(50)It should be receipt no.POS234
remarkVARCHAR(200)It should be remarks from POS.Outlet : OT,POS User : Admin
posuser *VARCHAR(50)POS user who does Posting to PMS.Admin

Request 

<request>
<auth>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</auth>
<oprn>chargepost</oprn>
<room>101</room>
<folio>8</folio>
<table>chargepost</table>
<outlet>OT</outlet>
<charge>Breakfast</charge>
<postingdate>2020-05-15</postingdate>
<trandate>2020-05-15</trandate>  
<amount>100</amount>
<tax>2.00</tax>
<gross_amount>5.57</gross_amount>
<voucherno>POS895</voucherno>
<remark>Outlet : OT,POS User : Admin</remark>
<posuser>Admin</posuser>
</request>

Response

NameData TypeDescription Example
statusStringStatus value will be providedValues: ok, errorok
msgStringMessage result will be providedValues: success or error messagesuccess
hotelnameStringName of HotelHotel
hotelcodeIntegerID of Roomxxxx

Success

<?xml version='1.0' standalone='yes'?>
<response>
    <status>ok</status>
    <msg>added in queue</msg>
    <requestid>2805</requestid>
</response>

Error

<?xml version='1.0' standalone='yes'?>
<response>
    <status>error</status>
    <msg>Invalid Authentication</msg>
</response>

Error Codes

ErrorsDescription
Hotel Code In-ActiveThe Property has been deactivated
API Authkey is deactivatedThe Authcode/Key has been deactivated
Invalid AuthenticationInvalid data
Bad RequestInvalid Request Parameter
Invalid API Request. Don’t have this API accessInvalid Request Method
You are not allowed to post charges to room. Reason: POS2PMS account is not setup at PMS end.
You are not allowed to post charges to room. Reason: Folio not found in PMS.
You are not allowed to post charges to the room. Reason: Credit Card details is not available on the booking.
You are not allowed to post charges to room. Reason: Credit limit set on folio says credit balance is less than posting amount.
You are not allowed to post charges to room. Reason: Credit limit set on folio says your credit limit for posting charges is over.
You are not allowed to post charges to room. Reason : Credit limit set on folio says your daily credit limit for posting charges is over.
Tax Mapping with PMS and POS are not in Sync

Click here to Register