Script that polls the Amazon SP-API for most recent shipments, if a shipment is found that has been created in the last 6 hours, sends a Discord notification to a provided webhook.
Go to file
2024-08-21 21:42:32 +01:00
logs Adding a function to pull product names and send them in notifications, replacing SKUs 2024-07-12 21:57:49 +01:00
amazonAPI.py Removing unusued import 2024-07-21 21:57:20 +01:00
discordNotifications.py Breaking functions into separate files, moving Discord notifications to embeds, adding shipment IDs & destinations to notifications 2024-07-15 07:57:02 +01:00
log.py Adding a function to clean up log files 2024-07-16 15:11:53 +01:00
README.md Update README.md 2024-07-12 19:51:55 +01:00
SentNotifications.json Cosmetic tweaks 2024-07-12 19:55:15 +01:00
sentNotifications.py Breaking functions into separate files, moving Discord notifications to embeds, adding shipment IDs & destinations to notifications 2024-07-15 07:57:02 +01:00
settings.yaml Adding a function to pull product names and send them in notifications, replacing SKUs 2024-07-12 21:57:49 +01:00
ShipmentNotifier.py Adding a function to clean up log files 2024-07-16 15:11:53 +01:00
timeOperations.py Increasing delta to 14 days to catch shipments not in 'Shipped' status for a prolonged period of time 2024-08-21 21:42:32 +01:00

ShipmentNotifier

Script that polls the Amazon SP-API for most recent shipments, if a shipment is found that has been created in the last 6 hours, sends a Discord notification to a provided webhook.

  • Acceptable time delta: < 6 hours - accounts for SP-API delays and time for the shipment to transition to 'Shipped'
  • Number of shipments to look for: 10
  • Stores UID of shipments that a notification has previously been sent for to avoid sending duplicate notifications
  • Recommended to run every 10 minutes via cron