CGSmith-LLC / shipwise-api

Shipwise API
Other
0 stars 0 forks source link

Configurable Webhooks for users order status changes #82

Open cgsmith opened 1 year ago

cgsmith commented 1 year ago

Webhooks to an external service is desirable for customers when orders change state. For example, when an order is transitioning from Open to Pending Fulfillment (which means we are posting to the fulfillment center) most customers want to do some form of processing on the order object before sending it to their fulfillment center.

For an example, a customer uses n8n.io to manipulate the order object to add boxes and packaging before it gets to their system. Shipwise still posts to their 3PL system but n8n.io manipulates the JSON object and then we pass it along.

The webhooks should have retries and it would be nice to show an interface of any webhooks that are failing or if it was a success for debugging purposes. In the future we may need to charge some customers for webhooks.

samdark commented 1 year ago

There should be a secret key to protect the endpoint (or else anyone would be able to send a payload).