Validate a voucher
Validate if the voucher exists and is ready for being used. Note: For this command merchants can validate their voucher by using their public keys in untrusted environments.
Arguments
Parameter
Type
Required
Description
pin
string
true
voucher’s pin string
POST
https://
{domain given}/v2/vouchers/validate
curl https://{domain given}/v2/vouchers/validate \
-u pk_test_BQokikJOvBiI2HlWgH4olfQ4: \
-d pin=KLVGBEFEBPZ7B4QW
The above command returns JSON structured like this:
{
"id": "AWUkux58D52AoRFGa7mf2A",
"value": 1000,
"currency": "USD",
"bundle": false,
"created_at": 1534255857,
"expires_at": 1549807857,
"livemode": false
}
Last updated