Templates
You can use templates to define reusable information, such as contact information, alert templates and logger configuration. Using templates will save you a lot of work when creating shipments.
Contact templates
The Contact template is a list of contacts to notify if excursions occur during a shipment. The list can be simple or a matrix with a separate roles for each contact. It also defines their medium of communication.
The Contact template is important especially when the MARS service (Monitor and Respond Service) handles the shipment monitoring for the customer to ensure all alerts go to the right contact.
Alert templates
The Alert template is used to define the conditions for raising an alert. The Alert template is used to assign upper and lower-bound alert values to shipments and loggers. More than one Alert template can be tied to each shipment, raising alerts with different criteria.
Logger templates
A Logger template defines reusable configuration for one or more loggers assigned to a shipment. Different logger templates are usually created for different types of transport and different duration of trips. Each aims at best practices for different transport methods, length of the journey as well as variations in handling the shipments.
Deleting templates
You can delete templates you no longer need.
Create contact template
Contact templates define a reusable set of contact information (SMS and emails) that should receive direct excursion notifications.
When you create a shipment, you reference the unique reference to the contact template, and the information is made available to logger devices and used to send out alerts for the shipment.
Best practices
Only add relevant contacts:
Reverse logistics contacts
Alert/ Warning contacts
Create contact template
Creates a new contact template with the given reference value.
Endpoint: https://integrations.controlant.com/api/scm/shipments/create
Item | Description | |
---|---|---|
| Unique reference to contact template, created by the customer. You can use this to reference the contact template when you create a shipment. | |
| List of contact details. You can define separate contacts for different severity alerts. For each contact you need to define the following: | |
| Type of contact information. Configures how to send the alert.
| |
| Contact address. Depending on configuration of | |
| Type of event to send to contacts when shipments are delivered at destination.
| |
| Lowest severity level that this contact should be notified about. All severities higher than this value are automatically included.
|
Example request
{ "reference": "1234567890AB", "contacts": [ { "contactType": "Email", "contactAddress": "joe-wants-it-all@example.com", "deliveryEvent": "None", "minimumSeverity": "Level0" }, { "contactType": "Email", "contactAddress": "support@example.com", "deliveryEvent": "Reports", "minimumSeverity": "Level2" }, { "contactType": "SMS", "contactAddress": "555-8888", "deliveryEvent": "None", "minimumSeverity": "Level3" } ] }
Example response
{ "templateReference": "1234567890AB", "success": true, "responseTime": 0 }
Create alert template
Alert templates define a logger boundary configuration template similar to the warning templates that can be created manually in the SCM web portal. Alert templates differ from warning templates in that shipments can have more than one alert template which can be merged to form a new warning template with special properties such as calculating the narrowest safest alerting configuration for a mixed product shipment.
The alert template should be used to specify default values to assign to loggers when they are added to shipments.
Best practices
Add something?
Create contact template
Creates a new alert template with the given reference values. This template should be used to assign upper and lower bound alert values to shipments and loggers.
Endpoint: https://integrations.controlant.com/api/scm/templates/contact/create
Item | Description | |
---|---|---|
| Unique reference to alert template, created by the customer. You can use this to reference the alert template when you create an alert. | |
| List of alert boundaries and configurations. NoteYou can configure multiple alerts in each alert template, e.g.:
For each alert you need to define the following: | |
| Configures whether this alert is for upper bounds or lower bounds.
| |
| Type of sensor data to alert on. Currently only accepts
| |
| Value determining the alert threshold. An alert is triggered if measurement value goes above/below this value for longer than the time specified in accumulativeTimeLimit. NoteValue is specified in each The range allowed for temperature is:
Example values:
| |
| Severity of the alert that will be triggered if the measurement value goes above/below | |
| Time limit this alert condition is allowed to be violated until it is triggered, in seconds. If the measurement value goes above/below Example value:
|
Example request
{ "reference": "Actemura-400mg-Tablets-AlertTemplate", "alerts": [ { "bounds": "UpperBounds", "thresholdValue": 30, "dataType": "Temperature", "accumulativeTimeLimit": 60, "severity": "Level3" }, { "bounds": "LowerBounds", "thresholdValue": -1, "dataType": "Temperature", "accumulativeTimeLimit": 10, "severity": "Level3" }, { "bounds": "UpperBounds", "thresholdValue": 15, "dataType": "Temperature", "accumulativeTimeLimit": 20, "severity": "Level2" }, { "bounds": "LowerBounds", "thresholdValue": 5, "dataType": "Temperature", "accumulativeTimeLimit": 15, "severity": "Level2" } ] }
Example response
{ "templateReference": "1234567890AB", "success": true, "responseTime": 0 }
Create logger template
Logger templates define reusable configuration characteristics for one or more loggers assigned to a shipment.
Note
Typically, different logger templates are created for different transport modes (e.g., ocean, air, road) and duration of transport that serves the purpose of saving battery power on long ocean voyages for example. Other uses include flexibility in dealing with different handling processes at either receiving or shipping sites or differences in delivery or shipping conditions.
Best practices
Add something?
Create logger template
Creates a new logger template with the given reference values. Use this template to specify default values to assign to loggers when added to shipments.
Endpoint: https://integrations.controlant.com/api/scm/templates/logger/create
Item | Description |
---|---|
| Unique reference to logger template, created by the customer. You can use this to reference the logger template when you create an alert. |
| Method to use to determine the shipment logger is assigned to has been shipped.
|
| Method to use to determine the shipment logger is assigned to has arrived at destination and can be considered delivered.
|
| Period at the beginning of shipment where the alarm functionality is inactive, in seconds. NoteDuring ignore periods temperature data is recorded and will be available, but excursions will not trigger an alert. Example: If product is placed in a truck or package for transport that is not preconditioned, you can set |
| Period at the end of shipment where the alarm functionality is inactive, in seconds. NoteDuring ignore periods temperature data is recorded and will be available, but excursions will not trigger an alert. Example: If there is a known delay at destination from the time logger is removed from product and until the stop button is pressed on all loggers, you can set |
| Threshold before alerts are raised for this shipment. |
| Sets a preferred wake up interval to apply to loggers in this shipment.
|
Example request
{ "reference": "1234567890AB", "shippingMethod": "Button", "deliveryMethod": "GeoFenceAndButton", "warningsIgnorePeriodAtStart": 0, "warningsIgnorePeriodAtEnd": 0, "excursionSeverityThreshold": "Level3", "preferredWakeUpInterval": "Default" }
Example response
{ "templateReference": "1234567890AB", "success": true, "responseTime": 0 }
Delete template
You can delete templates you do not need anymore.
Delete template
Creates a new contact template with the given reference value.
Endpoint: https://integrations.controlant.com/api/scm/templates/delete
Item | Description | |
---|---|---|
| Unique reference to template you want to delete. Reference is created by the customer. | |
| Type of template to delete. NoteTemplate type must match the template type of the template you want to delete, or you will receive an error response.
|
Examples
Example request
{ "reference": "DC1-LoggerTemplate", "type": "Logger" }
Example response
{ "success": true, "responseTime": 200 }