Skip to content

Notion Automations

How to Append Content to a Notion Page When a WooCommerce Order Is Refunded

To keep a refund log in Notion, use Zapify's free An order changes status trigger, set to Refunded, with the Append content to a page action. Every refund adds a line to one page for your finance or support team.

What this automation does

The automation is one trigger plus one action:

  • Trigger: An order changes status (WC_ORDER_STATUS_CHANGED, WooCommerce)
  • Action: Append content to a page (NOTION_APPEND_TO_PAGE, Notion)

When an order moves to Refunded, Zapify adds a bullet to your Notion log with the order number, total and customer.

Before you start

  • WooCommerce installed and active.
  • A Notion account, and an internal integration secret — create one at notion.so/profile/integrations. Notion's own guide is here.
  • A Notion page, such as Refund log, shared with your integration (Step 1 explains how).

PRO feature

Notion is a Zapify PRO integration and needs a Connection under Settings → Connections. The WooCommerce trigger used here is free.

How to build the automation

Step 1: Connect Notion

  1. In Notion, open My integrations and click New integration. Choose Internal, name it Zapify, and copy the Internal Integration Secret (it starts with ntn_ or secret_). Notion's own walkthrough is here.
  2. Share what Zapify may use. Open the Refund log page in Notion, click the ••• menu, choose Connections, and add your integration. Notion hides anything that has not been shared, so Zapify cannot see it until you do.
  3. In WordPress, go to Settings → Connections and click Add New.

Open the Connections tab

  1. Choose Notion, paste in the Integration secret, and name the connection something like Company Notion.

Add the Notion connection

  1. Click Test. Zapify asks Notion who the integration is and answers Connected as "Zapify" with the integration's name. If the secret is wrong it says Notion refused the credentials. instead, so you find out before building anything.
  2. Save.

See Connections for how this screen works generally.

Step 2: Create a new automation

  1. In the WordPress admin, go to Zapify → Automations.
  2. Click Add New to open the builder.
  3. Name it clearly, such as Log refunds in Notion.

Create a new automation

Step 3: Add the "An order changes status" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose WooCommerce as the app.

Select WooCommerce as the trigger

  1. Select the trigger An order changes status.

Select the order status change trigger

  1. Set the two fields that decide when it fires. Both default to Any, and setting them is part of the free trigger.
Field What it does Default
New status The status the order moves to that starts the automation. Any
Previous status The status the order moved from. Leave as Any unless the transition itself matters. Any

For example, set New status to Processing, and optionally Previous status to Pending payment to respond only to that transition.

Complete order status changed trigger

Set New status to Refunded so the automation only runs for refunds.

Step 4: Add the "Append content to a page" action

  1. Click Add Action.

Add an action

  1. Choose Notion as the app.

Select Notion as the action

  1. Select Append content to a page.

Select Append content to a page

Step 5: Configure the action

Field Required What it does
Connection Yes The Notion connection from Step 1.
Page Yes Choose Refund log.
Content Yes For example: - Order {{trigger:ORDER_NUMBER}}, {{trigger:ORDER_TOTAL}}, {{trigger:BILLING_EMAIL}}.

Step 6: Set the steps Live and save

Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.

  1. Set the trigger and every action to Live.
  2. Click Save.

Set the automation live

Step 7: Test it

Mark a test order as Refunded and check the log page.

Tokens you can use

The An order changes status trigger exposes these tokens. Insert them into any field with the {} button.

Token What it holds
New status / Previous status The statuses the order moved to and from.
Order ID / Order number / Order status Which order it was.
Order total / Currency / Payment method What it cost and how it was paid.
Order date / Number of items / Items When it was placed and what was in it.
Billing email / first name / last name / phone The customer's details from the order.
Order admin link A link to the order in WordPress admin.

The Notion action makes Page ID available to later actions.

Conclusion

With the An order changes status trigger and the Append content to a page action, refunds are written down automatically. To track every order status in a database, see updating a Notion item when an order status changes.

FAQs

Does it fire for partial refunds?

The trigger watches the order's status. A partial refund only fires it if WooCommerce moves the order to Refunded.

Can I use a database instead of a page?

Yes. Use the Create an item in a database action to get one row per refund.

Is this free in Zapify?

The An order changes status trigger from WooCommerce is free. The Notion action needs an active Zapify PRO licence and a Connection.

Why does Zapify say Notion cannot find the database or page?

Notion only shows an internal integration the pages and databases that have been shared with it. Open the database or page in Notion, click •••, choose Connections, and add your integration. Then reopen the field in Zapify; the lists are kept for about a minute. Notion's own steps are here.

Do I need to write any code?

No. The integration secret is the only thing you copy from outside Zapify.

Was this page helpful?