woocommerce / woocommerce-rest-api

This is the WooCommerce core REST API Package. It runs standalone as a feature plugin too.
71 stars 46 forks source link

GET /wp-json/wc/v3/orders #289

Closed whoamizq closed 9 months ago

whoamizq commented 9 months ago

I have a very strange problem now. GET /wp-json/wc/v3/orders?per_page=100&offset=0&orderby=date&oauth_consumer_key=*****&dp=2&dates_are_gmt=false&context=view&page=1&after=1701940377&order=desc&status=processing HTTP/1.1 The following exception occurs when I use the after request above: Can't parse retrieved object: {code=rest_invalid_param, message=:after, data={status=400, params={after=。}, details={after={code=rest_invalid_date, message=。, data=null}}}}

When I change the after parameter to:2023-12-07T00:00:00 Can't parse retrieved object: {code=woocommerce_rest_authentication_error, message=。, data={status=401}} I don't know how to solve this problem. I hope I can answer that. thanks.

whoamizq commented 9 months ago

resolved