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
0
votes
1 answer

Android-Cant create order using woocommerce api

Cant create order using WooCommerce API The android code (okhttp) is RequestBody formBody = new MultipartBody.Builder() .setType(MultipartBody.FORM) .addFormDataPart(oauthConsumerKeyString, oauthConsumerKeyStringValue) …
debo.stackoverflow
  • 911
  • 1
  • 10
  • 30
0
votes
1 answer

Malformed Url in case of woocommerce api through android

The "woocommerce api generate signature" url is String getUrl = GET&http%3A%2F%2Fprojectrepo.net%2Fscoop%2Fwp-json%2Fwc%2Fv2%2Forders&oauth_consumer_key%3Dck_2f53925c....6407f09f67f5f118d01ed80e%26oauth_signature_method%3DHMAC-SHA1 When the url is…
0
votes
1 answer

how can i get products for specific category from woocommerce restapi using php

I tried doing the following and applying filter etc. seems like i am doing something wrong.Don't know what. $data=$client->products->get('',array('category'=>33));
0
votes
1 answer

Use woocommerce api with express.js

This is my code. var express = require('express'); var router = express.Router(); var WooCommerceAPI = require('woocommerce-api'); var WooCommerce = new WooCommerceAPI({ url: 'https://example.ro', consumerKey:…
Paul Cozma
  • 140
  • 2
  • 10
0
votes
1 answer

Authenticate WooCommerce REST API in node.js

Okay so I'm VERRY VERRY VERRY new to the subject so please go easy on me. What I have done is to create a wordpress woocommerce website. What I want to do now is to get product-data from the wordpress site in node.js. If I have understood everything…
WilliamG
  • 451
  • 1
  • 8
  • 16
0
votes
0 answers

How can I integrate Woocommerce into an Android Application?

I am developing a mobile application for a client's Woocommerce website. I am new to Woocommerce but I know that in order to manage it from a third party application I need to use their REST API. I have viewed their documentation but it does not…
Samrodev
  • 91
  • 7
0
votes
1 answer

Woocommerce API request returns few products

I have tried to retrieve all the products of a Woocommerce shop using this kind of request, but I only get 10…
Tina
  • 11
  • 5
0
votes
1 answer

How to maintain session on my WordPress e-commerce website using WooCommerce and my android app using WooCommerce rest API?

I have my e-commerce WordPress website using WooCommerce for my inventory management. The same inventory I am using for my android app with the help of WooCommerce rest API. Now I need to maintain user session in both the places. For example if a…
user3898694
0
votes
3 answers

How to do custom pagination using woocommerce rest api in my android app?

In my android app I am using woocommerce rest api to fetch products from my inventory. As per the documentation "Requests that return multiple items will be paginated to 10 items by default." I need to fetch 25 items per request. As per the…
nishith kumar
  • 981
  • 7
  • 20
0
votes
0 answers

WC_Meta_Box_Order_Notes class not returning data

Using the Woocommerce API, I'm calling classes and showing fetched data through this syntax: $data= new class( id ); print_r($data); Everything is showing as expected except for this one: WC_Meta_Box_Order_Notes() I'm calling it through this…
elimariaaa
  • 796
  • 4
  • 10
  • 30
0
votes
2 answers

Woocommerce products not in local database but from live API

Would it be possible to not have the Woocommerce products in the local datbase but load them from an API? My supplier only has an API, I cannot download or import a database, every product / product list / categorie etc has to be requested from the…
Harmstra
  • 433
  • 1
  • 5
  • 15
0
votes
0 answers

Woocommerce REST API Client Library not working on live stores

I am using the Woocommerce REST API Client Library found [here][1] [1]: https://github.com/kloon/WooCommerce-REST-API-Client-Library . Everything works fine when the request is to my local host. However, when the request is to a live server, no data…
Dibz
  • 1
  • 3
0
votes
2 answers

Use woocommerce rest api v1 with http and javascript (not https)

Im using oauth-signature to generate my oauth-signature for connection with woocommerce api. I followed all the steps stated at woocommerce rest api documentation: The required parameters are: oauth_consumer_key, oauth_timestamp, oauth_nonce,…
Steffan
  • 704
  • 1
  • 11
  • 25
0
votes
0 answers

Woocommerce rest api custom routes not working in javascript

I have registered new custom routes for woocommerce rest api, using below code const Product_Review = 'products/reviews/(?P[\d]+)'; public function register_routes( $routes ) { $routes[ self::Product_Review ] = array(array( …
0
votes
1 answer

Javascript serialization params with arrays

I'm creating an App that feeds with Woo commerce. By now I can show the products list and access to a product , but I'm not able to create an order. This is the function that creates and POST's the order : this.order = function(products, address,…
llermaly
  • 2,331
  • 2
  • 16
  • 29