diff --git a/VoucherifyClient.php b/VoucherifyClient.php index e1a283f..1d8b2c0 100644 --- a/VoucherifyClient.php +++ b/VoucherifyClient.php @@ -208,5 +208,16 @@ public function vouchers($filter) { public function redemptions($filter) { return $this->apiRequest("GET", "/redemptions/", $filter, NULL); } + + /** + * @param array|stdClass $data + * + * Create a validation rule + * + * @throws Voucherify\ClientException + */ + public function createValidationRule($data) { + return $this->apiRequest("POST", "/validation-rules/", NULL, $data); + } } }