Skip to main content
A database report is an on-file INRA report for a company you have already found. You place it with POST /v1/database-reports. In the sandbox this returns a masked fixture immediately and does not create an order at INRA head office, does not send email, and is not billed. In production it creates a real order, returns the report in the same response when one is on file, and may be billed.

Request

The only required field is company_id. reference is optional and is echoed on the order so you can correlate it with your own records.
An XML body uses the root database_report_request in the namespace https://partners.inra.co.th/schema/v1. The response is an order already in status Completed, including the report body. You can fetch it again with GET /v1/orders/{order_id} or download only the report from GET /v1/orders/{order_id}/report.

When there is no report on file

If the company exists but has no database report, the API returns 404 with the code report_not_available. Check database_report on the search hit or the profile before you order, and use an offline report when the flag is false. Sandbox company 100003 is reserved for this case.

Production-only failures

  • 403 client_not_configured — this production client has not yet been enabled for database reports. Email inraasth@inra.co.th.
  • 503 order_failed — the order could not be queued. No charge was made. Wait for Retry-After and retry.
PDF is not available in v1 (406 pdf_not_available). Use JSON or XML. Coded values inside the report are {code, name} objects. Resolve and cache them with Dictionaries.