Hi there,
some of them work fine. but some respond empty! for example product list and settings are ok but Customers list and orders list will return empty respond.
Can you please share with us the exact API call you’re having a problem with so we can test it from our end?
Also, please share a copy of your site’s System Status as it can help us get a better understanding of your site. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Look forward to hearing back from you.
here you are:
https://briskala.com/wp-content/uploads/2022/10/New-Text-Document.txt
and I use this: /wp-json/wc/v3/orders
It is worth mentioning that when I use this API “/wp-json/wc/v3/orders/<id>” I can get the correct response but not with Get all Orders.
I have tried using “Page” params and no help. and also contacted my Host provider and they are doing ok. they said that if response status is 200, which it is, They don’t have any problem.
thank you
-
This reply was modified 3 months, 2 weeks ago by
Ali Jebali.
Hello @aliajboy,
I tried testing the call on my test site and it’s working fine. In python the syntax is: print(wcapi.get("orders").json())

Link to image: https://i.imgur.com/k0IvNMN.png
Furthermore, nothing stands out from the report. Are you sure this is not a syntactical error? If setting an ID gets back a response then the problem is most likely not from WooCommerce.
The best way you can debug this is by testing with another language. I’d go with python because it’s the easiest.
from woocommerce import API
wcapi = API(
url="https://siteURL.com",
consumer_key="ck_your_consumenrkey",
consumer_secret="cs_consumer_secret",
version="wc/v3"
)
print(wcapi.get("orders").json())
If the call is working, then you can know for sure if this is a syntactic or programmatic error.
Let us know your findings!
@babylon1999 Thanks for your reply.
I have no syntax error. Let’s assume It’s syntax error, I tried usind an online API tester and further more, I used Postman. non of them worked for me.
But for news, I can say that Woocommerce definitly has no problem, because I have tested v7 on another site but same server and it worked fine! on postman, online and Code!
@babylon1999 What do you think is the problem? I will reinstall wordpress it self but if it won’t help, what do you think should I do?
thank you