Skip to main content
GET /v1/companies finds companies by name, by registration number, or both.

Name matching

The name parameter accepts English or Thai text. The server applies the match itself and ignores client-supplied wildcard characters (* % _ ? [ ]). After those characters are removed, at least three characters must remain or the request is rejected. match controls how the remaining text is applied: A common mistake is to send % or * yourself. The server will strip them, which can leave fewer than three characters and produce a validation error. Send the raw text and let the server add its own pattern.

Registration numbers

reg_no is a full 13-digit registration number. It is matched exactly after the same wildcard characters are stripped, and match is ignored for this parameter. Partial numbers are not supported. You can send name and reg_no together; a hit has to satisfy both.

Choosing a company_id

Each hit includes a company_id. That is the value you pass to lookup and to report orders.
  • In the sandbox, use the sample catalogue.
  • In production, the value is a nine-digit public_id. Persist it with the environment you called.
If several companies match, do not guess. Compare company_name, local_name, registration_number, and operating_address, then look up the one you mean. The profile field database_report is also present on search hits. Use it to decide between a database report and an offline investigation.

Empty results

An empty list is a successful response, not an error. See Coverage for the usual reasons a production search returns nothing, and Offline reports for ordering by details when you cannot find the company.