# Inbound Integration

**URL:** <https://forum.mautic.org/t/inbound-integration/6324>\
**Category:** Development\
**Created:** [October 23, 2016, 11:33am UTC](https://forum.mautic.org/t/inbound-integration/6324 "2016-10-23T11:33:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorymadden](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rorymadden/32/130_2.png) [@rorymadden](https://forum.mautic.org/u/rorymadden)\
**Post date:** [October 23, 2016, 11:33am UTC](https://forum.mautic.org/t/inbound-integration/6324/1 "2016-10-23T11:33:36Z")

</div>

Hi,  
  
  
  
I’ve read through a few of the documents and looked at a couple of the integrations. Most of them seem to be outbound integrations - pushing mautic data out. Is there any documentation on writing inbound integration? My use case is I have a ticketing system where people can purchase tickets. If a person purchases a ticket I want them to drop out of certain campaigns (e.g. remove them from specific segments). The ticketing software has a webhook that sends out a json document. I would like to be able to parse the document - lookup the email and update the stage of the contact. Are there any examples of similar integrations?  
  
  
  
Thanks in advance for your help,  
  
Rory

---

<div class="post-metadata">

**Author:** ![rorymadden](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rorymadden/32/130_2.png) [@rorymadden](https://forum.mautic.org/u/rorymadden)\
**Post date:** [October 23, 2016, 11:33am UTC](https://forum.mautic.org/t/inbound-integration/6324/2 "2016-10-23T11:33:36Z")

</div>

Hi,

I’ve read through a few of the documents and looked at a couple of the integrations. Most of them seem to be outbound integrations - pushing mautic data out. Is there any documentation on writing inbound integration? My use case is I have a ticketing system where people can purchase tickets. If a person purchases a ticket I want them to drop out of certain campaigns (e.g. remove them from specific segments). The ticketing software has a webhook that sends out a json document. I would like to be able to parse the document - lookup the email and update the stage of the contact. Are there any examples of similar integrations?

Thanks in advance for your help,  
Rory

---

<div class="post-metadata">

**Author:** ![manageit](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@manageit](https://forum.mautic.org/u/manageit)\
**Post date:** [October 23, 2016, 8:16pm UTC](https://forum.mautic.org/t/inbound-integration/6324/3 "2016-10-23T20:16:57Z")

</div>

For that, you really only need to put the Mautic tracking code on the final check out page, then have a campaign condition “If page visit” do “remove from campaign”

---

<div class="post-metadata">

**Author:** ![rorymadden](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rorymadden/32/130_2.png) [@rorymadden](https://forum.mautic.org/u/rorymadden)\
**Post date:** [October 23, 2016, 8:27pm UTC](https://forum.mautic.org/t/inbound-integration/6324/4 "2016-10-23T20:27:44Z")

</div>

Hi manageit,

Thanks for the reply. Unfortunately I dont have access to the payment page as it is a third party system. However I would like to do a more fine grained integration in case of scenarios such as the person decides not to go through with the order, or we do a refund.

Do you know how to implement inbound integration that could support this?

Thanks,  
Rory

---

<div class="post-metadata">

**Author:** ![manageit](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@manageit](https://forum.mautic.org/u/manageit)\
**Post date:** [October 23, 2016, 10:09pm UTC](https://forum.mautic.org/t/inbound-integration/6324/5 "2016-10-23T22:09:33Z")

</div>

Does the third-party allow placing of Google Analytics code?

---

<div class="post-metadata">

**Author:** ![jims](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jims/32/396_2.png) [@jims](https://forum.mautic.org/u/jims)\
**Post date:** [October 27, 2016, 6:13pm UTC](https://forum.mautic.org/t/inbound-integration/6324/6 "2016-10-27T18:13:28Z")

</div>

I am also looking to do this. We receive webhooks from our payment process and I would like to change a contacts segment based on their payment status/cancellation etc. Alot of these events do not have a coresponding browser load.

---

<div class="post-metadata">

**Author:** ![jims](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jims/32/396_2.png) [@jims](https://forum.mautic.org/u/jims)\
**Post date:** [October 27, 2016, 9:09pm UTC](https://forum.mautic.org/t/inbound-integration/6324/7 "2016-10-27T21:09:34Z")

</div>

I was able to change a contacts segment using the REST API. Apparently the OAuth1 tokens wont expire unless explicity told too. I created tokens and have saved them for future use.

Confused why the documentation says " Currently, the only _editable_ entity is leads and is the main purpose for the Mautic API. All other entities are read-only. "

[https://developer.mautic.org/#rest-api](https://developer.mautic.org/#rest-api)

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [March 20, 2023, 9:32pm UTC](https://forum.mautic.org/t/inbound-integration/6324/8 "2023-03-20T21:32:46Z")

</div>

This post is years old, I know. But posting this for any future viewers.

Our resident genius, @joeyk built [this solution and made a great tutorial](https://joeykeller.com/process-any-webhook-with-mautic-without-zapier/).

> **[Process any webhook with Mautic (without Zapier) \[Updated!\] – Joey Keller](https://joeykeller.com/process-any-webhook-with-mautic-without-zapier/)**

Cheers,  
EP
