Skip to content

Vouchers Get

Brad Ploeger edited this page Apr 3, 2019 · 1 revision

Services \ Vouchers \ Get

Purpose

Load an existing voucher by Voucher Code

Basic Usage:

$rezdyApi->vouchers->get($voucherCode);

Required Parameters

  • string: $voucherCode

Optional Parameters

  • none

Returns

Throws

Code Example

use Rezdy\RezdyAPI;

// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');

$voucherCode = "8512-1521";

// Send the request to the API
$response = $rezdyApi->vouchers->get($voucherCode);

// View the response
echo $response;

Clone this wiki locally