Returns a list of voucher codes and the total voucher code count.

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

Note

A maximum of 1000 voucher codes may be returned by this method.

URL Endpoint

/voucher/{bundle_id}

Warning

This method is only accessible using a Hotelier API account.

JSON Response Schema

[
	{
		"count":INTEGER, // Codes count 
		"id":INTEGER, // Bundle id 
		"voucher_codes": [
			"code":STRING,
			"usages":INTEGER,
			"locked":BOOLEAN,
			"active":BOOLEAN,
			"value":MONEY // Empty if not defined
		]
	}
]
	

JSON Response Example