Returns the list of available voucher bundles.

Table of Contents
  1. URL Endpoint
  2. JSON Response Schema
  3. JSON Response Example

URL Endpoint

/voucher

Warning

This method is only accessible using a Hotelier API account.

JSON Response Schema

[
	{
		"id":INTEGER, // Bundle id 
		"priority":INTEGER, // Priority
		"name":STRING, // Name
		"description":STRING, // A short description
		"code_count":INTEGER, // Number of voucher codes in the bundle
		"code_limit":INTEGER, // Maximum number of times a code can been applied (empty if not defined)
		"date_from":ISO 8601, // Voucher is valid from this date
		"date_to":ISO 8601, // Voucher is valid until this date
		"special_offer":BOOLEAN,  // Is true if voucher unlocks a special offer 
		"package":BOOLEAN, 
		"req_only":BOOLEAN, 
		"last_flag":BOOLEAN, 
		"active":BOOLEAN 
	}
]
	

JSON Response Example

[
  {
    "id": 90866,
    "priority": 1,
    "name": "Demo Best Offer",
    "description": "Book 10 days and save 5% off your reservation",
    "code_count": 0,
    "code_limit": "",
    "date_from": "2024-03-22",
    "date_to": "2024-03-25",
    "special_offer": true,
    "package": false,
    "req_only": true,
    "last_flag": false,
    "active": true
  },
  {
    "id": 91237,
    "priority": 1,
    "name": "Weekends offer",
    "description": "Book your weekend with -5%",
    "code_count": 0,
    "code_limit": "",
    "date_from": "",
    "date_to": "",
    "special_offer": true,
    "package": false,
    "req_only": false,
    "last_flag": false,
    "active": true
  }
]