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
5
votes
3 answers

Extending the woocommerce rest api

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 created a plugin, and I've added the following…
kadddeee
  • 498
  • 8
  • 20
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
  • 3,017
  • 7
  • 49
  • 86
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
  • 3
  • 10
5
votes
6 answers

Woocommerce Orders Rest API: Add a coupon code

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 don't know how to make it. How I will pass the coupon…
Ajay Ghaghretiya
  • 784
  • 1
  • 6
  • 30
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
  • 226
  • 1
  • 3
  • 12
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
  • 150
  • 9
5
votes
2 answers

How do can I extend woocommerce api endpoints?

I'm trying to extend the customer endpoint in woocommerce api to include some customfields I've created in my functions.php. But I can't understand how to do it. I have copied the class-wc-rest-customers-controller.php from the woocommerce plugin…
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,560
  • 1
  • 16
  • 33
5
votes
3 answers

How I can create an API KEY for woocommerce by WP-CLI?

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 sudo /usr/local/bin/wp core download…
Rui Martins
  • 3,337
  • 5
  • 35
  • 40
5
votes
1 answer

Custom value in woocommerce webhook payload

I have webhook with topic Order Updated. Webhook delivers payload (Order information) at someotherdomain.com. I want to add extra field from checkout form to be delivered at someotherdomain.com along with order information. I have created custom…
Saqib Omer
  • 5,387
  • 7
  • 50
  • 71
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,268
  • 18
  • 22
5
votes
1 answer

Is it possible to select more than one status in the WooCommerce API orders endpoint?

I am reading orders from a WooCommerce site with the REST API (v1, OAuth), filtering for order status: http://mypage.com/wc-api/v1/orders?status=on-hold Works fine. Now I would like to filter for multiple statuses. Is this possible?…
Manuel M
  • 809
  • 1
  • 10
  • 25
4
votes
0 answers

Woocommerce adding a new column in customers list

I would like to add a new column to Customers list. This issue was evoked here Add columns to WooCommerce Reports / Customer List, but there is no answer about the customer list. Thanks in advance.
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…
1 2
3
63 64