The WooCommerce API allows developers to interact with WooCommerce sites in a number of ways. With the API, developers can create, read, update, and delete data such as products, orders, customers, etc. WooCommerce also provides a number of API endpoints for retrieving information about the site, such as settings, currencies, etc.
Here are some examples of what you can build using the WooCommerce API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
woocommerce: {
type: "app",
app: "woocommerce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.woocommerce.$auth.url}/wp-json/wc/v2/orders`,
auth: {
username: `${this.woocommerce.$auth.key}`,
password: `${this.woocommerce.$auth.secret}`,
},
})
},
})
Emit new event each time the specified coupon event(s) occur
Emit new event each time the specified customer event(s) occur
Emit new event each time the specified order event(s) occur
Emit new event each time the specified product event(s) occur
WooCommerce uses API keys for authentication. When you connect your WooCommerce account, Pipedream securely stores the keys so you can easily authenticate to WooCommerce APIs in both code and no-code steps.
Find your API key at WooCommerce > Settings > Advanced > REST API. See the WooCommerce docs for more info. Enter the Key and Secret below.
Enter the domain of your store as the URL below. For example, if you run a store at https://mystore.com/wp-json/wc/v2/orders
, enter mystore.com
below.