Where the API sits
Trigger
VIN scanned
The lot attendant scans the door-jamb barcode into the inventory system.
API call
Decode and check safety
One call per batch of VINs with
includeSafetyReporton. Invalid VINs are caught before any charge.Your logic
Map and decide
Fill the listing fields; hold the car if
safetyReport.recallCountis above the dealer's threshold.Result
Listing draft
A complete draft for the sales team, a service task for held cars, a rescan prompt for bad VINs.
Wired as a webhook: the inventory system posts each scanned VIN to a small function that calls the API synchronously and writes the record back. The same call takes a nightly batch of thousands of VINs for a fleet or an auction feed.