Get Woocommerce product reviews via rest api - rest

I tried to get product reviews with rest api but I got an error woocommerce_rest_cannot_view
https://example.com/wp-json/wc/v3/products/reviews?product=ID
I don't know where is the problem

In some how it was an issue on woocommerce api
I edited the class-wc-rest-product-reviews.php
$prepared_args['type'] = 'review';
changed review to comment and it works

Related

One Signal REST API - Get the list of templates

How are you?
In principle, sorry for my English.
I need to work with an integration with One Signal REST API both for web and mobile application, but I can't find any endpoint to bring the templates (and I need them to include the id of the template in the request body as indicated in the documentation of "POST -> create notification")
Does anyone know if there is an endpoint that brings me the list of templates?
Thanks a lot
I confirm that (as of the date, OneSignal REST API v8) it's not possible to obtain the OneSignal template_id via REST API
got to OneSignal console
select the app
select Messages > Templates
select the template that you want to know its ID
get the ID from the URL, like shown in the image below

Rest API url to get product details

I am getting WooCommerce Product details using REST API. Here is the url I am using,
https://squatwolf.com/wc-api/v3?id&name&permalink&short_description&price&sale_price
It is not showing me the right products. What could be wrong with my request?
Maybe because you've not called the right end point. Try
https://squatwolf.com/wc-api/v3/products?id&name&permalink&short_description&price&sale_price

woocommerce Rest API giving permission error while fetching orders from store

I am using WP Rest API to fetch the orders from store using consumer key and secrete in URL but its giving me error of permission and order not be read.
Kindly anyone can suggest the solution for this issue that how i can debug and solve the issue
I am getting order using API in URL as follows
https://www.onetwocosmetics.com/wc-api/v3/orders/8082?consumer_key=MY_CONSUMER_KEY&consumer_secret=MY_CONSUMER_SECRETE
SO what i get in response is any error as follow:
{"errors":[{"code":"woocommerce_api_user_cannot_read_order","message":"You do not have permission to read this order"}]}
But when i get the products using the same API it is giving all the product but orders are not getting
https://www.onetwocosmetics.com/wc-api/v3/products/?consumer_key=MY_CONSUMER_KEY&consumer_secret=MY_CONSUMER_SECRETE
Its solved as the API required the Admin user KEYS not a simple user like Customer, Subscribers. and also check if you are not installed any permssion manager plugin on the site.

How to get shipment tracking using woocommerce rest api

I have woocommerce instance and plugin "WooCommerce Shipment Tracking". How can I get shipment tracking for the orders using the rest api of woocommerce. I not found no information in the docs of that plugin and in the net.
The tracking information for any plugin should be within the "meta_data" section of the orders API.
I built this plugin to add order tracking codes to woocommerce:
https://wordpress.org/plugins/mc-woocommerce-tracking/

PayPal REST API - Get Sale by Transaction ID - The requested resource ID was not found (404)

I am essentially trying to get the details of any transaction ID in my PayPal account to authenticate users I am migrating to a new authentication system.
I am using the PayPal Rest API so: http://puu.sh/gdb3T/461dde2928.png and yes I have checked everything is fine, it is infact set to live with the correct id / secret.
This isn't exactly an answer to this specific question, but I have simply fixed it by using PayPal's classic API in order to get the job done.
Kind of strange the rest API doesn't let me do this.