Automatically Log Your Daily Zendrop Order Summary to Notion Every Morning
This workflow pulls your Zendrop order data via HTTP request each morning and creates a clean daily summary page in Notion. E-commerce managers get a consolidated view of orders without manually logging into Zendrop.
- 1
Step 1 — Set up the daily Schedule Trigger
Add a
Schedule Triggernode. SetTrigger IntervaltoDaysandHourto7so the workflow fires every morning at 7 AM. This is the starting point of the automation. - 2
Step 2 — Fetch yesterday's orders from Zendrop
Add an
HTTP Requestnode. SetMethodtoGETandURLtohttps://api.zendrop.com/v1/orders. In theHeaderssection addAuthorizationwith valueBearer YOUR_ZENDROP_API_KEY. InQuery Parametersaddstart_dateandend_dateboth pointing to yesterday's date using the expression{{$today.minus({days:1}).toFormat('yyyy-MM-dd')}}. Store your API key in n8n credentials or the node notes field — never hardcode it in plain text. - 3
Step 3 — Summarise the order data
Add a
Setnode connected to the HTTP Request output. Create three fields:orderCountset to{{$json.data.length}},reportDateset to{{$today.minus({days:1}).toFormat('yyyy-MM-dd')}}, andrawSummaryset toOrders fetched: {{$json.data.length}} for {{$today.minus({days:1}).toFormat('yyyy-MM-dd')}}. This flattens the response into simple values ready for Notion. - 4
Step 4 — Create a summary page in Notion
Add a
Notionnode. SetOperationtoCreateandResourcetoPage. Connect your Notion account via the built-in OAuth credential. SetParent Database IDto the ID of your Notion orders database (found in the database URL). Map theTitleproperty toDaily Order Summary - {{$json.reportDate}}and add aRich Textproperty calledSummarymapped to{{$json.rawSummary}}. Add aNumberproperty calledOrder Countmapped to{{$json.orderCount}}. - 5
Step 5 — Test and activate
Click
Execute Workflowto do a manual test run. Check your Notion database for the new page. Verify the order count and date are correct. Once confirmed, toggle the workflow toActiveso the Schedule Trigger fires automatically each morning.
Frequently asked questions
Where do I find my Zendrop API key?
Log in to your Zendrop account, navigate to Settings > API, and generate or copy your API key. Paste it into the HTTP Request node's Authorization header as `Bearer YOUR_API_KEY`. Keep it private and never share it publicly.
How do I find my Notion database ID?
Open the Notion database in your browser. The database ID is the 32-character alphanumeric string in the URL between the last slash and the question mark, for example `https://notion.so/workspace/DATABASE_ID?v=...`. Copy that string and paste it into the Notion node's `Parent Database ID` field.
What if Zendrop's API returns an error or no data?
Add error handling by enabling `Continue on Fail` on the HTTP Request node. You can also add an `IF` node after the HTTP Request to check if `$json.data` exists and has items before passing data to the Set node, preventing empty pages from being created in Notion.