woocommerce-rest-api Questions

4

How I can create an API KEY for woocommerce by WP-CLI? I'm creating a WooCommerce store by this commands: sudo /usr/local/bin/wp --info --allow-root sudo /usr/local/bin/wp cli update --allow-root...
Shote asked 28/9, 2016 at 0:16

2

Solved

Before I updated to WC at 4.3.1 ,I had this code and it worked well add_action( 'rest_api_init', function () { register_rest_route( 'px-module-woocommerce', '/px/cart', array( 'methods' => 'P...
Rollick asked 24/7, 2020 at 15:52

10

Solved

I am trying to retrieve all products using rest api. I have read this question. I am using postman to make calls. Here is my query https://squatwolf.com/wp-json/wc/v2/products?filter[posts_per_pag...
Rhymester asked 27/1, 2018 at 14:0

8

Solved

I'm using the WooCommerce REST API (http://woocommerce.github.io/woocommerce-rest-api-docs/#introduction) and can download Customers, Orders, etc successfully. I'm now trying to get a filtered list...

2

I'm trying to manage WooCommerce entirely by its REST API but with no luck, i'm trying to insert a product with variations I can succesfully create a product with a POST to {{url}}/wp-json/wc/v3/...
Mcwhorter asked 23/11, 2018 at 16:21

5

I am very new to WordPres` and using the WooCommerce plugin for the first time and want to use the WooCommerce REST API in my Android app. I have enabled the REST API and created a Consumer Key a...
Gaelic asked 4/3, 2017 at 8:6

7

Hello I am using WooCommerce API - Node.js Client https://www.npmjs.com/package/woocommerce-api And I am trying to create a customer which requires a POST request to the server. Here is the code t...
Dilly asked 9/12, 2017 at 15:34

5

I have setup Woo-Commerce which have more than 1000 products. Using Woocommerce rest api php library I am trying to get all products. But it gives me 10 products. If I use filter[limit] it gives m...
Olga asked 13/2, 2017 at 10:8

2

Woocommerce version: 4.1.0 I am trying to create a product with categories and images via the API but I get this error : {"code":"woocommerce_product_invalid_image_id","message":"#0 is an in...
Pacifist asked 14/5, 2020 at 9:30

6

when i paste this link http://localhost/wordpress/wp-json/wc/v2/products?consumer_key=ck_*******************&consumer_secret=cs_******************** it show for me this error message {"c...

3

Solved

Is it possible to access custom fields for orders, products, customers via WooCommerce REST API? If not natively, then what plugins or workarounds or hacks are out there that work? Thanks!
Lancelot asked 2/4, 2016 at 5:0

15

I have generated a consumer key and consumer secret. The website has SSL installed. I have also installed plugins required for JSON and REST services. This is how the url looks like: https://<u...

1

The following error showed in my metro bundler when I run react-native with npm plugin @woocommerce/api library. It's currently active plugin for woocommerce rest api. I've searched many solutions...
Timothytimour asked 11/6, 2021 at 16:12

2

I'm working on mimicking the Orders Page in the Admin side to the UI of the site. It's like a complete rip off of what's on the backend. I'm stuck with listing all the enabled Payment Methods. How ...
Wheelbase asked 30/1, 2017 at 11:8

2

Solved

I need to display all related products by eah product I have in my list. Eg, In my app I have 3 products with id 1, 2, 3 product id 1 has 5,6,7 as related, product id 2 with related 8 and 9 etc.. ...

2

I'm using the WooCommerce API and getting some errors with no information on what's causing the error. How would I view the logs to see what's happening?
Spotless asked 8/8, 2016 at 17:15

4

I'm using Wordpress 4.7.1 with Woocommerce 2.6.13 plugin with enabled REST API. I was created user credentials from console plugin UI with read_write permissions. Now I'm trying GET products using...
Idaidae asked 21/1, 2017 at 11:16

1

Solved

I am trying to create a new value to line_items in the Orders endpoint, but it shows an error that I don't know how to solve! The code is from: Woocommerce REST API extending order response Other h...
Meritorious asked 7/4, 2021 at 13:59

6

I have Visited The official WooCommerce Rest API documentation "Create an Order" section. I am trying to create an order via the API, but when I want to create the order with the apply coupon, I do...
Jeramey asked 31/10, 2017 at 5:31

3

I'm using the WooCommerce REST API to e.g. get all products with variations, but I encounter a fairly large problem regarding the number of fired requests. I need help optimizing the situation belo...
Auxiliary asked 18/3, 2018 at 20:47

3

Solved

I would like to extend the woocommerce rest api to include data of its 'booking' extension plugin. Currently this extension does not have default endpoints provided by the rest api. So far I have...
Mignonne asked 27/1, 2019 at 10:40

3

Solved

I found difficulty in fetching a product from my woocommerce website to my django app based on the sku. In the official documentation here: http://woocommerce.github.io/woocommerce-rest-api-docs/#...
Kalahari asked 11/7, 2019 at 7:40

2

I have made a plugin so I can have custom endpoints. Ultimately I want to pull data about my bookable products (woocommerce bookings). Here is my plugin: if ( in_array( 'woocommerce/woocommerce...
Noddy asked 11/2, 2019 at 21:18

2

I am developing an application using WooCommerce rest API v3. Now I'm trying to integrate coupons from my WooCommerce website to my application. I'm creating order and applying coupons like this "...
Clovis asked 9/4, 2016 at 12:10

2

Solved

Is it possible to use woocommerce as backend & ReactJS as frontend? I am new to creating online shops, and would like to write a frontend with ReactJS, but I am not sure what options there are ...
Selfimportant asked 17/1, 2018 at 17:29

© 2022 - 2024 — McMap. All rights reserved.