Title: Rest-api-php library
Last modified: December 23, 2025

---

# Rest-api-php library

 *  Resolved [neoset](https://wordpress.org/support/users/neoset/)
 * (@neoset)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/rest-api-php-library/)
 * In the documentation at the URL [https://licensemanager.at/docs/rest-api/libraries/php-library-2/](https://licensemanager.at/docs/rest-api/libraries/php-library-2/)
   
   you have the logic for the server and client.
 * [otakupahp](https://github.com/otakupahp)[otakupahp/sdk-license-manager-for-woocommerce](https://github.com/otakupahp/sdk-license-manager-for-woocommerce)
   otakupahp.com
   [TheWebSolver](https://github.com/TheWebSolver)[TheWebSolver/tws-license-manager-client](https://github.com/TheWebSolver/tws-license-manager-client)
   thewebsolver.com[TheWebSolver](https://github.com/TheWebSolver)[TheWebSolver/tws-license-manager-server](https://github.com/TheWebSolver/tws-license-manager-server)
   thewebsolver.com
 * Do you know if it works well or is it out of date?
 * Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [muddasirhayat](https://wordpress.org/support/users/muddasirhayat/)
 * (@muddasirhayat)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/rest-api-php-library/#post-18765684)
 * Hi [@neoset](https://wordpress.org/support/users/neoset/),
 * Thank you for contacting us. We hope you are doing well.
 * The libraries mentioned in the documentation should work as expected.
 * If you encounter any issues or notice anything not functioning correctly, please
   let us know, and we’ll assist you.
 * Thanks & regards,
   WP Experts Support Team
 *  Thread Starter [neoset](https://wordpress.org/support/users/neoset/)
 * (@neoset)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/rest-api-php-library/#post-18765867)
 * Thank you very much.
 *  [SITE GUARD 365](https://wordpress.org/support/users/siteguard365/)
 * (@siteguard365)
 * [3 months ago](https://wordpress.org/support/topic/rest-api-php-library/#post-18834581)
 * Hello License Manager for WooCommerce Support Team,
 * I’m facing an issue related to license delivery and stock reduction on my website.
 * Sometimes when a customer purchases a product in multiple quantities (for example,
   quantity = 6), all license keys are delivered correctly, but the product stock
   is reduced twice. Because of this, the stock becomes incorrect or even negative.
 * Here are the relevant order notes/logs:
    - SMEPay: Payment confirmed via webhook.
    - Payment via UPI Pay.
    - Stock levels reduced: Windows 11 Pro License – OEM Key (7 → 1)
    - Stock levels reduced again: Windows 11 Pro License – OEM Key (1 → -5)
 * It looks like the webhook or payment confirmation may be triggering the license
   delivery and stock reduction more than once.
 * Could you please help me understand:
    1. Why stock is being reduced twice?
    2. Is the webhook triggering duplicate order completion or license generation?
    3. What settings or hooks should I check to prevent duplicate stock deduction?
 * My setup:
    - WooCommerce + License Manager for WooCommerce
    - SMEPay plugin integration
 * I would appreciate your guidance on how to fix this issue.
 * Thank you.
 *  Plugin Support [muddasirhayat](https://wordpress.org/support/users/muddasirhayat/)
 * (@muddasirhayat)
 * [3 months ago](https://wordpress.org/support/topic/rest-api-php-library/#post-18835591)
 * Hi [@siteguard365](https://wordpress.org/support/users/siteguard365/),
 * We hope you are doing well.
 * We have responded to your latest thread. Kindly follow up with us there to prevent
   miscommunication.
 * Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-php-library%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/license-manager-for-woocommerce/assets/icon-256x256.gif?
   rev=2824216)
 * [License Manager for WooCommerce](https://wordpress.org/plugins/license-manager-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/license-manager-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/license-manager-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/license-manager-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/license-manager-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/license-manager-for-woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [muddasirhayat](https://wordpress.org/support/users/muddasirhayat/)
 * Last activity: [3 months ago](https://wordpress.org/support/topic/rest-api-php-library/#post-18835591)
 * Status: resolved