202 Accepted. The order starts in status Active with no report attached. You poll, or you wait for a callback.
In production, INRA staff check business rules first (for example a repeat order for the same company within an agreed period) and then create the real order, so the request may later be cancelled instead of completed. In the sandbox the order completes automatically after a short delay with a sample report.
Known company
POST /v1/offline-reports is for a company you already found with search. company_id is required.
content_type is basic (one time frame, two working days) or regular (the default). For regular, speed is:
Omit
speed when content_type is basic. The response includes expected_working_days and an estimated expected_due_date (Monday–Friday, Asia/Bangkok; public holidays are not excluded). Some clients have agreed shorter times.
reference and note are optional. Callbacks always go to the single URL INRA registered for your client; they cannot be set per order.
Company not found in search
POST /v1/offline-reports/by-details is for a subject search did not return. Send at least company_name, local_name, or the 13-digit registration_number. Address, phone, website, and country_code help INRA identify the subject.
The order has no company_id until INRA identifies it. The order.identified callback and a later GET /v1/orders/{order_id} include the id afterwards. Delivery of the report is the same as for a known-company offline order (poll or callback).
Completing, cancelling, and downloading
PollGET /v1/orders/{order_id} or list GET /v1/orders?status=completed. When the status is Completed, download the report from GET /v1/orders/{order_id}/report (JSON or XML, same schema as a database report).
409 order_not_completed— the order is stillActive409 order_cancelled— seecancellationon the order406 pdf_not_available— PDF is not offered in v1
reference that starts with test-cancel is cancelled instead of completed, so you can practise that path. That prefix has no special meaning in production; do not send it on a real order.
