Error codes

vin_not_enrollable

Vehicle can't be enrolled

HTTP 422

We can't add the vehicle, and the answer doesn't say why. It is the answer for a vehicle with a live membership, your institution's included, and for a vehicle that was the subject of a total-loss consultation with SecondAppraisal; a malformed VIN, a missing or unserved garaged state and your program's own refusals are answered first, with their own codes. Nothing is written. If you think this is wrong, contact business@secondappraisal.com with the response's request_id.

The problem body

Sent as application/problem+json, with the request id in request_id and the X-Request-Id header. Branch on code: the error and detail sentences can change, and some operations add members of their own.

Example problem
{
  "error": "We can't add this car. If you think that's wrong, contact business@secondappraisal.com.",
  "code": "vin_not_enrollable",
  "type": "https://secondappraisal.com/developers/errors/vin_not_enrollable",
  "title": "Vehicle can't be enrolled",
  "status": 422,
  "detail": "We can't add this car. If you think that's wrong, contact business@secondappraisal.com.",
  "instance": "/api/gap/v1/plans/enrollments",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it