Sunday, December 11, 2022
HomeWordPress Developmentwoocommerce offtopic - Woo Commerce Unhealthy Request 400 for Classes endpoint

woocommerce offtopic – Woo Commerce Unhealthy Request 400 for Classes endpoint


I am accessing the Woo Commerce REST API utilizing python. I am utilizing this library: https://pypi.org/mission/WooCommerce/ as instructed by Woo Commerce Builders within the documentation. I am attempting to entry the classes endpoint, to create new classes. Right here is my request:

information = {
        "title": category_name,
        "mother or father": parent_category,
    }

request = woo_api.publish("merchandise/classes", information)

I then get a 400 Unhealthy Request error, listed here are the small print of the request:

request information
url: https://www.instance.com/wp-json/wc/v3/merchandise/classes
key: ck_****
secret: cs_****
information: {'title': 'Baggage & Baggage', 'mother or father': 0}
timeout: 50
cause: Unhealthy Request
code: <Response [400]>

Any concepts about what I am doing flawed and methods to repair this subject. Thanks

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments