Image Description Image Description

No Results

  • Support
Logo Logo v1.0
  • Basics
  • Getting started
  • Get authenticating user
  • Products
  • Create a Product
  • License Keys
  • Verify a License Key
  • Redeem a License Key
  • Refund a License Key
  • Subscriptions
  • Verify a Subscription
  • Webhooks
  • Basics
  • Subscribe
  • Unsubscribe
  • Webhook Events
  • New sale
  • New lead
  • New affiliate sign-up
  • New subscription
  • Subscription cancellation

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 issued
  • license_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 }