Skip to main content
Note: This endpoint is only available in the staging environment and requires special permissions granted by administrators.

Endpoint

POST https://api.staging.fleetit.com/api/tickets/individual/

Description

This endpoint enables the submission of a dummy toll ticket for a specified vehicle and transaction with authentication. It either creates a new toll ticket or returns error messages if there are issues with the request or specific business rules are triggered. Tolls are not sent immediately; instead, they are queued and processed for integration in the background.

Request Body Parameters

Sample Request Payload

Responses

201 Created

Description: The toll ticket was successfully created. Sample Response:

400 Created

Case 1

Description: The submitted ticket is a duplicate of an existing one. Sample Response:

Case 2

Description: The ticket submission matches specific business rules and cannot proceed. Sample Response:

403 Created

Description: You do not have permission to perform this action. Contact Support. Sample Response:

Error Codes

Additional Information

  • Environment: This endpoint is exclusive to the staging environment.
  • Permissions: Access requires special permissions that can be obtained from an administrator.

Usage Notes

  • Ensure that all date and time fields are formatted correctly.
  • The amount should be a positive number representing the toll charge.
  • Make sure you have the necessary permissions before attempting to use this endpoint.