Adds a single infraction identified by the vehicle's license plate and date, without requiring a booking reference.
POST/api/infraction
Requires the InfractionsCollector feature to be enabled. The vehicle is looked up by its plate, and the infraction is associated with a booking by matching the plate and date: when exactly one booking matches it is linked automatically; otherwise the infraction is saved without a booking and a notification email is sent for manual resolution. Administrative charges are calculated automatically. If an equivalent infraction already exists it is returned with IsNew set to false instead of creating a duplicate. InfractionNoticeId optionally links the infraction to an InfractionNotice, honored only when the EnableInfractionNotices feature is on (otherwise ignored). The link is validated before the infraction is created, so a rejected link returns 400 with nothing persisted.
Request
Responses
- 200
- 400
- 403
The created or existing infraction, indicating whether it was newly created
Invalid model state or Api Error
Unauthenticated user