Skip to main content
POST
Reference example

Request contract

  • Method and path: POST /apis/v1/trade/companies/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/trade/companies/search
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Published reference price: $0.01 USD per billable unit. Default request estimate: $0.01 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
hs_code
string
required
Required string length: 6 - 10
Pattern: ^[0-9]{6,10}$
role
enum<string>
required
Available options:
exporter,
importer
cursor
string
Required string length: 1 - 200
exclude_forwarders
boolean
default:true
exporter_country
string
Required string length: 2 - 80
importer_country
string
Required string length: 2 - 80
limit
integer
default:10
Required range: 1 <= x <= 100
product
string
Required string length: 2 - 100
since
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
sort
enum<string>
default:shipments
Available options:
recorded_value,
shipments
trading_with
string
Required string length: 2 - 200
until
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

Response

Normalized successful response

data
object[]
required

The results of this page.

has_more
boolean
required

Whether more results follow this page.

next_cursor
string | null
required

Pass it as cursor to get the next page. Null on the last page.

notice
string | null
required

A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.

query
object
required

The request as it was understood: country names as codes, the default dates filled in. data_through says how recent the records behind the answer are.

total
integer
required

How many results match in all. Use it to decide between paging on and narrowing the query.