11. API Endpoints


In this section we will describe the available Rest API endpoints, required params and responses.

11.1.  Licence


11.1.1 REST Method: GET

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/license

REST Arguments

  • product_key
  • secret_key l
  • icense_key

REST Response

{

    "license_id": 3,

    "license_key": "a29983f5-5001-46d5-b6b0-d7f0dcb7fc32",

    "license_email": 1,

    "license_limit": 0,

    "license_updates": 1,

    "license_support": 1,

    "license_expiration": "0000-00-00 00:00:00",

    "license_created": "2023-11-07 14:57:16",

    "license_activations": [],

    "activation_count": 0,

    "activation_remaining": 0

}

Example URL

https://yoursite.com/wp-json/wc/wlm/license?product_key=3946f45a460b400fc7c263a482e50b6c&secret_key=d8437f8f5b54c225f70b7addfc1be393a11c81b0&license_key=a29983f5-5001-46d5-b6b0-d7f0dcb7fc32

11.1.2 REST Method: POST, PUT, PATCH

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/license

REST Arguments

  • product_key
  • secret_key
  • product_id
  • order_id

REST Response

{

    "order_id": 15,

    "license_key": "free-db704283-f81b-454f-b8b8-0af13fa02527",

    "license_email": 1,

    "license_limit": 0,

    "license_updates": 1,

    "license_support": 1,

    "license_expiration": "",

    "license_created": "2023-11-07 17:57:18",

    "activation_count": 0,

    "activation_remaining": "Unlimited",

    "product": "TikTok Variable - Free"

}

Example URL

https://yoursite.com/wp-json/wc/wlm/license?product_key=37af35f3fd31d9b119799608c554f5cb&secret_key=78c8d021a43418b916375e923487a3db6ad66007&product_id=23&order_id=15

11.1.3 REST Method: DELETE

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/license

REST Arguments

  • product_key
  • secret_key
  • license_key

REST Response

{

    "order_id": 27,

    "order_subscription": null,

    "license_created": "2023-11-08 15:54:03"

}

Example URL

https://yoursite.com/wp-json/wc/wlm/license?product_key=3946f45a460b400fc7c263a482e50b6c&secret_key=d8437f8f5b54c225f70b7addfc1be393a11c81b0&license_key=02080b8d-5258-445a-8ddd-5e430378efe8

11.1.4 REST Method: DELETE

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/license

REST Arguments

  • product_key
  • secret_key
  • license_key

REST Response

{

    "license_id": 35,

    "license_key": "1548b574-5779-43ed-8b06-f5dc4269444c",

    "license_email": 1,

    "license_limit": 0,

    "license_updates": 1,

    "license_support": 1,

    "license_expiration": "0000-00-00 00:00:00",

    "license_created": "2023-11-07 18:39:31",

    "activation_count": 0,

    "activation_remaining": 0

}

Example URL

https://yoursite.com/wp-json/wc/wlm/license/activations?product_key=3946f45a460b400fc7c263a482e50b6c&secret_key=d8437f8f5b54c225f70b7addfc1be393a11c81b0&license_key=1548b574-5779-43ed-8b06-f5dc4269444c

11.2. Download


11.2.1 REST Method: GET

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/product/download

REST Arguments

  • license_key
  • activation_instance

REST Response

  • Archive start to download

Example URL

https://yoursite.com/wp-json/wc/wlm/activation?license_key=600b47be-45b7-4da0-9381-f0717290512d&activation_instance=1699445281

11.2.2 REST Method: GET

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/product/download

REST Arguments

  • license_key
  • activation_instance

REST Response

  • Archive start to download

Example URL

https://yoursite.com/wp-json/wc/wlm/download?license_key=free-9a8c2984-25e9-491b-b441-569935a74665&activation_instance=1699447862

11.3. Product


11.3.1 REST Method: GET

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/product/download

REST Arguments

  • product_key

REST Response

{

    "version": "",

    "added": "November 7, 2023",

    "name": "TikTok Variable",

    "requires": "",

    "tested": "",

    "author": "",

    "last_updated": "November 8, 2023",

    "banner_high": "",

    "banner_low": "",

    "icon": "",

    "homepage": "",

    "upgrade_notice": "",

    "changelog": "",

    "description": "",

    "screenshots": false,

    "product": "TikTok Variable"

}

Example URL

https://yoursite.com/wp-json/wc/wlm/download?license_key=free-9a8c2984-25e9-491b-b441-569935a74665&activation_instance=1699447862

11.3.2 REST Method: GET

REST Route: 

  • https://yoursite.com/wp-json/wc/wlm/product/download

REST Arguments

  • license_key
  • activation_instance

REST Response

"https://yoursite.com/wp-json/wc/wlm/download?license_key=free-9a8c2984-25e9-491b-b441-569935a74665&activation_instance=1699447862"

Example URL

https://yoursite.com/wp-json/wc/wlm/product/update?license_key=free-9a8c2984-25e9-491b-b441-569935a74665&activation_instance=1699447862