Home
Home
  1. Submissions
  • Getting started
  • Authentication
  • Webhooks
  • Embeddable widgets
    • Overview
    • Document upload widget
      • Designing an upload flow
  • Guides
    • Verifying a new business
    • Verifying bank accounts
    • Uploading documents
    • Country-specific fields
    • Supported document types
  • API reference
    • Submissions
      • Reports
        • List available report templates
        • Download a report
      • Create new submission
        POST
      • Get submission
        GET
      • Update submission
        PUT
      • Update submission status
        PUT
      • Run a submission pre-flight check
        POST
      • Run business verification
        POST
      • Get submission checks
        GET
      • Delete submission
        DELETE
      • List submissions
        GET
    • Documents
      • Public documents API
        • List documents (public)
        • Upload document (public)
        • Get document (public)
        • Delete document (public)
        • Download document file (public)
        • Rerun validations (public)
      • List documents
      • Upload document
      • Get document
      • Delete document
      • Download document file
      • Rerun validations
    • RPC search
      • RPC search
      • Get company with ID
      • Look up company by RFC
      • Search companies by name
      • Download RPC document
    • Utilities
      • Matcher
        • Run name matching
  1. Submissions

Run a submission pre-flight check

Testing
Production
https://api.niva.co/v1
Production
https://api.niva.co/v1
POST
https://api.niva.co/v1
/submissions/{id}/preflight
Runs the instant submission checks without starting verification, so you can fix problems before calling Run business verification. It evaluates the submission as a whole, using the documents uploaded so far. For example, one check confirms the applicant is authorized to act on behalf of the business; if it fails, you can ask the applicant for the missing legal documents now instead of sending a request for information (RFI) after the full analysis.
NOTE
Pre-flight needs a pending or pending_rfi submission and a policy with pre-flight checks enabled; otherwise the request returns 422 with Submission status must be pending or pending_rfi or Policy has no instant submission checks enabled. Contact support@niva.co to enable pre-flight checks on your policy.

Acting on the results#

Pre-flight is advisory. A validation_status other than valid does not prevent you from running the submission; it tells you what the full analysis is likely to find, so you can decide whether to resolve it first. Call it at a point in your onboarding flow where a short wait is acceptable, for example right after the applicant finishes uploading documents.

Request

Authorization
Add parameter in header
apiKey
Example:
apiKey: ********************
Path Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.niva.co/v1/submissions/sub_3ZMd9KJnvAdYt4mOyW7YQRAp/preflight' \
--header 'Accept-Language: en' \
--header 'apiKey: <api-key>'

Responses

🟢201Created
application/json
Success
Bodyapplication/json

Examples
{
  "id": "sub_3ZMd9KJnvAdYt4mOyW7YQRAp",
  "validation_status": "fail",
  "validation_errors": [
    {
      "type": "fail",
      "error": "applicant_not_legal_rep",
      "error_message": "Applicant is not a legal representative of the company.",
      "display_message": "Applicant has not proven they are a legal representative. Please upload documentation to prove you are a legal representative."
    }
  ]
}
🟠401Unauthorized
🟠404Not Found
🟠422Unprocessable Content
🔴500Internal Server Error
Previous
Update submission status
Next
Run business verification