Horje
This plugin is created for handling WooCommerce related REST API So, to use this plugin you need to install and activate WC REST API. Wordpress Tutorial

Noted That:

  • To install correctly this appy-pie-connect-for-woocommerce.zip .
  • Fisrt Download the appy-pie-connect-for-woocommerce.zip to your computer
  • Extract/Open appy-pie-connect-for-woocommerce.zip to Your Computer.
  • Then, Find readme.txt file inside appy-pie-connect-for-woocommerce.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " appy-pie-connect-for-woocommerce.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " appy-pie-connect-for-woocommerce.zip "  Downloaded plugin from your computer, Where you downloaded appy-pie-connect-for-woocommerce.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Appy Pie Connect for WooCommerce " folder is added on left sidemenu. Now, Click on " Appy Pie Connect for WooCommerce " folder.

   Noted that: If you do not see " Appy Pie Connect for WooCommerce " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Appy Pie Connect for WooCommerce Configurtions and Settings or How to work " Appy Pie Connect for WooCommerce " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Appy Pie Connect for WooCommerce " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Appy Pie Connect for WooCommerce
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  1. Download and extract plugin files to a wp-content/plugin directory
  2. Activate the plugin through the WordPress admin interface
  3. You are all done!

API autorization

  • Pass header on authentication, username, password, mandatory,

