Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

growdev/wooconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

#WooConf 2016 - Restful WooCommerce

To prepare for the exercises, register with the assigned test area below. We will give you access to WooCommerce.

##Test areas The class will be assigned a test area and a

Product IDs 99,96,93,90,60,67,60,73

##Exercise 1 In this exercise you will get access to a sample WooCommerce store. Create API credentials. Do a simple get on a product using a client, or a library.

GET /wc-api/v3/products/<id>

##Exercise 2 In this exercise you will update a product Log into the WordPress backend to see a product to update.

PUT /wc-api/v3/products/<id>

##Exercise 3 In this exercise you will create an order Use your own email as the customer Set the order to completed status Show us the email sent to you

POST /wc-api/v3/orders

Tools

Official libraries

Exercise 3 Example

{
  "order": {
    "customer_id": 2,
    "payment_details": {
      "method_id": "bacs",
      "method_title": "Direct Bank Transfer",
      "paid": true
    },
    "billing_address": {
      "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_address": {
      "first_name": "John",
      "last_name": "Doe",
      "company": "",
      "address_1": "969 Market",
      "address_2": "",
      "city": "San Francisco",
      "state": "CA",
      "postcode": "94103",
      "country": "US"
    },
    "line_items": [
      {
        "product_id": "93",
        "quantity": 1
      }
    ]
  }
}

Resources

Documentation https://docs.woothemes.com/document/woocommerce-rest-api/

API Documentation http://woothemes.github.io/woocommerce-rest-api-docs/

Source code https://github.com/woothemes/woocommerce/tree/master/includes/api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published