Ask a Question

Ask a Question
Back to all

Delivery Price and webhooks

(edited)

Hi, I have a few questions regarding the Dispatch API in the staging environment.

Delivery fee in staging
When I check courier availability, I get available: true, but the delivery fee is returned as 0. Is this expected behavior in the staging environment, or should we receive an estimated delivery fee even in staging?
Order stuck in queue
I am also able to successfully create a delivery/order through the backend API, but the order remains stuck in the queue and is not being assigned to a courier. I currently have 2 test orders in the queue.

Could you please explain how courier assignment works in the staging environment? Do we need to configure or enable a specific courier/provider (for example, Uber Direct) for the test orders to actually be assigned? If automatic courier assignment is not available in staging, what is the correct way to test the complete flow?

Webhooks / delivery status updates
We are using Dispatch only. Our flow is:

Customer places an order → restaurant prepares the order → we send the delivery request to Deliverect Dispatch → Deliverect assigns a courier → courier picks up and delivers the order.

We need to receive status updates back on our platform for events such as:

Courier assigned
Courier is going to the restaurant / pickup location
Courier arrived at pickup location
Order picked up
Courier going to the customer / delivery location
Order delivered
Delivery cancelled/failed

Could you please confirm which webhooks/events we should configure for these statuses and how we should provide our webhook URL?