Hotel.addPayment | Previo API

Hotel.addPayment

Inserts a new item into cash payments.

Parameters

Name Description
login Login name
password Password
hotId Hotel Id
payment Items to be added

 

payment

Payment items to be inserted.

<payment> [1]  
 
<issued> [0..1] Date of issue of the payment (optional)
<payId> [1] Payment method ID
<curId> [1] Currency ID
<price> [1] The price of this payment
<cptId> [1] Transaction type ID
<number> [0..1] Payment number (optional)
<invId> [0..1] Document number (optional)
<description> [0..1] Payment description (optional)

Sample request

<request>
   	<login>login</login>
        <password>password</password>
       	<hotId>hotelId</hotId>
    	<payment>
    	    <issued>2017-08-18T14:25:15</issued>
            <payId>4</payId>
            <curId>1</curId>
            <price>50</price>
            <cptId>3</cptId>
            <number>2506</number>
            <invId>112391</invId>
            <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis hendrerit ornare sem quis dapibus.</description>
        </payment>
</request>

 

Output

Root element - payment

<payment> [1] If the operation is successful, displays the inserted payment.
 
 
<cdpId> [1] Payment ID
<number> [0..1] Payment number
<price> [1] The price of the payment
<issued> [0..1] Date of issue of the payment
<description>[0..1] Payment description
<payId> [1] Payment method ID
<curId> [1] Currency ID
<cashBookStatus>[1] Current cash register status
<cptId> [1] Transaction type ID
<invId> [0..1] Document number

 

Sample answer

<payment>
    <cdpId>2075106</cdpId>
    <number>1280</number>
    <payId>4</payId>
    <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis hendrerit ornare sem quis dapibus.</description>
    <issued>2017-08-18T14:25:15+02:00</issued>
    <price>-50</price>
    <curId>1</curId>
    <cashBookStatus>100234848.1799</cashBookStatus>
    <invId>112391</invId>
    <cptId>3</cptId>
</payment>

 

Payment methods

payId Description
2 Bank transfer
3 Payment card
4 Cash
5 Voucher or meal voucher

 

Transaction type

cptId Description
1 Payment of hotel bills
2 Cash subsidy 
3 Withdrawal from the cash register
4 Transfer between cash registers