| 接口速览 | 说明 |
|---|---|
| 鉴权方式 | Bearer tw_live_*(或 tw_test_*) |
| 积分计费 | 按实际返回公司数 0.136 Credits / 家(重复项自动去重;502 不扣费) |
| 缓存机制 | L1 请求级缓存;30 天内同参数免重扣 |
| 限流与状态码 | 不分页;注意 type 枚举为 import / export;HTTP 201 |
new_add(新增)、active(活跃)、potential(潜在),返回对象以 {id}-{type} 为键,取值为 0 或 1。companies[].type 要求传 import 或 export,与其他海关接口的 importer / exporter 不同。Authorization: Bearer ********************{
"companies": [
{
"id": "968625318015787008",
"type": "export"
},
{
"id": "910281250104078336",
"type": "import"
}
]
}curl --location '/api/customs/companies/bulk-status' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"companies": [
{
"id": "968625318015787008",
"type": "export"
},
{
"id": "910281250104078336",
"type": "import"
}
]
}'{id}-{type} 为键的公司活跃状态映射{
"success": true,
"request_id": "req_l90bUFRyuNn5",
"data": {
"code": 1,
"msg": "Success",
"time": "1776237266",
"data": {
"968625318015787008-export": {
"new_add": 0,
"active": 1,
"potential": 0
},
"910281250104078336-import": {
"new_add": 0,
"active": 0,
"potential": 0
},
"1041012422930427904-export": {
"new_add": 0,
"active": 0,
"potential": 0
},
"1039559602620129280-import": {
"new_add": 0,
"active": 0,
"potential": 0
},
"973620821638320128-export": {
"new_add": 0,
"active": 1,
"potential": 1
},
"1039586022204510208-import": {
"new_add": 0,
"active": 1,
"potential": 0
},
"1039626534411075584-export": {
"new_add": 0,
"active": 0,
"potential": 1
},
"1039487626994130944-import": {
"new_add": 0,
"active": 1,
"potential": 1
},
"964898932009811968-export": {
"new_add": 0,
"active": 1,
"potential": 1
},
"910399404906143744-import": {
"new_add": 0,
"active": 1,
"potential": 1
},
"964929535574511616-import": {
"new_add": 0,
"active": 0,
"potential": 0
},
"1039546735924060160-export": {
"new_add": 0,
"active": 1,
"potential": 1
},
"910399164605689856-import": {
"new_add": 0,
"active": 1,
"potential": 1
},
"1039641428747603968-export": {
"new_add": 0,
"active": 0,
"potential": 1
},
"910418932753547264-import": {
"new_add": 0,
"active": 0,
"potential": 0
}
}
},
"meta": {
"billing": {
"credits_charged": 2.04,
"byok_used": false
}
},
"error": null
}