Each request must include a widget ID, which allows the request to be associated with the correct company. All responses include a Google Tag Manager (gtag) ID for analytics.
The user first retrieves a list of available vehicles.
https://cloud.toprent.app/api/public/get-available-vehicles
When the user selects a vehicle, they request details for the future rental. The rental details are calculated in real-time considering discounts, seasonality, and reducing coefficients. Therefore, the request for rental details includes dates.
https://cloud.toprent.app/api/public/get-vehicle-by-id
The next step is the form for creating an order.
https://cloud.toprent.app/api/public/checkout-page
After the user fills out the form and submits it, an order is created on the server. The response contains variables that allow constructing a URL for the next steps, which vary based on the payment configuration.
https://cloud.toprent.app/api/public/post-order
This API shows the status of the order. The response contains detailed information about the order status, company, and contact information.
https://cloud.toprent.app/api/public/order-status
https://docs.google.com/document/d/17QcZ19DAdUjf0UnY8v3usG8SnR0NBlhc6cfhqv80muE/edit