Verify a License Key
License keys are issued when you enable the issuance of license keys on your Edit Product page.
They're mainly used for selling software products.
Each license key is unique and in UUID format.
Endpoint
GET /licensekeys/verify
Required parameters
product_id
- Your product ID for which the license key was issuedlicense_key
- The license key supplied by your buyer that you want to verify as being valid, paid for, and belonging to the aforementioned product
Example request
curl https://api.zylvie.com/licensekeys/verify \
-h "Authorization: Bearer e97f0aafe4884bc380c81fdb2347dc55" \
-d "product_id=zV82kG4w" \
-d "license_key=8ab6e448-825d-4f03-8e94-2e0ece7c855b" \
Example response
{
"key": "8ab6e448-825d-4f03-8e94-2e0ece7c855b",
"product_id": "6v8Obm2M",
"buyer_email": "john.cena@zlappo.com",
"created": 1690952000, //UTC timestamp
"redeemed": true,
"redeemed_at": 1790952000, //UTC timestamp or null
"refunded": true,
"refunded_at": 1890952000, //UTC timestamp or null
}