Script include for third-party shipping carrier integrations
Before you can integrate the Enterprise Asset Management application with a third-party shipping carrier, that shipping carrier must create a script include that extends the base ITAMShipmentIntegration script. By extending this script, you can connect to the third-party shipping carrier application and retrieve shipment details in real-time.
Structure of the ITAMShipmentIntegration script include
fetchShipmentInfo function
The fetchShipmentInfo function within the ITAMShipmentIntegration script include retrieves tracking numbers from your ServiceNow instance and then invokes the carrier API to fetch shipment details for those tracking numbers. To enable communication with the carrier API based on tracking numbers, the shipping carrier must define the corresponding business logic within the fetchShipmentInfo function. This function processes responses from the carrier API and then initiates the processResponse function.
processResponse function
- Carrier link
- Carrier status
- Carrier status detail
- Carrier pick-up date
- Carrier delivered date
- Currency
- Delivery services cost
- Parcel weight