Delivery reports are a powerful tool for measuring the outcome of SMS messages. For example, in sectors such as financial services, they are essential for monitoring whether customers have received important information.
Before you can get started, you need to have completed the following prerequisites:
Set all SMS API configuration settings.
- JDK 8 or later and a familiarity with how to create a new Java application.
- Gradle and a familiarity with how use the Gradle build tools.
- Java SDK Getting Started
A delivery report is produced whenever a batch message is sent. It contains information such as if a message is delivered, aborted or being queued. Our SDK contains methods to retrieve a delivery report by message batch ID and phone number, as well returning a list of delivery reports which can be filtered by date range, status and code. This tutorial uses the Send Message app you created in the getting started guide.
To use Delivery Reports, add the following imports to the top of your App.java file.
import com.sinch.sdk.domains.sms.models.*;
import com.sinch.sdk.domains.sms.models.requests.*;
import com.sinch.sdk.models.Configuration;
import com.sinch.sdk.models.SMSRegion;Find out more by looking at Delivery Reports in our API reference.