1- Receive Towing Request
RP will call this webhook to notify the operator when a vehicle needs to be towed. Following the operator’s submission of a violation and completion of the full handling process, the Riyadh Parking System assesses the violation type. If towing is required, the system automatically issues a towing request and sends it to the operator’s webhook endpoint.POST operator-base-url/tow-request
Request
2- Update Tow Status - Started
Operator will update RP with towing status.PATCH /v1/tow/public/towing-status/started
Request
Response
3- Update Tow Status - Detained
Operator will update RP with towing status.PATCH /v1/tow/public/towing-status/detained
Request
Response
4- Update Tow Status - Canceled
Operator will update RP with towing status.PATCH /v1/tow/public/towing-status/canceled
Request
Response
5- Create Invoice
Operator will call RP to generate tow invoice.POST /v1/tow/public/invoice
Request
Response
6- Update Towing Invoice Payment Status
The operator will call RP to update the payment status of a towing invoice. Endpoint:PATCH /v1/tow/public/invoice/payment-status
Request
Response
7- Update Tow Status - Released
Operator will update RP with towing status.PATCH /v1/tow/public/towing-status/released
Request
Response
8- Send Invoice
RP will call this webhook to notify the operator with invoices info.POST /operator-base-url/tow/invoice
Request
Error Responses
| HTTP Code | Message | Description |
|---|---|---|
| 400 | Missing required field | A required field in the update tow status object is missing |
| 400 | Invalid enum value | Wrong value provided for payment_status vehicle_type |
| 404 | Plate number not found | No plate number is associated with the given violation_reference_id |
| 404 | Violation not found | No violation found matching the given violation_reference_id |
| 401 | Unauthorized | Bearer token is missing or expired |
| 403 | Access denied | The user does not have permission to use this endpoint |
| 500 | Internal Server Error | A server-side error occurred |