search by namea company’s namewhich one is it?search by identifierits registry numberexactly this onea DOI, a docket number, a ticker: 16 kinds of identifier
The run in 4 steps
Read the certificate into your fields
Upload the PDF with the fields of your supplier file as a template.Fields sent with the file to upload_contents
Look the number up at the issuing body
A certificate’s number is searched as the schemeregistry, with the code of the body that issued it. The catalog of datasources lists the bodies whose registers can be searched, each with its code. This search has no words: the number is looked up.
Request body of search
CERTIFICATE_NUMBER with the number from the certificate, and ISSUER_CODE with the issuing body’s code from the catalog.
Compare the register with the PDF
A result that matches the number says so, and it can have what the register declares about the item. This part of the result is cut to those 2 fields.Part of the result
status is the register’s own word. Fetch the register’s page for the certificate, and fill the same 6 fields from it. Your agent then has 2 rows of one template, one from the PDF and one from the register, and each difference between them is a finding: another holder, another scope, another last day.
the supplier’s PDFthe issuer’s registerthe same 4 fields, from eachholderscopevalid untilstatusvalidwithdrawna difference is a findingwhat the register says, not what the PDF claims