Home
Home
  1. RPC search
  • 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
      • Get submission
      • Update submission
      • Update submission status
      • Run a submission pre-flight check
      • Run business verification
      • Get submission checks
      • Delete submission
      • List submissions
    • 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
        GET
      • Look up company by RFC
        GET
      • Search companies by name
        GET
      • Download RPC document
        GET
    • Utilities
      • Matcher
        • Run name matching
  1. RPC search

Download RPC document

Production
https://api.niva.co/v1
Production
https://api.niva.co/v1
GET
https://api.niva.co/v1
/rpc/documents/{document_id}/file
Mexico only. Redirects (302) to a temporary URL of a filing (PDF) from Mexico's Public Registry of Commerce (RPC). Use a documents[].id (mxd_…) from Look up company by RFC or Get company with ID; it is null until Niva has fetched the file, and this endpoint returns 404 Document file currently not available while the file is being fetched.

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 'https://api.niva.co/v1/rpc/documents/mxd_3fH9pL2qWe/file' \
--header 'Accept-Language: en' \
--header 'apiKey: <api-key>'

Responses

🔵302Found
Redirect to the document file
Headers

This response does not have a body.
🟠401Unauthorized
🟠404Not Found
🔴500Internal Server Error
Previous
Search companies by name
Next
Utilities