This repository is an example Hello World application. It has already been submitted and is available in App Store sandbox environment. This readme describes how to submit and configure your own version of this application.
The application is an AWS Lambda function with two handlers:
application_enabled
: handles webhooks when the app is installed.customer_created
: handles webhooks when new customers are added to users accounts in Rebilly.
When this app is installed, it provides discounts to new users.
- Submit an app to the Rebilly App Store.
- Deploy this Lambda function and receive an invocation URL.
- In Rebilly, in the left navigation bar, click Automations, then click Rules engine.
- Click Core events, and select the Application instance enabled event.
- Click Ruleset, go to Binds tab, then click Add Bind.
- Complete all fields.
- In the Actions section, click Add action, and select Trigger webhook.
- Add your invocation URL. Ensure that the URL is in the following format:
https://your-api-name.execute-api.your-region.amazonaws.com/Prod/application-enabled
. - Click Body, and include an organization identifier of user who installed your app, using the following format:
{"organizationId": "{{organizationId}}"}
For more information on developing Rebilly apps, see Rebilly App Store.
To develop, run, and deploy your own Lambda function, follow the AWS SAM Reference.