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 1-minute, 5-minute, and 30-minute marks 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 carrier.
This article will help you understand:
- When a webhook is considered failed
- How to create a new webhook and enable automatic retries 1x, 2x, or 3x
- How to change 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: shipping status changes.
- order.price: shipping price or cost changes.
- 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.
Open the Webhook Settings Page
- Sign 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.
Enter 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 purpose. This can be left blank. | Callback for every order status change |
| 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 for the webhook to 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 sends a
POSTrequest with an empty body (Content-Type: application/json) to check the URL.
Enter 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, such as
X-Biteship-Signature. - Headers Signature Secret: the secret value for that header. Biteship includes this header in every webhook, including retries.
Leave both fields blank if your endpoint does not require header verification.
Enable Automatic Retries
-
Scroll to the Retry section, then enable the Resend failed webhooks toggle. This toggle is disabled by default.
- After the toggle is enabled, select the number of retry attempts from the dropdown:
- 1x (at 1 minute)
- 2x (at 1 and 5 minutes)
-
3x (at 1, 5, and 30 minutes)
- Click Create New. The new webhook will appear in the Webhook Settings list, along with its Webhook ID and retry status in the Retry column.
3. How to Configure Retries for an Existing Webhook
Change Retry Settings
- Go to Integrations > Platforms > Webhook, and stay on the Webhook tab. The Retry column shows the current setting, such as Enabled, up to 3x or Disabled.
- In the Actions column, click Configure Retry for the webhook you want to change.
- In the Retry: [Webhook Name] window, turn the Resend failed webhooks toggle on or off, then select the number of retry attempts.
- Click Save. The new settings apply to webhooks sent afterward.
How Automatic Retries Work
- Retry timing is 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. The remaining attempts are not sent.
- Each attempt is recorded as a separate row in the Events Log, allowing you to see 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 old status again.
- If the webhook is deleted, any unsent retries are also canceled.
- Each delivery includes the
X-Biteship-Delivery-Idheader (the same for all attempts from a single delivery) and theX-Biteship-Delivery-Attemptheader (the attempt number, starting at 1). You can use these 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.
-
Go to 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 displays the Status, Event Type, Webhook ID, Error Message, Order ID, Airway Bill, Timestamp, and Request Payload and Response Payload.
- Make sure your endpoint is working normally, then click Resend next to the Webhook Information title.
- 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 out of order. This may be caused by network issues or additional latency while processing certain events.
In these situations, a system designed with the assumption that events will always be received in a specific order may fail or not work as expected.
Because differences in network conditions and processing speeds cannot be avoided, we strongly recommend building a resilient system that can handle these situations.
5. Understanding Webhook Statuses in the Events Log
- 200 - Successful: 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 was not found on your server.
- 500 - Server Error: An error occurred on your server while processing the webhook.
-
ERR - Not Sent: Biteship did not receive a response, for example because of a timeout. Details appear 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, such as 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 to prevent duplicate records. - Save the Webhook ID when contacting support: Click the copy icon next to 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 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 1 minute, 2x at 1 and 5 minutes, and 3x at 1, 5, and 30 minutes. The timing 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 it. Make sure your endpoint is active, can accept a POST request with an empty body and Content-Type: application/json, and has not 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 allowance?
No. A 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 resends send exactly the same data as the original webhook.
I changed the webhook URL. Is the Resend sent to the new URL?
No. A 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 have 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, contact the Biteship support team at support@biteship.com and include the Webhook ID, Order ID, and error message you received.