Questions tagged [woocommerce-rest-api]

WooCommerce REST API is fully integrated with the WordPress REST API since WC version 2.6+, allows WC data to be created, read, updated, and deleted using requests in JSON format and using **WordPress REST API** Authentication methods and standard HTTP verbs…

WooCommerce (WC) 2.6+ is fully integrated with the WordPress REST API. This allows WC data to be created, read, updated, and deleted using requests in JSON format and using WordPress REST API Authentication methods and standard HTTP verbs which are understood by most HTTP clients.

Requirements: It’s required turn on the WordPress permalinks on Settings > Permalinks.

WooCommerce REST API Documentation

WooCommerce REST API

Prior to 2.6, WooCommerce had it’s own REST API separate from WordPress which is now known as the legacy API. You can find the documentation for the legacy API separately.

The default response format is . Requests with a message-body use plain to set or update resource attributes. Successful requests will return a 200 OK HTTP status...

957 questions
-2
votes
1 answer

Woocommerce rest api: set id

using the Rest API, I would need to manually set the id of the category or product that I need to enter, is there any way to do this?
-2
votes
1 answer

In WooCommerce, Is it possible to display specific country only if cart total is over 100?

I have tried to do it using a filter hook called "woocommerce_countries". I tried getting the cart total in this hook but it's not working. Is anyone have any idea on this OR suggest any hook?
-2
votes
2 answers

Woocommerce create and use the product for a one-time purchase via programming

I would like to add a product programmed into the cart, but I don't want to add that into the Database to the other products. Is it possible to do that? And how I can control the information for the invoice? The reason why i want to do that is - I…
angUHLALA
  • 27
  • 1
  • 7
-2
votes
1 answer

WooCommerce API orders parameters not working

i'm using woo commerce api documentation and i'm using this code $woocommerce = new Client($woocommerce_website_url, $woocommerce_customer_key, $woocommerce_consumer_secret, array( 'wp_api' => true, 'version' => 'wc/v3', 'query_string_auth' =>…
Parvej Alam
  • 258
  • 2
  • 8
-2
votes
2 answers

is there any woocommerce API for add To cart

Is there any woocommerce API for add to cart So that I can add product to cart via mobile app. Please help me.
-2
votes
1 answer

Get values from function Woocommerce?

I need to get values from function Woocommerce. So I want the values display out of the function. Is there another simple solution to solve it? WooCommerce.get('products?per_page=100', function(err, data, res) { var data = JSON.parse(res); var…
-3
votes
1 answer

How to update woocommerce product via api with Symfony and Guzzle

Question: How to update the price of a woocommerce product via API using Guzzle and guzzle/oauth-subscriber I've used This Question as my reference to get oauth1 working for requesting data, which works well. Just haven't been able to workout out to…
Bradmage
  • 1,233
  • 1
  • 15
  • 41
-4
votes
1 answer

How to add to cart via Api Rest in woocommerce with javascript?

How to add to cart via Api Rest in woocommerce with javascript? I'm adding this question to be able to help anyone who is looking for the answer with the new versions of Woocommerce Api Rest, after 7 hours I have achieved it and if I can help…
-5
votes
2 answers

cart API of word-press woo-commerce

I was trying to build a grocery app using flutter with woo-commerce as a backend. there is an app already with the same woo-commerce using native code but no source code available is there any way to get the cart API used in the old app as I have…
MhdBasilE
  • 356
  • 1
  • 4
  • 13
1 2 3
63
64