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, // Total codes count (at most 1000 codes are listed in voucher_codes)
	"id":INTEGER, // Bundle id 
	"voucher_codes": [
		{
			"code":STRING,
			"usages":INTEGER,
			"locked":BOOLEAN,
			"active":BOOLEAN,
			"value":MONEY, // Empty if not defined
			"expiration":ISO 8601, // Empty if not defined
			"currency":ISO 4217 // Empty if not defined
		}
	]
}
	

JSON Response Example