{"components":{"schemas":{"AllowanceAnswer":{"description":"The allowance answer: the counts, no vehicle list.","properties":{"limit":{"format":"int32","minimum":0,"type":"integer"},"reason":{"type":"string"},"unlimited":{"type":"boolean"},"used":{"format":"int32","minimum":0,"type":"integer"}},"required":["limit","used","unlimited","reason"],"type":"object"},"Error":{"properties":{"code":{"type":"string"},"details":{"description":"`labor_allowance_reached` carries `{limit, used, unlimited_url}`."},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"ErrorAnswer":{"description":"The API's error body: `{\"error\": {\"code\", \"message\", \"details\"}}`.","properties":{"error":{"$ref":"#/components/schemas/Error"}},"required":["error"],"type":"object"},"EstimateAnswer":{"description":"The estimate answer.","properties":{"attribution":{"items":{"type":"string"},"type":"array"},"available":{"type":"boolean"},"disclaimer":{"type":"string"},"estimates":{"items":{"$ref":"#/components/schemas/EstimateRow"},"type":"array"},"note":{"type":"string"},"vehicle":{"$ref":"#/components/schemas/VehicleAnswer"}},"required":["vehicle","available","estimates","note","attribution","disclaimer"],"type":"object"}},"securitySchemes":{"bearer":{"scheme":"bearer","type":"http"}}},"info":{"title":"Wenmar Labor API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/v1/allowance":{"get":{"operationId":"allowance","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowanceAnswer"}}},"description":"The allowance: limit, used, unlimited, reason"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"unauthenticated: No Wenmar token, or Wenmar refused it"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"labor_allowance_reached: The 10 free vehicles are used"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"not_found: Wenmar found no such vehicle or job"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"validation_failed: The query names no vehicle"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"unavailable: Wenmar did not answer; try again in a minute"}},"summary":"The account's free allowance: the limit and the vehicles used"}},"/v1/estimate":{"get":{"operationId":"estimate","parameters":[{"description":"The vehicle's VIN","in":"query","name":"vin","required":false,"schema":{"type":"string"}},{"description":"The vehicle's year","in":"query","name":"year","required":false,"schema":{"type":"string"}},{"description":"The vehicle's make","in":"query","name":"make","required":false,"schema":{"type":"string"}},{"description":"The vehicle's model","in":"query","name":"model","required":false,"schema":{"type":"string"}},{"description":"The vehicle's engine (optional)","in":"query","name":"engine","required":false,"schema":{"type":"string"}},{"description":"One job's figure: the job's id (optional)","in":"query","name":"job","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateAnswer"}}},"description":"The figures for the vehicle, an estimate not a quote"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"unauthenticated: No Wenmar token, or Wenmar refused it"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"labor_allowance_reached: The 10 free vehicles are used"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"not_found: Wenmar found no such vehicle or job"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"validation_failed: The query names no vehicle"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"}}},"description":"unavailable: Wenmar did not answer; try again in a minute"}},"summary":"The labor estimates for one vehicle, as Wenmar answers them now"}}},"security":[{"bearer":[]}]}