Supported Scenarios
Transactional Alerts are designed for critical user communications, including:- Order/Booking/Purchase confirmations
- Shipping/Delivery confirmations and updates
- Security and account alerts
- Password resets
- OTP (one-time password)
- User invitations and shares
- User inaction related to previous transactions
- Fraud prevention/security alerts
- Send a transactional message on a single channel like SMS or Email or Push.
- Send transactional messages on multiple channels.
Endpoint
The Inform API consists of the following endpoint:Glossary
The following is a list of terminology that you will encounter when using the Inform API.Live vs. Test Environments
Ensure you are using the correct ID and Endpoint for your environment.
How Does Inform API Work and Respond?
Inform API works in two steps as described below:- A check is performed to verify if the API request received for Inform is valid.
- If valid, the second process is to resolve the content and send a message using the partner.
Response Codes
The response codes are shared in wxyzab format as described below:- w - Status (failures are indicated with 1 and success is indicated with 2).
- x - Category of the error.
- y - Request is considered for parallel request (parallel requests is indicated with 0 and fallback requests are indicated with 1).
- z - Can this request be retried by you(0 indicates it cannot be retried with same details).
- ab - Reason details for the error.
The Reason details are given below with each Reason Code holding specific meanings:
Payload Errors Before Accepting the API Request
The list of the payload errors that can occur before accepting the API request and the equivalent response codes to be shared under HTTP status code 4xx for different scenarios across each functionality is given below:Payload Errors After Accepting the API Request
Alerts can be configured for parallel/sequential fallback as described below:- Parallel: For parallel requests, the payload information of success/failure requests should be added at each channel level.
- Sequence: For fallback requests, the payload information of success/failure requests should be added for the first channel, and other channels, info should be shared over streams.
FAQs
How are duplicate requests handled?
How are duplicate requests handled?
A request is deemed a duplicate in the following cases:
- It is received within 5 minutes of a previously successful request containing the same transaction_id
- It is received within 5 minutes of a previous request which is ‘In Progress’ (being processed) and contains the same transaction_id
What happens when a vendor does not accept requests from MoEngage?
What happens when a vendor does not accept requests from MoEngage?
When the vendor does not accept requests from MoEngage, MoEngage retries every request a maximum of five times with 200ms exponential backoff.
Are Alert Logs stored in MoEngage?
Are Alert Logs stored in MoEngage?
Alert logs are stored for up to 30 days for every Alert in MoEngage.
Why is this error occuring "Live Alert Request received on Sandbox API endpoint"?
Why is this error occuring "Live Alert Request received on Sandbox API endpoint"?
This error occurs when you hit the live alert ID at the sandbox endpoint. For every alert, there are 2 IDs: one is live, and another is Test; the same behavior can be seen for alerts created on the test environment of the MoEngage Dashboard as well. Test Alert ID can be picked up by editing the Alert and going to the 3rd page.