← WooCommerce

Update Order Status with WooCommerce API

Pipedream makes it easy to connect APIs for WooCommerce and 1000+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Update Order Status with the WooCommerce API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Update Order Status with the WooCommerce API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Update Order Status action
    1. Connect your WooCommerce account
    2. Configure Order ID
    3. Select a Status
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Update Order Status with WooCommerce API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + WooCommerce
 
Try it
Update Order Status with WooCommerce API on New Message from Discord API
Discord + WooCommerce
 
Try it
Update Order Status with WooCommerce API on New Message in Channel from Discord Bot API
Discord Bot + WooCommerce
 
Try it
Update Order Status with WooCommerce API on New Submission from Typeform API
Typeform + WooCommerce
 
Try it
Update Order Status with WooCommerce API on Custom Events from Zoom API
Zoom + WooCommerce
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Update Order Status on WooCommerce
Description:Update the status of a specific order. [See the docs](https://woocommerce.github.io/woocommerce-rest-api-docs/?javascript#update-an-order)
Version:0.0.1
Key:woocommerce-update-order-status

Code

import woocommerce from "../../woocommerce.app.mjs";

export default {
  key: "woocommerce-update-order-status",
  name: "Update Order Status",
  description: "Update the status of a specific order. [See the docs](https://woocommerce.github.io/woocommerce-rest-api-docs/?javascript#update-an-order)",
  version: "0.0.1",
  type: "action",
  props: {
    woocommerce,
    orderId: {
      propDefinition: [
        woocommerce,
        "orderId",
      ],
    },
    orderStatus: {
      propDefinition: [
        woocommerce,
        "orderStatus",
      ],
      optional: false,
    },
  },
  async run({ $ }) {

    const data = {
      status: this.orderStatus,
    };

    const response = await this.woocommerce.updateOrder(this.orderId, data);

    $.export("$summary", `Successfully updated status to ${this.orderStatus} for order ID: ${response.id}`);

    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
WooCommercewoocommerceappThis component uses the WooCommerce app.
Order IDorderIdinteger

ID of the Order

StatusorderStatusstringSelect a value from the drop down menu:pendingprocessingon-holdcompletedcancelledrefundedfailedtrash

Authentication

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.

  1. Find your API key at WooCommerce > Settings > Advanced > REST API. See the WooCommerce docs for more info. Enter the Key and Secret below.

  2. 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 https://mystore.com below.

About WooCommerce

Open source eCommerce platform built for WordPress

More Ways to Use WooCommerce

Triggers

New Coupon Event (Instant) from the WooCommerce API

Emit new event each time the specified coupon event(s) occur

 
Try it
New Customer Event (Instant) from the WooCommerce API

Emit new event each time the specified customer event(s) occur

 
Try it
New Order Event (Instant) from the WooCommerce API

Emit new event each time the specified order event(s) occur

 
Try it
New Product Event (Instant) from the WooCommerce API

Emit new event each time the specified product event(s) occur

 
Try it

Actions

Create Customer with the WooCommerce API

Creates a new customer. See the docs

 
Try it
Create Order with the WooCommerce API

Creates a new order. See the docs

 
Try it
Create Product with the WooCommerce API

Creates a new product. See the docs

 
Try it
Get Customer with the WooCommerce API

Retrieve a specific customer. See the docs

 
Try it
Get Order with the WooCommerce API

Retrieve a specific order. See the docs

 
Try it