{"openapi":"3.1.0","info":{"title":"Certify Compliance Verification API","description":"Real-time Australian (ABR/NSW) and UK (Companies House + ECCTA) business compliance verification.","version":"1.1.0"},"paths":{"/v1/screen/entity":{"post":{"tags":["Screening"],"summary":"Screen Entity Endpoint","operationId":"screen_entity_endpoint_v1_screen_entity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityScreenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/person":{"post":{"tags":["Screening"],"summary":"Screen Person Endpoint","operationId":"screen_person_endpoint_v1_screen_person_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonScreenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/verify/{audit_id}":{"get":{"tags":["Screening"],"summary":"Verify Receipt Endpoint","operationId":"verify_receipt_endpoint_v1_screen_verify__audit_id__get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/checkout/{audit_id}":{"post":{"tags":["Screening"],"summary":"Create Receipt Checkout","operationId":"create_receipt_checkout_v1_screen_checkout__audit_id__post","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CheckoutRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/receipt/{audit_id}.pdf":{"get":{"tags":["Screening"],"summary":"Download Receipt Pdf","operationId":"download_receipt_pdf_v1_screen_receipt__audit_id__pdf_get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/":{"get":{"tags":["Screening"],"summary":"Screen Ui","operationId":"screen_ui_v1_screen__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v1/screen/batch-template.csv":{"get":{"tags":["Screening"],"summary":"Batch Template Csv","operationId":"batch_template_csv_v1_screen_batch_template_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/screen/batch":{"post":{"tags":["Screening"],"summary":"Screen Batch Endpoint","operationId":"screen_batch_endpoint_v1_screen_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchScreenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/batch/{batch_id}/checkout":{"post":{"tags":["Screening"],"summary":"Create Batch Checkout","operationId":"create_batch_checkout_v1_screen_batch__batch_id__checkout_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/batch/{batch_id}.zip":{"get":{"tags":["Screening"],"summary":"Download Batch Zip","operationId":"download_batch_zip_v1_screen_batch__batch_id__zip_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screen/batch/bundle":{"post":{"tags":["Screening"],"summary":"Create Bundle Checkout","operationId":"create_bundle_checkout_v1_screen_batch_bundle_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checks":{"post":{"tags":["Checks API"],"summary":"Create Check","operationId":"create_check_v1_checks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checks/{check_id}":{"get":{"tags":["Checks API"],"summary":"Get Check","operationId":"get_check_v1_checks__check_id__get","parameters":[{"name":"check_id","in":"path","required":true,"schema":{"type":"string","title":"Check Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checks/{check_id}/pdf":{"get":{"tags":["Checks API"],"summary":"Get Check Pdf","operationId":"get_check_pdf_v1_checks__check_id__pdf_get","parameters":[{"name":"check_id","in":"path","required":true,"schema":{"type":"string","title":"Check Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business/check":{"post":{"tags":["business-ppsr"],"summary":"Business Check Endpoint","operationId":"business_check_endpoint_v1_business_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business/checkout/{audit_id}":{"post":{"tags":["business-ppsr"],"summary":"Business Checkout Endpoint","operationId":"business_checkout_endpoint_v1_business_checkout__audit_id__post","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business/webhook":{"post":{"tags":["business-ppsr"],"summary":"Business Stripe Webhook","operationId":"business_stripe_webhook_v1_business_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/business/result/{audit_id}":{"get":{"tags":["business-ppsr"],"summary":"Business Result Endpoint","operationId":"business_result_endpoint_v1_business_result__audit_id__get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business/receipt/{audit_id}.pdf":{"get":{"tags":["business-ppsr"],"summary":"Download Business Receipt Pdf","operationId":"download_business_receipt_pdf_v1_business_receipt__audit_id__pdf_get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business/ppsr-certificate/{audit_id}.pdf":{"get":{"tags":["business-ppsr"],"summary":"Download Official Ppsr Pdf","operationId":"download_official_ppsr_pdf_v1_business_ppsr_certificate__audit_id__pdf_get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/business-check":{"get":{"tags":["business-ui"],"summary":"Business Check Page","operationId":"business_check_page_business_check_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/verify":{"post":{"summary":"Verify Entity","operationId":"verify_entity_v1_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/gb/verify":{"post":{"summary":"Verify Uk Entity","operationId":"verify_uk_entity_v1_gb_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UKVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UKVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AuditEnvelope":{"properties":{"request_id":{"type":"string","title":"Request Id"},"verified_at_utc":{"type":"string","format":"date-time","title":"Verified At Utc"},"sources_checked":{"items":{"type":"string"},"type":"array","title":"Sources Checked"},"sha256_receipt":{"type":"string","title":"Sha256 Receipt"},"disclaimer":{"type":"string","title":"Disclaimer","default":"Data sourced as-is from official public registers at verified_at_utc. Not legal, financial, or compliance advice."}},"type":"object","required":["request_id","verified_at_utc","sources_checked","sha256_receipt"],"title":"AuditEnvelope"},"BatchScreenRequest":{"properties":{"csv_text":{"type":"string","minLength":3,"title":"Csv Text"}},"type":"object","required":["csv_text"],"title":"BatchScreenRequest"},"BundleCheckoutRequest":{"properties":{"audit_ids":{"items":{"type":"string"},"type":"array","maxItems":25,"minItems":1,"title":"Audit Ids"},"client_ref":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Client Ref"}},"type":"object","required":["audit_ids"],"title":"BundleCheckoutRequest"},"BusinessCheckRequest":{"properties":{"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"abn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abn"},"acn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acn"}},"type":"object","title":"BusinessCheckRequest"},"CheckCreateRequest":{"properties":{"subject_type":{"type":"string","enum":["person","entity"],"title":"Subject Type"},"name":{"type":"string","maxLength":200,"minLength":2,"title":"Name"},"acn":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Acn"},"abn":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Abn"},"subject_role":{"anyOf":[{"type":"string","enum":["CUSTOMER","BENEFICIAL_OWNER","AUTHORISED_AGENT"]},{"type":"null"}],"title":"Subject Role"},"client_ref":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Client Ref"},"modules":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modules"}},"type":"object","required":["subject_type","name"],"title":"CheckCreateRequest"},"CheckoutRequest":{"properties":{"subject_role":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Subject Role"},"pep_resolution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pep Resolution"},"client_ref":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Client Ref"}},"type":"object","title":"CheckoutRequest"},"CountryCode":{"type":"string","enum":["AU"],"title":"CountryCode"},"ECCTAVerificationState":{"type":"string","enum":["VERIFIED","ENDED","UNKNOWN"],"title":"ECCTAVerificationState"},"EntityRecord":{"properties":{"abn":{"type":"string","title":"Abn"},"acn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acn"},"status":{"$ref":"#/components/schemas/EntityStatus"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"gst_registered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gst Registered"},"gst_effective_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gst Effective From"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postcode"}},"type":"object","required":["abn","status"],"title":"EntityRecord"},"EntityScreenRequest":{"properties":{"entity_name":{"type":"string","maxLength":200,"minLength":2,"title":"Entity Name"},"acn":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Acn"},"abn":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Abn"}},"type":"object","required":["entity_name"],"title":"EntityScreenRequest"},"EntityStatus":{"type":"string","enum":["ACTIVE","CANCELLED","NOT_FOUND","UNVERIFIED"],"title":"EntityStatus"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LicenceRecord":{"properties":{"licence_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence Number"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"status":{"$ref":"#/components/schemas/LicenceStatus"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"licence_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence Type"},"classes":{"items":{"type":"string"},"type":"array","title":"Classes"},"expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Date"}},"type":"object","required":["jurisdiction","status"],"title":"LicenceRecord"},"LicenceStatus":{"type":"string","enum":["CURRENT","EXPIRED","SUSPENDED","CANCELLED","NOT_FOUND","NOT_CHECKED"],"title":"LicenceStatus"},"PersonScreenRequest":{"properties":{"full_name":{"type":"string","maxLength":150,"minLength":2,"title":"Full Name"},"subject_role":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Subject Role"}},"type":"object","required":["full_name"],"title":"PersonScreenRequest"},"UKAuditEnvelope":{"properties":{"request_id":{"type":"string","title":"Request Id"},"verified_at_utc":{"type":"string","format":"date-time","title":"Verified At Utc"},"sources_checked":{"items":{"type":"string"},"type":"array","title":"Sources Checked"},"sha256_receipt":{"type":"string","title":"Sha256 Receipt"},"disclaimer":{"type":"string","title":"Disclaimer","default":"Data sourced as-is from UK Companies House public register at verified_at_utc. ECCTA identity states reflect register signals only. Not legal or financial advice."}},"type":"object","required":["request_id","verified_at_utc","sources_checked","sha256_receipt"],"title":"UKAuditEnvelope"},"UKEntityRecord":{"properties":{"company_number":{"type":"string","title":"Company Number"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_status":{"type":"string","title":"Company Status"},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Type"},"date_of_creation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Of Creation"},"sic_codes":{"items":{"type":"string"},"type":"array","title":"Sic Codes"},"registered_office_postcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registered Office Postcode"},"risk_signals":{"anyOf":[{"$ref":"#/components/schemas/UKRiskSignals"},{"type":"null"}]},"active_directors_count":{"type":"integer","title":"Active Directors Count","default":0},"directors_eccta_verified_count":{"type":"integer","title":"Directors Eccta Verified Count","default":0},"active_pscs_count":{"type":"integer","title":"Active Pscs Count","default":0},"pscs_eccta_verified_count":{"type":"integer","title":"Pscs Eccta Verified Count","default":0},"active_directors":{"items":{"$ref":"#/components/schemas/UKOfficerSummary"},"type":"array","title":"Active Directors"},"active_pscs":{"items":{"$ref":"#/components/schemas/UKPSCSummary"},"type":"array","title":"Active Pscs"}},"type":"object","required":["company_number","company_status"],"title":"UKEntityRecord"},"UKOfficerSummary":{"properties":{"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"appointed_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointed On"},"eccta_id_state":{"$ref":"#/components/schemas/ECCTAVerificationState"}},"type":"object","required":["name","role","eccta_id_state"],"title":"UKOfficerSummary"},"UKPSCSummary":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"natures_of_control":{"items":{"type":"string"},"type":"array","title":"Natures Of Control"},"eccta_id_state":{"$ref":"#/components/schemas/ECCTAVerificationState"}},"type":"object","required":["name","kind","eccta_id_state"],"title":"UKPSCSummary"},"UKRiskSignals":{"properties":{"accounts_overdue":{"type":"boolean","title":"Accounts Overdue"},"confirmation_statement_overdue":{"type":"boolean","title":"Confirmation Statement Overdue"},"has_insolvency_history":{"type":"boolean","title":"Has Insolvency History"},"has_charges":{"type":"boolean","title":"Has Charges"}},"type":"object","required":["accounts_overdue","confirmation_statement_overdue","has_insolvency_history","has_charges"],"title":"UKRiskSignals"},"UKVerifyRequest":{"properties":{"company_number":{"type":"string","maxLength":10,"minLength":6,"title":"Company Number","description":"UK Companies House registration number (e.g. 00445790 or SC123456)"}},"type":"object","required":["company_number"],"title":"UKVerifyRequest"},"UKVerifyResponse":{"properties":{"compliant_pass":{"type":"boolean","title":"Compliant Pass","description":"True only if company_status is 'active', accounts & confirmation statement are not overdue, and no insolvency history."},"country":{"type":"string","title":"Country","default":"GB"},"entity":{"$ref":"#/components/schemas/UKEntityRecord"},"audit":{"$ref":"#/components/schemas/UKAuditEnvelope"}},"type":"object","required":["compliant_pass","entity","audit"],"title":"UKVerifyResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyRequest":{"properties":{"country":{"$ref":"#/components/schemas/CountryCode","description":"ISO 3166-1 alpha-2 country code","default":"AU"},"entity_id":{"type":"string","maxLength":24,"minLength":9,"title":"Entity Id","description":"11-digit ABN (spaces allowed)"},"licence_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Licence Number","description":"State trade/contractor licence number"},"state":{"anyOf":[{"type":"string","enum":["NSW","VIC","QLD","WA","SA","TAS","ACT","NT"]},{"type":"null"}],"title":"State","description":"Australian state/territory for trade licence lookup","default":"NSW"}},"type":"object","required":["entity_id"],"title":"VerifyRequest"},"VerifyResponse":{"properties":{"compliant_pass":{"type":"boolean","title":"Compliant Pass","description":"True only if entity is ACTIVE and (if licence_number was supplied) licence is CURRENT."},"country":{"$ref":"#/components/schemas/CountryCode"},"entity":{"$ref":"#/components/schemas/EntityRecord"},"licence":{"$ref":"#/components/schemas/LicenceRecord"},"audit":{"$ref":"#/components/schemas/AuditEnvelope"}},"type":"object","required":["compliant_pass","country","entity","licence","audit"],"title":"VerifyResponse"}}}}