Question

Woocommerce Pulling All Orders from a Customer

  • 19 March 2023
  • 2 replies
  • 95 views

Hey guys,

I am trying to build a Zap that that every first of the month will pull all orders made from customers with a particular role to build an account statement report (in google sheet) that will be sent to them every month.

 

That account statement will show all their order placed in the month like this:

 

order # : Date : Amount : Status (paid or unpaid)

 

Is there a way to do this or should I treat all orders individually as soon as they come in with the woocommerce order created trigger?

 

Thanks for the help.


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +8

Hi @TwentyFour 

 

You cannot do that with Zapier as it requires a trigger. You need to treat each order individually as soon as it comes in and then you can use Zapier to Digest the order for each customer and send them what you want

Userlevel 7
Badge +14

Hi @TwentyFour 

Good question.

You’d have to use the WC API: https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-orders

App APIs can be used in Zaps with the Code app or the Webhooks app.

You’d need to get all the Customers, then iterate thru each to get the Orders.

You can use the Schedule app as the Zap trigger.

You can use the Looping app to handle the array of Customers.

NOTE: You may have to apply advanced logic for handling pagination in the API results.

If you need help, consider hiring a Certified Zapier Expert: https://zapier.com/experts/automation-ace