Title: japac's Replies | WordPress.org

---

# japac

  [  ](https://wordpress.org/support/users/japac/)

 *   [Profile](https://wordpress.org/support/users/japac/)
 *   [Topics Started](https://wordpress.org/support/users/japac/topics/)
 *   [Replies Created](https://wordpress.org/support/users/japac/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/japac/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/japac/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/japac/engagements/)
 *   [Favorites](https://wordpress.org/support/users/japac/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[License Manager for WooCommerce] licence manager for woocommerce](https://wordpress.org/support/topic/licence-manager-for-woocommerce/)
 *  Thread Starter [japac](https://wordpress.org/support/users/japac/)
 * (@japac)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/licence-manager-for-woocommerce/#post-12563576)
 * hello,
    there is new more important problem. there is no possibility to check
   if licence key was used. look at this:
 * Check license:
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/validate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/validate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“timesActivated”:0,”timesActivatedMax”:1,”remainingActivations”:
   1}}
 * activate license
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“id”:”11″,”orderId”:”1502″,”productId”:”14″,”licenseKey”:”
   XRX-XY3-3YI”,”expiresAt”:null,”validFor”:”0″,”source”:”1″,”status”:”2″,”timesActivated”:”
   1″,”timesActivatedMax”:”1″,”createdAt”:”2020-03-10 20:22:31″,”createdBy”:”1″,”
   updatedAt”:”2020-03-19 20:09:55″,”updatedBy”:”0″}}
 * check if error occurs if activated more than once
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“id”:”11″,”orderId”:”1502″,”productId”:”14″,”licenseKey”:”
   XRX-XY3-3YI”,”expiresAt”:null,”validFor”:”0″,”source”:”1″,”status”:”2″,”timesActivated”:”
   1″,”timesActivatedMax”:”1″,”createdAt”:”2020-03-10 20:22:31″,”createdBy”:”1″,”
   updatedAt”:”2020-03-19 20:09:55″,”updatedBy”:”0″}}
 * no, so check again
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“id”:”11″,”orderId”:”1502″,”productId”:”14″,”licenseKey”:”
   XRX-XY3-3YI”,”expiresAt”:null,”validFor”:”0″,”source”:”1″,”status”:”2″,”timesActivated”:”
   1″,”timesActivatedMax”:”1″,”createdAt”:”2020-03-10 20:22:31″,”createdBy”:”1″,”
   updatedAt”:”2020-03-19 20:09:55″,”updatedBy”:”0″}}
 * no, validate again
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/validate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/validate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“timesActivated”:0,”timesActivatedMax”:1,”remainingActivations”:
   1}}
 * validation shows no change – still one activation remaining
    activate again
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/validate/XRX-activate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/validate/XRX-activate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“id”:”11″,”orderId”:”1502″,”productId”:”14″,”licenseKey”:”
   XRX-XY3-3YI”,”expiresAt”:null,”validFor”:”0″,”source”:”1″,”status”:”2″,”timesActivated”:”
   1″,”timesActivatedMax”:”1″,”createdAt”:”2020-03-10 20:22:31″,”createdBy”:”1″,”
   updatedAt”:”2020-03-19 20:09:55″,”updatedBy”:”0″}}
 * still no change
 * $ curl -k –location –request GET [https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3validate/XRX-XY3-3YI](https://server.local/?rest_route=/lmfwc/v2/licenses/activate/XRX-XY3validate/XRX-XY3-3YI)
   {“
   success”:true,”data”:{“timesActivated”:0,”timesActivatedMax”:1,”remainingActivations”:
   1}}

Viewing 1 replies (of 1 total)