Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/trade/companies/co_g7sfqjqgfxj3/partners?limit=1&role=supplier' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/trade/companies/{id}/partners \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/trade/companies/{id}/partners"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/trade/companies/{id}/partners', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/trade/companies/{id}/partners",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/trade/companies/{id}/partners"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/trade/companies/{id}/partners")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trade/companies/{id}/partners")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"country": "<string>",
"id": "<string>",
"name": "<string>",
"recorded_value_usd": 123,
"role": "supplier",
"sample_product": "<string>",
"share": 123,
"shipments": 123,
"website": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"notice": "<string>",
"query": {
"data_through": "<string>"
},
"total": 123
}Global Trade & Customs
List a company's suppliers or buyers
Global Trade & Customs API (trade.companies.id.partners)
GET
https://api.aisa.one
/
apis
/
v1
/
trade
/
companies
/
{id}
/
partners
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/trade/companies/co_g7sfqjqgfxj3/partners?limit=1&role=supplier' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/trade/companies/{id}/partners \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/trade/companies/{id}/partners"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/trade/companies/{id}/partners', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/trade/companies/{id}/partners",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/trade/companies/{id}/partners"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/trade/companies/{id}/partners")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trade/companies/{id}/partners")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"country": "<string>",
"id": "<string>",
"name": "<string>",
"recorded_value_usd": 123,
"role": "supplier",
"sample_product": "<string>",
"share": 123,
"shipments": 123,
"website": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"notice": "<string>",
"query": {
"data_through": "<string>"
},
"total": 123
}Request contract
- Method and path: GET /apis/v1/trade/companies/{id}/partners
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/trade/companies/{id}/partners - id: path; required
- cursor: query; optional
- hs_code: query; optional
- limit: query; optional
- role: query; optional
- since: query; optional
- sort: query; optional
- until: query; optional
{
"operationId": "trade.companies.id.partners",
"method": "GET",
"path": "/apis/v1/trade/companies/{id}/partners",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"examples": {
"default": {
"value": "co_g7sfqjqgfxj3"
},
"minimal": {
"value": "co_g7sfqjqgfxj3"
}
},
"in": "path",
"name": "id",
"required": true,
"schema": {
"maxLength": 40,
"minLength": 1,
"pattern": "^[A-Za-z0-9_-]{1,40}$",
"type": "string"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "hs_code",
"required": false,
"schema": {
"maxLength": 10,
"minLength": 6,
"pattern": "^[0-9]{6,10}$",
"type": "string"
}
},
{
"examples": {
"default": {
"value": 1
},
"minimal": {
"value": 1
}
},
"in": "query",
"name": "limit",
"required": false,
"schema": {
"default": 10,
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"examples": {
"default": {
"value": "supplier"
},
"minimal": {
"value": "supplier"
}
},
"in": "query",
"name": "role",
"required": false,
"schema": {
"default": "supplier",
"enum": [
"buyer",
"supplier"
],
"type": "string"
}
},
{
"in": "query",
"name": "since",
"required": false,
"schema": {
"maxLength": 10,
"minLength": 10,
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"type": "string"
}
},
{
"in": "query",
"name": "sort",
"required": false,
"schema": {
"default": "shipments",
"enum": [
"recorded_value",
"shipments"
],
"type": "string"
}
},
{
"in": "query",
"name": "until",
"required": false,
"schema": {
"maxLength": 10,
"minLength": 10,
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
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
Query Parameters
Response
Normalized successful response