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
4
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
  • 440
  • 4
  • 16
4
votes
1 answer

Woocommerce API - Create Order With Float Quantity

Unfortunately, in my store all of the product quantities are in float. I used the below code to accept float value as a quantity in my website. // Removes the WooCommerce filter, that is validating the quantity to be an…
4
votes
1 answer

Get user meta data from woocommerce_created_customer hook in Woocommerce

I am using woocommerce API to create a customer API is working fine and the new customer is creating fine into WP. But the issue is when I am using a hook "woocommerce_created_customer" I am not able to get user meta data like "first name", "last…
4
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…
Mr. Ajay
  • 595
  • 5
  • 24
4
votes
1 answer

How to manage woocommerce subscription with api?

I'm trying to get all subscriptions from php with this code:
4
votes
1 answer

Woocommerce Product import API uploads featured images

My requirement is that I import products to my store using woocommerce API. I have multiple store setup so that I have placed my product images in CDN server. But the issue I am facing is when I import products using our tool it uploads images to…
Shwet
  • 1,740
  • 1
  • 22
  • 34
4
votes
0 answers

woocommerce api returning html, not json

I have a test site which calls are returning in JSON no problems, But on my live site (different from test site), it is returning html. I have also put in the header "Content-Type: application/json" but it is still returning HTML. I have: W3 Total…
4
votes
2 answers

What WooCommerce API should I use on the server?

I am writing a script to bulk-change product properties such as price, weight and dimension. I need to run the script directly on the server where WordPress (4.7.2) and WooCommerce (2.6.13) are installed. The options I could think of don't seem…
4
votes
0 answers

How to login with woocommerce login api in android

I am a newbie to this approach. I am integrating woocommerce into my android app. Through woocommerce products api i am able to list all the products. But i am not getting how to login into android app using woocommerce login api. I am listing the…
4
votes
1 answer

WooCommerce REST API - Get Orders using after/before parameters

I'm using the WooCommerce REST API (http://woocommerce.github.io/woocommerce-rest-api-docs/#introduction) and are able to download Customers, Orders etc successfully. I would now like to just download a list of Orders between 2 dates - I can see in…
user982124
  • 3,802
  • 11
  • 50
  • 116
4
votes
1 answer

Python unable to make connection with woocommerce rest api

I am working on a woocommerce rest api in which I am passing the product data from mongodb using python. I wrote a script for the same. First time the script ran successfully and passed two products but when I tried to pass more products it is…
User0706
  • 869
  • 1
  • 15
  • 32
4
votes
2 answers

How to sort products in WooCommerce WordPress JSON API

I am using WooCommerce JSON API on my mobile app but I am having problems sorting the the product list. This is my url https://www.storeurl.com/wp-json/wc/v1/products but I don't know which parameters to add to the url to sort the products …
X09
  • 3,295
  • 8
  • 41
  • 80
4
votes
1 answer

How to see WooCommerce API Log

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?
Jordash
  • 2,426
  • 4
  • 25
  • 63
4
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
  • 745
  • 1
  • 8
  • 23
3
votes
0 answers

How to get shipping rates in woocommerce rest api?

I am using woocommerce-rest-api to create an app of woocommerce site. To create an order in store we have to use create-order api, which requires basic all the order params. So there is a one params called shipping_lines, in which we have to pass…
Kishan Bharda
  • 3,990
  • 3
  • 18
  • 42
1 2
3
53 54