Skip to main content
GET
Reference example

Request contract

  • Method and path: GET /apis/v1/trade/companies/{id}/shipments
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/trade/companies/{id}/shipments
  • id: path; required
  • cursor: query; optional
  • exporter_country: query; optional
  • fields: query; optional
  • hs_code: query; optional
  • importer_country: query; optional
  • limit: query; optional
  • product: query; optional
  • role: query; optional
  • since: query; optional
  • sort: query; optional
  • until: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Published reference price: $0.005 USD per billable unit. Default request estimate: $0.005 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.

Path Parameters

id
string
required
Required string length: 1 - 40
Pattern: ^[A-Za-z0-9_-]{1,40}$

Query Parameters

cursor
string
Required string length: 1 - 200
exporter_country
string
Required string length: 2 - 80
fields
string
hs_code
string
Required string length: 6 - 10
Pattern: ^[0-9]{6,10}$
importer_country
string
Required string length: 2 - 80
limit
integer
default:10
Required range: 1 <= x <= 100
product
string
Required string length: 2 - 100
role
enum<string>
default:importer
Available options:
exporter,
importer
since
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
sort
enum<string>
default:date_desc
Available options:
date_asc,
date_desc
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.