API Routes
The plugin exposes several API endpoints for managing reminder schedules, templates, layouts, and sending emails through Postmark. All routes are proxied through the Medusa server for security and consistency.
Reminder Schedules
GET /admin/postmark/abandoned-carts/reminders/schedules— List all reminder schedulesGET /admin/postmark/abandoned-carts/reminders/schedules/:id— Get a reminder schedule by idPOST /admin/postmark/abandoned-carts/reminders/schedules— Create a new reminder schedulePOST /admin/postmark/abandoned-carts/reminders/schedules/:id— Update a reminder scheduleDELETE /admin/postmark/abandoned-carts/reminders/schedules/:id— Delete a reminder schedule
Templates
GET /admin/postmark/templates— List all templatesGET /admin/postmark/templates/:id— Get a template by IDPOST /admin/postmark/templates— Create a new templatePOST /admin/postmark/templates/:id— Update a templateDELETE /admin/postmark/templates/:id— Delete a template
Options
GET /admin/postmark/options— Returns configuration options about the postmark server, currently just returns the server's ID.
Validation
POST /admin/postmark/abandoned-carts/reminders/validate— Validate reminder schedules against template data,to make sure that no template misses any data.