Hotel.getPaymentMethods | Previo API

Hotel.getPaymentMethods

Returns the payment methods that are offered on a given date.

Parameters

Name Description
login Login name
password Password
hotId Hotel Id
term Term
currencies List of currencies

term

Returns payment methods in the given date range.

Enter dates in W3 date format. E.g. 2010-04-29.

<term> [1]  
 
<from> [1] Date from
<to> [1] Date to

 

Sample request

<request>
    <login>prihlasovaci_jmeno</login>
    <password>heslo</password>
    <hotId>2</hotId>
    <term>
       <from>2019-01-01</from>
       <to>2019-12-31</to>
    </term>
</request>

 

Output

<paymentMethods>  
 
<paymentMethod> [0..*] List of allowed payment methods
 
<payId> [1] Payment method type
<paymentSeason> [1..*] Payment season
 
<pasId> [1] Payment season Id
<from> [1] Valid from
<to> [1] Valid to
<cosIdSuccess> [1] Reservation status in which the reservation is saved
<cosIdFailure> [0..1] Reservation status in which the reservation is saved in case of unsuccessful payment 
<discount> [0..1] Discount that will be applied if this payment method is chosen
<advance> [0..1] List of prices based on guest category
 
<type> [1] Advance type ('per', 'night', 'abs')
<value> [1] Advance value
<expiration> [0..1] Due date for advance payment list (in days) - only for bank transfer

 

Payment methods

payId Description
1 Payment on the spot
2 Bank transfer
3 Payment card
8 Guarantee credit card

 

Sample answer

<?xml version="1.0" encoding="UTF-8"?>

<paymentMethods>
  <paymentMethod>
     <payId>1</payId>
     <paymentSeason>
        <pasId>4252</pasId>
        <from>2019-01-01</from>
        <to>2019-07-01</to>
        <cosIdSuccess>2</cosIdSuccess>
     </paymentSeason>
     <paymentSeason>
        <pasId>4244</pasId>
        <from>2019-07-01</from>
        <to>2020-01-01</to>
        <cosIdSuccess>1</cosIdSuccess>
     </paymentSeason>
  </paymentMethod>
  <paymentMethod>
     <payId>2</payId>
     <paymentSeason>
        <pasId>4252</pasId>
        <from>2019-01-01</from>
        <to>2019-07-01</to>
        <cosIdSuccess>6</cosIdSuccess>
        <advance>
           <type>per</type>
           <value>100</value>
           <expiration>3</expiration>
        </advance>
     </paymentSeason>
     <paymentSeason>
        <pasId>4244</pasId>
        <from>2019-07-01</from>
        <to>2020-01-01</to>
        <cosIdSuccess>1</cosIdSuccess>
        <advance>
           <type>per</type>
           <value>100</value>
           <expiration>3</expiration>
        </advance>
     </paymentSeason>
  </paymentMethod>
  <paymentMethod>
     <payId>3</payId>
     <paymentSeason>
        <pasId>4252</pasId>
        <from>2019-01-01</from>
        <to>2019-07-01</to>
        <cosIdSuccess>1</cosIdSuccess>
        <cosIdFailure>7</cosIdFailure>
        <discount>0</discount>
        <advance>
           <type>per</type>
           <value>100</value>
        </advance>
     </paymentSeason>
     <paymentSeason>
        <pasId>4244</pasId>
        <from>2019-07-01</from>
        <to>2020-01-01</to>
        <cosIdSuccess>1</cosIdSuccess>
        <cosIdFailure>1</cosIdFailure>
        <discount>0</discount>
        <advance>
           <type>per</type>
           <value>100</value>
        </advance>
     </paymentSeason>
  </paymentMethod>
  <paymentMethod>
     <payId>8</payId>
     <paymentSeason>
        <pasId>4244</pasId>
        <from>2019-07-01</from>
        <to>2020-01-01</to>
        <cosIdSuccess>2</cosIdSuccess>
     </paymentSeason>
  </paymentMethod>
</paymentMethods>