### Customer Listing API

  1. Create customer API,(http://example.com/wp-json/wc/v3/customer/create/)
  2. Listing of customer API,(http://example.com/wp-json/wc/v3/customer/list/)
  3. Pagination integrated API,(http://example.com/wp-json/wc/v3/customer/list?per_page=10paged=1)
  4. Update customer API,(http://example.com/wp-json/wc/v3/customer/update)
  5. Customer Filter API,(http://example.com/wp-json/wc/v3/customer/list?search=”Search by username,email_id”)
  6. Search Customer by date and time,(http://example.com/wp-json/wc/v3/customer/list?date=2020-07-02 10:59:10)
  7. View customer by customer id,(http://example.com/wp-json/wc/v3/customer/detail/2)

### Data Format For Creating Customer

{
“email”:”[email protected]”,
“first_name”:”John”,
“last_name”:”Doe”,
“username”:”john”,
“password”:”Feb@2020k”,
“billing”:[
{
“first_name”:”John”,
“last_name”:”Doe”,
“company”: “”,
“address_1?:”969 Market”,
“address_2?:””,
“city”:”San Francisco”,
“state”:”CA”,
“postcode”:”94103?,
“country”:”US”,
“email”:”[email protected]”,
“phone”:”(555) 555-5555?
}
],
“shipping”: [
{
“first_name”:”John”,
“last_name”: “Doe”,
“company”: “”,
“address_1?:”969 Market”,
“address_2?:””,
“city”:”San Francisco”,
“state”:”CA”,
“postcode”:”94103?,
“country”:”US”
}
]
}

### Data Format For Updating Customer

{
“email”:”[email protected]”,
“first_name”:”John”,
“last_name”:”Doe”,
“user_id”:11,
“billing”:[
{
“first_name”:”John”,
“last_name”:”Doe”,
“company”: “”,
“address_1?:”969 Market”,
“address_2?:””,
“city”:”San Francisco”,
“state”:”CA”,
“postcode”:”94103?,
“country”:”US”,
“email”:”[email protected]”,
“phone”:”(555) 555-5555?
}
],
“shipping”: [
{
“first_name”:”John”,
“last_name”: “Doe”,
“company”: “”,
“address_1?:”969 Market”,
“address_2?:””,
“city”:”San Francisco”,
“state”:”CA”,
“postcode”:”94103?,
“country”:”US”
}
]
}

### Product Listing API

  1. Create Product API,(http://example.com/wp-json/wc/v3/product/create/)
  2. Product Listing API,(http://example.com/wp-json/wc/v3/product/list/)
  3. Pagination Integrated API,(http://example.com/wp-json/wc/v3/product/list/?per_page=10&paged=1)
  4. Product Filter By Date and Time API,(http://example.com/wp-json/wc/v3/product/list?date=2020-07-02 10:59:10)
  5. View Product Detail By Product id,(http://example.com/wp-json/wc/v3/product/list/63)
  6. Search Product By Product id,(http://example.com/wp-json/wc/v3/product/list/?product_id=63)
  7. Delete Product API,(http://example.com/wp-json/wc/v3/product/delete/129)
  8. Update Product API,(http://example.com/wp-json/wc/v3/product/update)
  9. Product Filter By Title (http://example.com/wp-json/wc/v3/product/list/?search=’Search by product title’)

### Data Format For Creating Product

{
“name”:”Product title”,
“type”:”simple”,
“description”:”Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.”,
“short_description”:”Testing”,
“status”:”publish”,
“_regular_price”:”21.99?,
“_sale_price”:””,
“categories”:[],
“images”:[
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_2_front.jpg”},
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_2_back.jpg”},
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_3_front.jpg”},
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_3_back.jpg”}
],
“attributes”:[
{
“name”:”Color”,
“visible”:”false”,
“variation”:”true”,
“value”:”Black|Green”
},
{
“name”:”Size”,
“visible”: “false”,
“variation”:”true”,
“value”:”S|M”

}
],
“_manage_stock”:”true”,
“_stock”:”5?
}

### Data Format For Updating Product

{
“product_id”:”90?,
“name”:”Product title”,
“type”:”simple”,
“description”:”Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.”,
“short_description”:”Testing”,
“status”:”publish”,
“_regular_price”:”21.99?,
“_sale_price”:””,
“categories”:[],
“images”:[
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_2_front.jpg”},
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_2_back.jpg”},
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_3_front.jpg”},
{“src”:”http://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_3_back.jpg”}
],
“attributes”:[
{
“name”:”Color”,
“visible”:”false”,
“variation”:”true”,
“value”:”Black|Green”
},
{
“name”:”Size”,
“visible”: “false”,
“variation”:”true”,
“value”:”S|M”

}
],
“_manage_stock”:”true”,
“_stock”:”5?
}

### Order Listing API

  1. Create Order API,(http://example.com/wp-json/wc/v3/order/create/)
  2. Order Listing API,(http://example.com/wp-json/wc/v3/order/list/)
  3. Pagination Integrated API,(http://example.com/wp-json/wc/v3/order/list?per_page=12&paged=1)
  4. Order Listing By Status API,(http://example.com/wp-json/wc/v3/order/list/?order_status=wc-on-hold)
  5. Order Listing By Date and Time API,(http://example.com/wp-json/wc/v3/order/list/?date=2020-07-02 10:59:10)
  6. View Order By Order Id API,(http://example.com/wp-json/wc/v3/order/list/40)

  7. Search Order By Order No, Email,First_name,Last_name,Phone_no API,(http://localhost/woocommerceapi/wp-json/wc/v3/order/list/?search=”Search by order_no, email,first_name,last_name,phone_no”)

  8. Update Order By Order_id API,(http://example.com/wp-json/wc/v3/order/update/)
  9. Delete Order By Order ID API,(http://example.com/wp-json/wc/v3/order/delete/164)

### Data Format For Creating Order

{
“payment_method”: “cod”,
“billing”: {
“first_name”: “John”,
“last_name”: “Doe”,
“address_1”: “969 Market”,
“address_2”: “”,
“city”: “San Francisco”,
“state”: “CA”,
“postcode”: “94103”,
“country”: “US”,
“email”: “[email protected]”,
“phone”: “(555) 555-5555”
},
“shipping”: {
“first_name”: “John”,
“last_name”: “Doe”,
“address_1”: “969 Market”,
“address_2”: “”,
“city”: “San Francisco”,
“state”: “CA”,
“postcode”: “94103”,
“country”: “US”
},
“user_id”:””,
“order_comments”:””,
“line_items”: [
{
“product_id”: 92,
“quantity”: 1
},
{
“product_id”: 93,
‘variation_id’ => 23,
‘quantity’ => 1
}
],
“coupon_items”: [
{
“code”: “xvh73rae”
}
]
}

### Data Format For Updating Order

{
“billing”: {
“first_name”: “John”,
“last_name”: “Doe”,
“address_1”: “969 Market”,
“address_2”: “”,
“city”: “San Francisco”,
“state”: “CA”,
“postcode”: “94103”,
“country”: “US”,
“email”: “[email protected]”,
“phone”: “(555) 555-5555”
},
“shipping”: {
“first_name”: “John”,
“last_name”: “Doe”,
“address_1”: “969 Market”,
“address_2”: “”,
“city”: “San Francisco”,
“state”: “CA”,
“postcode”: “94103”,
“country”: “US”
},
“order_comments”:””,
“line_items”: [
{
“id”: 130,
“quantity”: 1,
“subtotal”: “21.99”,
“total”: “18.66”,
“price”: “21.99”
},
{
“id”: 129,
“quantity”: 2,
“subtotal”: “43.98”,
“total”: “37.31”,
“price”: “21.99”
}
]
}

### Coupons Listing API

  1. Create Coupon API,(http://example.com/wp-json/wc/v3/coupons/create/)
  2. Coupons Listing API,(http://example.com/wp-json/wc/v3/coupons/list)
  3. Coupon Search Filter By Coupon Code API,(http://example.com/wp-json/wc/v3/coupons/list?code=vdtfyach)
  4. Coupon Search By Date And Time API, (http://example.com/wp-json/wc/v3/coupons/list?date=2020-07-10 08:30:40)
  5. Search Coupon By Id API,(http://example.com/wp-json/wc/v3/coupons/list?coupon_id=162)
  6. View Single Coupon Detail API, (http://example.com/wp-json/wc/v3/coupons/list/162)
  7. Delete Coupons By ID API,(http://example.com/wp-json/wc/v3/coupons/delete/12)
  8. Update Coupons By Coupon ID (http://example.com/wp-json/wc/v3/coupons/update)

### Data Format For Creating Coupon

{
“code”:”B4H8MFNJ”,
“type”:”percent”,
“amount”:”20?,
“individual_use”:”true”,
“expiry_date”:”2020-07-31?,
“exclude_sale_items”: “true”,
“minimum_amount”:”500.00?,
“maximum_amount”:”1000.00?,
“description”:”its for testing purpose”
}

### Data Format For Updating Coupons

{
“coupon_id”:”11?,
“code”:”B4H8MFNJ”,
“type”:”percent”,
“amount”:”20?,
“individual_use”:”true”,
“expiry_date”:”2020-07-31?,
“exclude_sale_items”: “true”,
“minimum_amount”:”500.00?,
“maximum_amount”:”1000.00?,
“description”:”its for testing purpose”
}


rest , created , handling , woocommerce , related , install , activate , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference