# Lambda

{% stepper %}
{% step %}
Member makes a transaction using a mobile app
{% endstep %}

{% step %}
Transaction details are sent to API Gateway so that it calls two serverless functions:

* First Lambda function registers a transaction in the Order Management system
* Second Lambda function registers a transaction in Open Loyalty
  {% endstep %}

{% step %}
As a result, Open Loyalty sends a webhook to the third Lambda function that a Member earned points&#x20;
{% endstep %}

{% step %}
The third Lambda function calls Marketing Auto’s API to send Member a push notification about earned points / received reward
{% endstep %}
{% endstepper %}

<div align="center"><figure><img src="https://lh7-qw.googleusercontent.com/slidesz/AGV_vUfNciBxbkeBBWqMuUZrOZLa0l6izohLJ4aQXkN87pRkFwwKppadBgcS-Da-FMBBXshDDrwA2xB2ZE9KWRFXg-_ZM8B6DXCo0VAc0GWXqkVA2sdSbq5yWVQ5E951qXJFgnGyxuxs0Syd-06-cIHrq1FD4IWiboBR=s2048?key=q4vl9UUexBRVP8pBEsxHUQ" alt=""><figcaption></figcaption></figure></div>
