Syntax
getVoucher( code )
Returns details about a voucher code.
Access rights
Read access or full access required.
Arguments
code – the voucher code that the buyer enters on the order form
Return data
Array
(
[coupon] => Array
(
[first_rate] => 0.00
[other_rates] => 0.00
[id] => 2477
[code] => test
[valid_until] =>
[expires_at] =>
[product_ids] => all
// all oder Produkt-ids durch Kommas getrennt
[first_amount] => 10.00
[other_amounts] => 5.00
[upgrade_policy]
=> valid
[is_count_limited] => N
[count_left] => 1
[currency] => EUR
)
)