# Woocommerce Webhook procedure/flow how to use this API

**URL:** <https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040>\
**Category:** API Q&A\
**Created:** [June 27, 2017, 3:24pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040 "2017-06-27T15:24:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Del\_Chefv](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/del_chefv/32/403_2.png) [@Del\_Chefv](https://integration.keap.com/u/Del_Chefv)\
**Post date:** [June 27, 2017, 3:24pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040/1 "2017-06-27T15:24:48Z")

</div>

I don’t understand the procedure from documentation

How should I use this hooks?

Will API automatically call our site?

Or should we call API explicitly, is there any reference, I can use for flow diagram so i can code accordingly.

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [June 27, 2017, 3:42pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040/2 "2017-06-27T15:42:52Z")

</div>

@Del_Chefv,

You will first need to verify each endpoint you wish to have with code that captures the header parameter X-Hook-Secret and then sends it back to IS.

Once having done this, IS will automatically send data to that endpoint that is registered and it will be up to you at that point what you wish to do with that information from there.

Documentation does not specify this registration requirement yet but the rest you need to know about verifying the endpoint can be found here:

[https://developer.infusionsoft.com/docs/rest/#!/Rest\_Hooks/createHookUsingPOST](https://developer.infusionsoft.com/docs/rest/#!/Rest_Hooks/createHookUsingPOST)

---

<div class="post-metadata">

**Author:** ![Del\_Chefv](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/del_chefv/32/403_2.png) [@Del\_Chefv](https://integration.keap.com/u/Del_Chefv)\
**Post date:** [June 27, 2017, 6:38pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040/3 "2017-06-27T18:38:31Z")

</div>

Thanks @John_Borelli, i can’t find anywhere in the Doc for GET the Order ID…

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [June 27, 2017, 7:29pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040/4 "2017-06-27T19:29:12Z")

</div>

To list the available hooks you will have to poll for them

[https://developer.infusionsoft.com/docs/rest/#!/Rest\_Hooks/listHooksUsingGET](https://developer.infusionsoft.com/docs/rest/#!/Rest_Hooks/listHooksUsingGET)

They will be adding more as time goes on

---

<div class="post-metadata">

**Author:** ![Del\_Chefv](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/del_chefv/32/403_2.png) [@Del\_Chefv](https://integration.keap.com/u/Del_Chefv)\
**Post date:** [July 19, 2017, 4:15pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040/5 "2017-07-19T16:15:00Z")

</div>

Hello there,

Thanks for your reply.

Can you please provide me an example for this?

Thanks for your time and effort…

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [July 19, 2017, 4:30pm UTC](https://integration.keap.com/t/woocommerce-webhook-procedure-flow-how-to-use-this-api/1040/6 "2017-07-19T16:30:35Z")

</div>

The webhook triggers is a growing list so it has a call so that you can stay current. At the moment, these are the ones available:

[  
“contact.add”,  
“contact.delete”,  
“contact.edit”,  
“contactGroup.add”,  
“contactGroup.applied”,  
“contactGroup.delete”,  
“contactGroup.edit”,  
“contactGroup.removed”,  
“invoice.add”,  
“invoice.delete”,  
“invoice.edit”,  
“leadsource.add”,  
“leadsource.delete”,  
“leadsource.edit”,  
“opportunity.add”,  
“opportunity.delete”,  
“opportunity.edit”,  
“opportunity.stage\_move”,  
“order.add”,  
“order.delete”,  
“order.edit”,  
“product.add”,  
“product.delete”,  
“product.edit”,  
“task.add”,  
“task.delete”,  
“task.edit”  
]

examples detailing how to use each endpoint for REST webhooks are in documentation:

[https://developer.infusionsoft.com/docs/rest/#!/Rest\_Hooks/listHooksUsingGET](https://developer.infusionsoft.com/docs/rest/#!/Rest_Hooks/listHooksUsingGET)
