• Resolved broodje83

    (@broodje83)


    I’m using the Woocommerce REST API to request product information with a simple get using the product ID and creating variations. However i’m stumbling upon a 301 error when trying to request the product information using the API.
    The JSON response always returns a 301 – Moved permanently error.
    I’ve tried disabling all plugins besides Woocommerce and using a regular WordPress thema.
    I’ve also tried rewriting the permalinks in the system, but am still getting the same error.

    What i find strange, is that in the Woocommerce status log, it shows the rest API as not enabled. I have however an active API key and get a response from the API when contacting /wp-json/wc/v3?_jsonp=callback

    Any idea what may cause this issue or how i’m able to solve this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @broodje83 Were you able to find a resolution for this? The REST API should be enabled by default. If you did not find a resolution, can you let us know the endpoint you are trying to contact with the data you are posting? We can use this to test on one of our sites.

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

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

The topic ‘Woocommerce REST API returns 301’ is closed to new replies.