Returns the list of available vouchers.

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, // Voucher id 
		"priority":INTEGER, // Voucher priority
		"name":STRING, // Voucher name
		"description":STRING, // Voucher short description
		"code_count":INTEGER, // Number of times the code has been applied
		"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 is a special offer 
		"package":BOOLEAN, 
		"req_only":BOOLEAN, 
		"last_flag":BOOLEAN, 
		"active":BOOLEAN 
	}
]
	

JSON Response Example