Webhooks
Webhooks
Fery sends events to the webhookURL provided in Create Order.
That URL is saved on the ride. The same URL is used for:
- ride status updates
- partner location updates
Registering the webhook
There is no separate webhook registration API.
- Host an HTTPS endpoint
- Pass it as
webhookURLin create order - Fery POSTs events to that URL for the ride
Endpoint requirements
Case A — Status update
Sent when the ride status changes.
Identify this case when status is not location_updated.
Status values
Example — accepted
Example — dropped
Fields
captainDetails shape:
Case B — Location update
Sent when partner location is updated for an active ride.
Identify this case when status is location_updated.