What errors can the Contractor License API return?
  • 400: licenseNumber or state is missing. The message says "License number and state are required".
  • 404: the state isn't supported (the message lists the supported states), or the state is down for maintenance. You aren't charged for either.
  • 404 "Retry Id invalid": the retryId is unknown or more than 7 days old.
  • 429: your trial limit has been reached. Contact us to continue.
  • Failed: status: "Failed" with statusCode: 500 when the state lookup breaks, or when a lookup is still running after 5 minutes. It's sent to your callback, or returned when you collect with your retryId. You aren't charged. Let us know if it keeps happening.

A license that isn't found isn't an error. It comes back as status: "Complete" with an empty results list and message: "No data found".

contractor-license-api