Using WooCommerce actions in action flows

<body>
<p id="docs-hc-snippet" style="display: none;">Before you can include external actions in your action flows, you must connect the action builder to the external system.</p>
<div class="article-banners">
<div id="docs-wmp-link">
<a href="https://support.zendesk.com/hc/en-us/articles/5411234991258-plan" rel="noopener" target="_blank">What's my plan?</a>
</div>
<div class="article-banner" id="suite_gpee">
<table>
<tbody>
<tr>
<td>
<strong>All Suites</strong>
</td>
<td>Growth, Professional, Enterprise, or Enterprise Plus</td>
</tr>
</tbody>
</table>
</div>
<div class="article-banner" id="support_all">
<table>
<tbody>
<tr>
<td>
<strong>Support</strong>
</td>
<td>Team, Professional, or Enterprise</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="docs-ai-summary">
<p id="docs-ai-summary-toggle">Summary: <span id="up-triangle">◀</span><span id="down-triangle">▼</span></p>
<p id="docs-ai-summary-content">Connect WooCommerce to action flows to automate customer, order, product, and coupon tasks from your workflows. You can create, look up, search, and update records, which helps you manage support cases, promotions, and store data from one place. Use a dedicated service account and review access scopes before connecting.</p>
</div>
<div class="body">
<div class="p">By connecting the <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/8855513857306" target="_blank">action builder</a> to external systems, such as WooCommerce,
admins can integrate Zendesk with external systems in automated workflows, improving
collaboration and maintaining a seamless experience across multiple platforms.<div class="note" id="zug_action_flow_external_WooCommerce__note_gtq_k2q_lkc">
<span class="notetitle">Note:</span> The steps associated with external systems in action flows are
referred to collectively as <em class="ph i">external actions</em>.</div>
</div>
<div class="p">This article contains the following topics:<ul class="ul" id="zug_action_flow_external_WooCommerce__ul_omj_bj4_zgc">
<li class="li"><a class="xref" href="#topic_wkn_2bk_4hc">Connecting WooCommerce to action builder</a></li>
<li class="li"><a class="xref" href="#topic_ffm_hbk_4hc">Using WooCommerce actions in action flows</a></li>
</ul>
</div>
</div>
<div aria-labelledby="ariaid-title2" class="topic nested1" id="topic_wkn_2bk_4hc">
<h2 class="title topictitle2" id="ariaid-title2">Connecting WooCommerce to action builder</h2>
<div class="body">
<p class="p">Before you can include external actions in your action flows, you must connect the
action builder to the external system.</p>
<div class="p">When connecting to external systems for use in action flows, the following best practices are recommended:<ul class="ul" id="topic_wkn_2bk_4hc__d8e13">
<li class="li">All external actions performed by an action flow are attributed to the user who connected the
external system. Therefore, it's a best practice to use a dedicated service
account rather than personal credentials when connecting to each external
system.</li>
<li class="li">All integrations request access to necessary scopes. However, it's important that you review and validate the scopes before authorizing the connection to the external system.</li>
<li class="li">When managing credentials for API key-based tools, such as OpenAI, it's best to store keys in a secure vault or credential manager.</li>
</ul>
</div>
<div class="p">
<strong class="ph b">To connect action builder to WooCommerce</strong><ol class="ol" id="topic_wkn_2bk_4hc__ol_psh_lk4_zgc">
<li class="li"><span class="ph">In <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/4581766374554#topic_hfg_dyz_1hb" target="_blank">Admin Center</a>, click <img class="image" src="https://zen-marketing-documentation.s3.amazonaws.com/docs/en/ac_apps_integrations_icon.png">
<strong class="ph b">Apps and integrations</strong> in the sidebar, then select <strong class="ph b">Actions &gt; Action
flows</strong>.</span></li>
<li class="li">
<a class="xref" href="https://support.zendesk.com/hc/en-us/articles/8855601898266" target="_blank">Create</a> or <a class="xref" href="https://support.zendesk.com/hc/en-us/articles/9052312956570" target="_blank">edit</a> an action flow.</li>
<li class="li">Open the step sidebar.</li>
<li class="li">Under <strong class="ph b">External actions</strong>, click <strong class="ph b">WooCommerce</strong>.</li>
<li class="li">Click <strong class="ph b">Connect</strong>.</li>
<li class="li">Follow WooCommerce's prompts to authenticate and complete the
connection.<div class="p">The WooCommerce connection requires the following
credentials:<ul class="ul" id="topic_wkn_2bk_4hc__ul_e4x_qjq_lkc">
<li class="li">
<strong class="ph b">WooCommerce store URL</strong>: The WooCommerce store domain (for
example, mystore.com). Enter only the domain; don't enter a
https:// prefix or trailing path.</li>
<li class="li">
<strong class="ph b">Consumer key</strong>: The Consumer Key from WooCommerce Settings,
Advanced, REST API. Ensure the key has Read/Write
permissions.</li>
<li class="li">
<strong class="ph b">Consumer secret</strong>: The Consumer Secret generated alongside
the Consumer Key. Keep this value confidential.</li>
</ul>
</div>
<div class="note" id="topic_wkn_2bk_4hc__note_itq_k2q_lkc">
<span class="notetitle">Note:</span> All external actions performed by
an action flow are attributed to the user who connected the external
system. Therefore, it's a best practice to use a dedicated service
account rather than personal credentials when connecting to each
external system.</div>
</li>
</ol>
</div>
<p class="p">After you've connected to the system, you'll see an indicator that it's connected and
details about the instance you're connected to, as well as the actions available for
WooCommerce.</p>
</div>
</div>
<div aria-labelledby="ariaid-title3" class="topic nested1" id="topic_ffm_hbk_4hc">
<h2 class="title topictitle2" id="ariaid-title3">Using WooCommerce actions in action flows</h2>
<div class="body">
<p class="p">WooCommerce action steps can be used to add and manage employee details and time off
requests in WooCommerce.</p>
<div class="p">The following WooCommerce actions are available:<ul class="ul" id="topic_ffm_hbk_4hc__ul_vk4_fl4_zgc">
<li class="li"><a class="xref" href="#topic_p2s_jbk_4hc">Create coupon</a></li>
<li class="li"><a class="xref" href="#topic_vyx_jbk_4hc">Create customer</a></li>
<li class="li"><a class="xref" href="#topic_jgy_y3r_4hc">Create product</a></li>
<li class="li"><a class="xref" href="#topic_pt4_z3r_4hc">Lookup customer</a></li>
<li class="li"><a class="xref" href="#topic_wyy_f3v_kkc">Lookup order</a></li>
<li class="li"><a class="xref" href="#topic_bz1_33v_kkc">Lookup product</a></li>
<li class="li"><a class="xref" href="#topic_wpb_j3v_kkc">Search customers</a></li>
<li class="li"><a class="xref" href="#topic_b5t_j3v_kkc">Search orders</a></li>
<li class="li"><a class="xref" href="#topic_br3_l3v_kkc">Search products</a></li>
<li class="li"><a class="xref" href="#topic_igz_l3v_kkc">Update customer</a></li>
<li class="li"><a class="xref" href="#topic_gxx_m3v_kkc">Update product</a></li>
</ul>
</div>
</div>
<div aria-labelledby="ariaid-title4" class="topic nested2" id="topic_p2s_jbk_4hc">
<h3 class="title topictitle3" id="ariaid-title4">Creating a coupon</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Create coupon</em> action to create a discount coupon in WooCommerce
for promotions or customer service recovery.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_p2s_jbk_4hc__table_rrw_1mz_hgc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e256" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e258" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e256" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e258" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Coupon code</code><p class="p">Optional:
<code class="ph codeph">Amount</code>,
<code class="ph codeph">Description</code>, <code class="ph codeph">Discount
type</code>, <code class="ph codeph">Email restrictions</code>,
<code class="ph codeph">Exclude sale items</code>, <code class="ph codeph">Expiry
date</code>, <code class="ph codeph">Free
shipping</code>,<code class="ph codeph"> Individual use</code>,
<code class="ph codeph">Maximum order amount</code>,
<code class="ph codeph">Minimum order amount</code>, <code class="ph codeph">Usage
limit</code>, <code class="ph codeph">Usage limit per
user</code></p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e256" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e258" style="text-align:left;vertical-align:top;">Coupon details including ID, code, amount, discount type,
description, usage count, usage limits, individual use flag,
free shipping flag, minimum amount, maximum amount, expiry
date, and creation date.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title5" class="topic nested2" id="topic_vyx_jbk_4hc">
<h3 class="title topictitle3" id="ariaid-title5">Creating a customer</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Create customer</em> action to create a new customer record in
WooCommerce.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry nocellnorowborder" id="d89e360" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cell-norowborder" id="d89e362" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry nocellnorowborder" headers="d89e360" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cell-norowborder" headers="d89e362" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Email</code><p class="p">Optional:
<code class="ph codeph">Billing address line 1</code>,
<code class="ph codeph">Billing city</code>, <code class="ph codeph">Billing
country</code>, <code class="ph codeph">Billing email</code>,
<code class="ph codeph">Billing first name</code>, <code class="ph codeph">Billing
last name</code>, <code class="ph codeph">Billing phone</code>,
<code class="ph codeph">Billing postcode</code>, <code class="ph codeph">Billing
state</code>, <code class="ph codeph">First name</code>,
<code class="ph codeph">Last name</code>, <code class="ph codeph">Shipping address
line 1</code>, <code class="ph codeph">Shipping city</code>,
<code class="ph codeph">Shipping country</code>, <code class="ph codeph">Shipping
first name</code>, <code class="ph codeph">Shipping last
name</code>, <code class="ph codeph">Shipping postcode</code>,
<code class="ph codeph">Shipping state</code>,
<code class="ph codeph">Username</code></p>
</td>
</tr>
<tr class="row">
<td class="entry row-nocellborder" headers="d89e360" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e362" style="text-align:left;vertical-align:top;">Customer details including ID, email, first name, last
name, username, and creation date.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title6" class="topic nested2" id="topic_jgy_y3r_4hc">
<h3 class="title topictitle3" id="ariaid-title6">Creating a product</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Create product</em> action to create a new product in the WooCommerce
store catalog.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_jgy_y3r_4hc__table_sj4_zsr_4hc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e486" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e488" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e486" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e488" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Name</code><p class="p">Optional:
<code class="ph codeph">Categories</code>,
<code class="ph codeph">Description</code>, <code class="ph codeph">Manage
stock</code>, <code class="ph codeph">Regular price</code>,
<code class="ph codeph">Sale price</code>, <code class="ph codeph">Short
description</code>, <code class="ph codeph">SKU</code>,
<code class="ph codeph">Status</code>, <code class="ph codeph">Stock
quantity</code>, <code class="ph codeph">Stock status</code>,
<code class="ph codeph">Type</code>,
<code class="ph codeph">Weight</code></p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e486" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e488" style="text-align:left;vertical-align:top;">Product details including ID, name, slug, permalink,
type, status, SKU, price, stock quantity, stock status, and
creation date.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title7" class="topic nested2" id="topic_pt4_z3r_4hc">
<h3 class="title topictitle3" id="ariaid-title7">Looking up a customer</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Lookup customer</em> action to retrieve a single WooCommerce customer
by their ID or email address.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_pt4_z3r_4hc__table_b1m_2tr_4hc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e591" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e593" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e591" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e593" style="text-align:left;vertical-align:top;">Optional: <code class="ph codeph">Customer ID</code>,
<code class="ph codeph">Email</code>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e591" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e593" style="text-align:left;vertical-align:top;">Customer details including ID, email, name, username,
billing and shipping addresses, paying customer status,
order count, total spent, avatar URL, and
timestamps.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title8" class="topic nested2" id="topic_wyy_f3v_kkc">
<h3 class="title topictitle3" id="ariaid-title8">Looking up an order</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Lookup order</em> action to retrieve a single WooCommerce order by its
ID with full details.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_wyy_f3v_kkc__table_xyy_f3v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e659" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e661" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e659" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e661" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Order ID</code>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e659" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e661" style="text-align:left;vertical-align:top;">Order details including ID, order number, status,
currency, totals, customer information, billing and shipping
addresses, payment details, line items array, and
timestamps.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title9" class="topic nested2" id="topic_bz1_33v_kkc">
<h3 class="title topictitle3" id="ariaid-title9">Looking up a product</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Lookup product</em> action to retrieve a single WooCommerce product by
its ID.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_bz1_33v_kkc__table_cz1_33v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e724" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e726" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e724" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e726" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Product ID</code>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e724" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e726" style="text-align:left;vertical-align:top;">Product details including ID, name, slug, permalink,
type, status, SKU, pricing, description, stock management,
categories array, images array, and timestamps.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title10" class="topic nested2" id="topic_wpb_j3v_kkc">
<h3 class="title topictitle3" id="ariaid-title10">Searching customers</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Search customers</em> action to find WooCommerce customers by name,
email, or username.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_wpb_j3v_kkc__table_xpb_j3v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e789" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e791" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e789" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e791" style="text-align:left;vertical-align:top;">
<p class="p">Optional: <code class="ph codeph">Email</code>, <code class="ph codeph">Page</code>,
<code class="ph codeph">Results per page</code>,
<code class="ph codeph">Filter</code></p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e789" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e791" style="text-align:left;vertical-align:top;">Paginated results containing customer array with ID,
email, name, username, order count, total spent, and
creation date, plus pagination metadata.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title11" class="topic nested2" id="topic_b5t_j3v_kkc">
<h3 class="title topictitle3" id="ariaid-title11">Searching orders</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Search orders</em> action to find WooCommerce orders by status,
customer email, or date range.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_b5t_j3v_kkc__table_c5t_j3v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e866" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e868" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e866" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e868" style="text-align:left;vertical-align:top;">Optional: <code class="ph codeph">Created after</code>, <code class="ph codeph">Created
before</code>, <code class="ph codeph">Page</code>, <code class="ph codeph">Results
per page</code>, <code class="ph codeph">Filter</code>,
<code class="ph codeph">Status</code>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e866" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e868" style="text-align:left;vertical-align:top;">Paginated results containing order array with ID, order
number, status, currency, total, customer details, billing
email, and creation date, plus pagination metadata.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title12" class="topic nested2" id="topic_br3_l3v_kkc">
<h3 class="title topictitle3" id="ariaid-title12">Searching products</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Search products</em> action to find WooCommerce products by name, SKU,
category, or status.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_br3_l3v_kkc__table_cr3_l3v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e947" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e949" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e947" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e949" style="text-align:left;vertical-align:top;">Optional: <code class="ph codeph">Category ID</code>,
<code class="ph codeph">Page</code>, <code class="ph codeph">Results per
page</code>, <code class="ph codeph">Filter</code>,
<code class="ph codeph">SKU</code>, <code class="ph codeph">Status</code>, <code class="ph codeph">Stock
status</code>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e947" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e949" style="text-align:left;vertical-align:top;">Paginated results containing product array with ID, name,
SKU, pricing, stock details, status, type, and permalink,
plus pagination metadata.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title13" class="topic nested2" id="topic_igz_l3v_kkc">
<h3 class="title topictitle3" id="ariaid-title13">Updating a customer</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Update customer</em> action to update an existing WooCommerce customer
profile or addresses.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_igz_l3v_kkc__table_jgz_l3v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e1032" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e1034" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e1032" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e1034" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Customer ID</code><p class="p">Optional:
<code class="ph codeph">Billing address line 1</code>,
<code class="ph codeph">Billing city</code>, <code class="ph codeph">Billing
country</code>, <code class="ph codeph">Billing email</code>,
<code class="ph codeph">Billing first name</code>, <code class="ph codeph">Billing
last name</code>, <code class="ph codeph">Billing phone</code>,
<code class="ph codeph">Billing postcode</code>, <code class="ph codeph">Billing
state</code>, <code class="ph codeph">Email</code>,
<code class="ph codeph">First name</code>, <code class="ph codeph">Last
name</code>, <code class="ph codeph">Shipping address line
1</code>, <code class="ph codeph">Shipping city</code>,
<code class="ph codeph">Shipping country</code>, <code class="ph codeph">Shipping
first name</code>, <code class="ph codeph">Shipping last
name</code>, <code class="ph codeph">Shipping postcode</code>,
<code class="ph codeph">Shipping state</code></p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e1032" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e1034" style="text-align:left;vertical-align:top;">Customer details including ID, email, first name, last
name, and modification date.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div aria-labelledby="ariaid-title14" class="topic nested2" id="topic_gxx_m3v_kkc">
<h3 class="title topictitle3" id="ariaid-title14">Updating a product</h3>
<div class="body">
<p class="p">Use the <em class="ph i">Update product</em> action to update an existing WooCommerce product
price, stock, or details.</p>
<p class="p">This action has the following inputs and outputs:</p>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_gxx_m3v_kkc__table_hxx_m3v_kkc" rules="all" summary="">
<colgroup>
<col>
<col>
</colgroup>
<thead class="thead" style="text-align:left;">
<tr class="row">
<th class="entry cellrowborder" id="d89e1158" style="text-align:left;vertical-align:top;"> </th>
<th class="entry cellrowborder" id="d89e1160" style="text-align:left;vertical-align:top;">Variables</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d89e1158" style="text-align:left;vertical-align:top;">Inputs</td>
<td class="entry cellrowborder" headers="d89e1160" style="text-align:left;vertical-align:top;">Required: <code class="ph codeph">Product ID</code><p class="p">Optional:
<code class="ph codeph">Description</code>, <code class="ph codeph">Name</code>,
<code class="ph codeph">Regular price</code>, <code class="ph codeph">Sale
price</code>, <code class="ph codeph">Short description</code>,
<code class="ph codeph">SKU</code>, <code class="ph codeph">Status</code>,
<code class="ph codeph">Stock quantity</code>, <code class="ph codeph">Stock
status</code></p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d89e1158" style="text-align:left;vertical-align:top;">Output</td>
<td class="entry cellrowborder" headers="d89e1160" style="text-align:left;vertical-align:top;">Product details including ID, name, SKU, price, stock
quantity, stock status, and modification date.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script id="docs-schema-markup" type="application/ld+json">{
"@context": "https://schema.org",
"@type": "TechArticle",
"@id": "https://support.zendesk.com/hc/en-us/articles/11208001685018",
"url": "https://support.zendesk.com/hc/en-us/articles/11208001685018-Using-WooCommerce-actions-in-action-flows",
"headline": "Using WooCommerce actions in action flows",
"description": "You connect the action builder to WooCommerce in action flows, then use actions to create, look up, search, or update customers, orders, products, and coupons.",
"articleSection": "Product help",
"datePublished": "2026-09-03T20:00:58.473137+00:00",
"dateModified": "2026-09-03T20:01:01.990585+00:00",
"inLanguage": "en",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://support.zendesk.com/hc/en-us/articles/11208001685018"
},
"author": {
"@type": "Organization",
"name": "Zendesk",
"@id": "https://www.zendesk.com"
},
"publisher": {
"@type": "Organization",
"name": "Zendesk",
"@id": "https://www.zendesk.com"
},
"isPartOf": {
"@type": "WebSite",
"name": "Zendesk Help",
"@id": "https://support.zendesk.com/hc/"
},
"about": {
"@type": "SoftwareApplication",
"name": "Zendesk",
"@id": "https://www.zendesk.com"
}
}</script><script id="ai-summary-script">
//<![CDATA[
const ai_summary_style = document.createElement('style');
ai_summary_style.innerHTML = `#styled-article-body{padding:0 0 0}#article-body #docs-ai-summary{background-color:#f3f3f3;border:1px solid #d3d3d3;padding:10px 10px 6px;margin-bottom:16px}#article-body #docs-ai-summary #docs-ai-summary-toggle{font-size:.9em;font-weight:700;margin-bottom:4px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}#article-body #docs-ai-summary #docs-ai-summary-toggle #up-triangle{margin-left:auto;padding-right:10px;display:none}#article-body #docs-ai-summary #docs-ai-summary-toggle #down-triangle{margin-left:auto;padding-right:10px}#article-body #docs-ai-summary #docs-ai-summary-content{font-size:.9em;padding-left:25px;padding-right:25px;margin-bottom:12px}`;
document.head.appendChild(ai_summary_style);

const toggleAISummary = () => {
const summary = document.getElementById("docs-ai-summary-content");
const upTriangle = document.getElementById("up-triangle");
const downTriangle = document.getElementById("down-triangle");
if (summary.style.display === "none") {
summary.style.display = "block";
upTriangle.style.display = "none";
downTriangle.style.display = "inline";
} else {
summary.style.display = "none";
upTriangle.style.display = "inline";
downTriangle.style.display = "none";
}
};

document.getElementById("docs-ai-summary-toggle").addEventListener("click", toggleAISummary);
//]]>
</script>
</body>