Webhook Overview

AfterShip Shipping can send a webhook to notify your system when a particular event has happened. Learn to set up webhooks.


You can enable the webhook from the webhooks settings, and click Add Webhooks URL button.

We currently support either HTTP or HTTPS URLs. So you can have security by using an SSL-enabled URL. But keep in mind that your endpoint is going to be wide-open on the Internet, and you might not want others to be able to submit random data to your systems. At this time, aside from trying to keep the URL private, our best advice is to simply include a secret key in the URL that you provide and check the secret GET parameter in your scripts.

AfterShip Shipping sends event-driven data to webhook URL via POST method. In case of an unsuccessful event (HTTP response code NOT between 200 and 299), AfterShip Shipping will make 14 attempts to deliver your webhook with exponential backoff.

The current attempt webhook delay is calculated by this formula: 2^(number of retry) x 30s

# of attempt# of retryDelay (sec) before send outAcc. Delay (sec)
1000
213030
326090
43120210
54240450
65480930
769601890
8719203810
9838407650
109768015330
11101536030690
12113072061410
131261440122850
1413122880245730

For example, If the attempt fails, AfterShip Shipping will retry the 2nd attempt 30s later.

If the 7th attempts fail, AfterShip Shipping retry the 8th attempt 960s later

If the 14th attempts fail, AfterShip Shipping will not send out that webhook.