Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @jubekspam

    thank you for your message and for using my plugin.

    I’ll need some info to help you out, please let me know the following:

    • What does your request URL look like?
    • What does your request body look like?
    • Which PHP version do you use?
    • Which WooCommerce version do you use?
    • Which WordPress version do you use?
    • Which License Manager for WooCommerce version do you use?
    Thread Starter jubekspam

    (@jubekspam)

    Hi,

    What does your request URL look like?
    https://xxx.com//wp-json/lmfwc/v2/licenses?consumer_key=xxx&consumer_secret=yyy

    What does your request body look like?
    payload = {
    “product_id”: 11,
    “license_key”: “98798798798”,
    “valid_for”: “365”,
    “status”: “active”,
    “times_activated_max”: 1
    }

    Which PHP version do you use?
    7.3

    Which WooCommerce version do you use?
    4.0.1

    Which WordPress version do you use?
    5.4

    Which License Manager for WooCommerce version do you use?
    2.2.0

    • This reply was modified 4 years, 7 months ago by jubekspam.

    @jubekspam

    Everything seems fine to me, what is the exact error message you’re receiving?

    Thread Starter jubekspam

    (@jubekspam)

    Hello,

    i got exaclty this ” lmfwc_rest_data_error – License key is invalid – 404 error” when i do post request, when i call same url with get request i’m getting all my licenses correctly.

    @jubekspam

    Are there any entries in the PHP error logs?

    @jubekspam

    Another thing: I get the same error if I don’t set the Content-Type: application/json header. Could that be the problem?

    Thread Starter jubekspam

    (@jubekspam)

    Hello,

    many thanks! It was header problem as you suggested! I had “Accept: application/json” and not “Content-Type: application/json”

    @jubekspam

    Happy to hear we figured it out!

    PS: The complete API docs are available here: licensemanager.at/docs/rest-api/

    The website was down the last two days because I was migrating domains and webhost.

    I’ll mark this topic as resolved then.

    PS: I would really appreciate if you could take some time out of your day to write a plugin review here on www.ads-software.com. These reviews really help my plugin to grow and mean a lot to me personally. Here’s the link:

    https://www.ads-software.com/support/plugin/license-manager-for-woocommerce/reviews/#new-post

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘lmfwc_rest_data_error – License key is invalid’ is closed to new replies.