GET /v1/companies finds companies by name, by registration number, or both.
Name matching
Thename 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 acompany_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.
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.

