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...

796 questions
5
votes
1 answer

Woocommerce Order API Line Item ID changes on update

I’m retrieving Woocommerce orders via the "order updated" webhook and storing specific data in a separate database. We are also using a personalisations plugin which allows customers to add custom messages to products. This creates 2 separate line…
Marcus Christiansen
  • 2,203
  • 4
  • 30
  • 67
5
votes
2 answers

Using Woocommerce as backend & ReactJS as frontend?

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 for the backend. I do know I can use Wordpress as a…
5
votes
1 answer

How can I create API for cart in woocommerce?

I am aware of the fact that Woocommerce provides APIs for most of its functionalities. I have gone through the below documentation Woocommerce REST API Now cart is one of the most important features of any e-commerce application. I did some…
5
votes
1 answer

Adding Product Programmatically in woocommerce

'Adams Product', 'post_content' => 'Here is content of the post, so this is our great new products description', 'post_status' =>…
Ravi Shankar
  • 141
  • 2
  • 10
5
votes
1 answer

How to authenticate existing customer via WooCommerce rest API

I am creating a mobile app for a WooCommerce website and have gotten to a stage where I want the user to login or signup to the WooCommerce website before they continue with a purchase. I can create a new customer no problem but I am having trouble…
Win
  • 2,503
  • 3
  • 22
  • 34
5
votes
1 answer

Adding product variations with multiple attributes

I am using the WoocommerceNET Library (Nuget Link) to develop a desktop app that will sync the products from the ERP database to the Woocommerce eshop database. I added attributes size and color with values eg red,green,blue and s,m,l,xl. Now I…
athskar
  • 206
  • 1
  • 3
  • 11
5
votes
1 answer

Change user password using woocommerce rest api in Android

I am using woocommerce rest API to build an e commerce Android application. I want to implement the change password using woocommerce rest API ,I have refer this link https://woocommerce.github.io/woocommerce-rest-api-docs/ but it is not…
maulik
  • 140
  • 9
5
votes
0 answers

How to integrate woocommerce rest api in angular js?

I want to integrate WooCommerce rest API in angular js. Means I want to get the list of all product using angular js by use of WooCommerce rest API. I'm using as this but it's not working :…
jay.jivani
  • 1,514
  • 1
  • 14
  • 30
5
votes
1 answer

How to use 'POST' Http Verb of Woocommerce REST API in JAVA/Android?

I am developing an Android app of my WooCommerce store and I'm getting store data like Products, Categories, Orders, Customers etc using GET http verb of WooCommerce REST Api. It's working fine and I'm able to generate oAuth 1.0 signature for api V2…
Ankur
  • 1,020
  • 15
  • 21
4
votes
1 answer

What happens if php://input receives simultaneous webhooks?

I wrote an API that takes a WooCommerce webhook and inputs the data into our CRM. I'm using: file_get_contents("php://input"); The whole script is in one file because it's so simple. My question is what happens if php://input receives two or more…
4
votes
4 answers

Woocommerce API Token Access Level

I have a general question about Woocommerce rest-API and user access-level. We start developing customer android app base on Woocommerce-API and we using the Woocommerce token (read/write). But the problem is that token gives access to the whole…
Hamed mayahian
  • 2,217
  • 6
  • 23
  • 45
4
votes
0 answers

Woocommerce Rest API: woocommerce_product_invalid_image_id

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 invalid image ID.","data":{"status":400}} I have checked…
thelaw
  • 339
  • 1
  • 9
4
votes
0 answers

Display product variations from woocommerce rest API on a React application

So, I'm trying to display on my react app the different variations of a product in dynamic dropdowns. "variations": [ { "id": 224, "attributes": [ { "id": 0, …
4
votes
1 answer

WooCommerce Cart REST Api Cannot relate cart to specific user

I am developing a WooCommerce Cart REST Api using PHP laravel. Below is the code snippet for such api. When I call the add_to_cart function it indeed adds the product to a cart and I can see that there is a record stored at the…
4
votes
0 answers

WooCommerce calculate shipping via REST API

My implementation in app is just like my WooCommerce website. I want to achieve following points for calculating shipping: Check if address is required or not for calculating shipping address? If address is entered by user, how to check if this…
AndiM
  • 2,101
  • 2
  • 15
  • 33
1
2
3
53 54