Biteship webhooks can be retried in two ways: automatically, by enabling the Resend failed webhooks option in the webhook settings, or manually, using the Resend button in the Events Log tab. Automatic retries can resend a webhook up to 3 times, at the 1st, 5th, and 30th minutes after the initial delivery.
This feature is useful when your server is temporarily inaccessible, undergoing maintenance, or responding slowly when Biteship sends order updates. With retries, your system continues to receive the latest data without having to wait for the next update from the courier.
This article will help you understand:
- When a webhook is considered failed
- How to create a new webhook and enable automatic retries 1, 2, or 3 times
- How to change the retry settings for an existing webhook
- How to manually resend a webhook using the Resend button
- How to read webhook statuses in the Events Log
1. When Is a Biteship Webhook Considered Failed?
Whenever an order changes, Biteship sends a webhook to the URL you registered for the following events:
- order.status: changes to the delivery status.
- order.price: changes to the shipping price or cost.
- order.waybill_id: an airway bill number is issued or changed.
A webhook is considered failed if your endpoint:
- Responds with a code other than 2xx, such as 400, 401, 404, or 500.
- Does not respond within 45 seconds (timeout).
- Cannot be reached at all, for example because the server is down or the domain cannot be found.
Automatic retries are disabled by default. If you do not enable them, a failed webhook is sent only once, and you need to resend it manually.
2. How to Create a New Webhook with Automatic Retries
Automatic retries can be enabled when you create a new webhook. Follow these steps.
Opening the Webhook Settings Page
- Log in to the Biteship Dashboard, then open Integrations > Platforms.
-
On the Webhook card, click Settings. You will be taken to the Webhook Settings page.
-
Make sure you are on the Webhook tab, then click the Add Webhook button in the upper-right corner. The Create Webhook window will appear.
Filling In Webhook Details
In the Details section, fill in the following fields:
| Field | Description | Example |
|---|---|---|
| Webhook Name | A name to identify this webhook in the webhook list. | Order Status Webhook |
| Webhook Description (optional) | A brief note about the webhook's function. Can be left blank. | Callback for every orders status changes |
| Webhook URL | The endpoint address on your server that will receive data from Biteship. | https://tokoanda.com/webhook/biteship |
| Event | Click the Enter webhook event list field, then select one or more events: order.status, order.price, or order.waybill_id. | order.status |
Make sure the Webhook URL meets the following requirements so the webhook can be created successfully:
- Uses https://. URLs using regular http are not accepted.
- Is not a local address such as
localhostor127.0.0.1. - Is active and responds with a 2xx code. When you save the webhook, Biteship will send a
POSTrequest with an empty body (Content-Type: application/json) to check the URL.
Filling In Headers (Optional)
The Headers (Optional) section is used if your endpoint verifies that the request actually comes from Biteship:
-
Headers Signature Key: the name of the header to be sent, for example
X-Biteship-Signature. - Headers Signature Secret: the secret value for that header. Biteship will include this header in every webhook, including retries.
Leave both fields blank if your endpoint does not require header verification.
Enabling Automatic Retries
-
Scroll to the Retry section, then enable the Resend failed webhooks toggle. This toggle is disabled by default.
- After enabling the toggle, select the number of retry attempts from the dropdown:
- 1x (at the 1st minute)
- 2x (at the 1st and 5th minutes)
-
3x (at the 1st, 5th, and 30th minutes)
- Click Create New. The new webhook will appear in the Webhook Settings list, complete with a Webhook ID and the retry status in the Retry column.
3. How to Configure Retries for an Existing Webhook
Changing the Retry Settings
- Open Integrations > Platforms > Webhook, then stay on the Webhook tab. The Retry column shows the current setting, such as Enabled, Max. 3x or Disabled.
- In the Actions column, click Configure Retry for the webhook you want to change.
- In the Retry: [Webhook Name] window, enable or disable the Resend failed webhooks toggle, then select the number of retry attempts.
- Click Save. The new settings apply to subsequent webhook deliveries.
How Automatic Retries Work
- Retry times are calculated from the initial delivery. For example, with the 3x option, the webhook is resent approximately 1 minute, 5 minutes, and 30 minutes after the initial delivery fails.
- Retries stop as soon as your endpoint responds with a 2xx code. Any remaining attempts are not sent.
- Each attempt is recorded as a separate row in the Events Log, so you can view the result of each attempt.
- For the order.status event, retries are canceled if a newer order status has already been sent. This prevents your system from receiving an outdated status again.
- If the webhook is deleted, any undelivered retries are also canceled.
- Each delivery includes the
X-Biteship-Delivery-Idheader (the same for all attempts from one delivery) and theX-Biteship-Delivery-Attemptheader (the attempt number, starting from 1). You can use them to detect webhooks received more than once.
4. How to Manually Retry a Webhook Using the Resend Button
Use this method if automatic retries are not enabled, or if all automatic attempts have been used but the webhook is still failing.
-
Open Integrations > Platforms > Webhook, then select the Events Log tab. The log list displays the Webhook ID, Status, Event Type, and Date columns.
- Click Filter to narrow the search by Date, Status, Event, Order ID, or Airway Bill. For Order ID and Airway Bill, enter the number and press Enter.
-
Click the failed log row. The Webhook Information panel will display the Status, Event Type, Webhook ID, Error Message, Order ID, Airway Bill, Timestamp, as well as the Request Payload and Response Payload.
- Make sure your endpoint is operating normally, then click Resend next to the Webhook Information heading.
- In the Are you sure you want to resend the webhook? confirmation, click OK.
-
After the Webhook resent successfully message appears, check the new log for the same Order ID and make sure its status is 200.
Important: the Webhook resent successfully message means that Biteship has resent the webhook, not that your server has received it. Always check the status in the new log.
Do Not Expect Webhooks to Arrive in a Fixed Order
Sometimes, received webhooks may arrive in an irregular order. This may be caused by network issues or additional latency in the processing of certain events.
In such conditions, a system designed with the assumption that events will always be received in a specific order may fail or not function as expected.
Because we cannot avoid differences in network conditions or processing speeds, we strongly recommend building a resilient system that can handle these conditions.
5. Understanding Webhook Statuses in the Events Log
- 200 - Success: Your server received the webhook successfully. The badge is green.
- 400 - Bad Request: Your server rejected the format of the data sent.
- 401 / 403 - Unauthorized: Your server rejected access, usually because the signature header does not match.
- 404 - Not Found: The webhook URL could not be found on your server.
- 500 - Server Error: An error occurred on your server while processing the webhook.
-
ERR - Not Delivered: Biteship did not receive a response, for example due to a timeout. Details are shown in Error Message, such as
timeout of 45000ms exceeded.
6. Tips for Smooth Webhook Retries
- Enable 3x retries for important events: The 3x option gives your server up to 30 minutes to recover, for example during a deployment or brief maintenance.
- Respond with 2xx as quickly as possible: Send a 200 response first, then process the data in the background. This prevents the 45-second timeout.
-
Prepare your endpoint to receive the same data more than once: Use the
X-Biteship-Delivery-Idheader or a combination of order_id and updated_at so the data is not recorded twice. - Save the Webhook ID when contacting support: Click the copy icon next to the Webhook ID so the support team can quickly trace your logs.
7. FAQ About Biteship Webhook Retries
Does Biteship automatically retry webhooks?
Yes, if you enable the Resend failed webhooks option for the webhook. This option is disabled by default and is configured separately for each webhook.
What is the difference between the 1x, 2x, and 3x options?
These options determine how many times the webhook is resent after the initial delivery fails. 1x is resent at the 1st minute, 2x at the 1st and 5th minutes, while 3x is resent at the 1st, 5th, and 30th minutes. The schedule is the same for all accounts and cannot be changed.
Why does the error "Webhook URL doesn't respond with ok response" appear when creating a webhook?
This error appears if the webhook URL does not respond with a 2xx code when Biteship checks the URL. Make sure your endpoint is active, can accept a POST request with an empty body and Content-Type: application/json, and has not yet applied signature validation during registration. After the webhook is successfully created, validation can be enabled again.
Why does the error "URL must use https protocol" appear?
Biteship only accepts webhook URLs that use https://. Change your URL to the https version, then try saving it again.
Does the Resend button reduce the automatic retry quota?
No. Manual Resend is recorded as a separate delivery and is not counted as an automatic retry attempt.
Is the resent data the same as the original webhook?
Yes. Both automatic retries and manual Resend send exactly the same data as the original webhook.
I have changed the webhook URL. Will Resend be sent to the new URL?
No. Manual Resend is sent to the URL recorded in the original log. If the old URL is no longer active, the Resend will still fail.
Why does the message "Failed to resend webhook. Please try again" appear?
This message appears if the log cannot be processed for resending, for example because the log does not contain a destination URL. Reload the page and try again. If it still fails, contact the support team and include the Webhook ID.
Why does my webhook log not appear in the Events Log?
Testing mode and live mode logs are displayed separately. If Testing Mode is active, only testing order logs appear. Turn off Testing Mode to view live order logs.
8. Conclusion
With Biteship webhook retries, you do not need to worry about missing order updates when your server is experiencing issues. Enable Resend failed webhooks so Biteship automatically resends them up to 3 times, and use the Resend button in the Events Log for webhooks that are still failing.
If the webhook continues to fail after retries, please contact the Biteship support team at support@biteship.com and include the Webhook ID, Order ID, and the error message you received.