cs.declaration-batches.list
根据条件列出报关单
- 请求路由:
cs.declaration-batches.list- 交互模型:
Request Stream- 访问限制: 无
请求
RSocket.rs({
"route" : "cs.declaration-batches.list",
"args" : {
"search" : "搜索条件",
"pg" : "分页和排序信息"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
search | Object | 否 | 搜索条件 |
search.customsDeclarationId | String | 否 | 关联报关 ID |
search.type | String | 否 | 报关类型 |
search.targetWarehouseIds | String[] | 否 | 目标仓库id集合 |
search.legalEntityIds | String[] | 否 | 法人主体id |
search.customerId | String | 否 | 客户id |
search.keyword | String | 否 | 模糊匹配关键字 |
search.from | String | 否 | 查询起始时间,时间样式为RFC3339格式,如:2019-04-18T00:13:39.649Z |
search.to | String | 否 | 查询终止时间,时间样式为RFC3339格式,如:2019-04-19T00:13:39.649Z |
pg | Object | 否 | 分页和排序信息 |
pg.page | Number | 否 | 页码,首页从0开始 |
pg.size | Number | 否 | 每页记录,默认为10 |
pg.sort | String[] | 否 | 排序字段清单,默认为升序,需要指定降序时在字段名后面添加desc并用分号隔开。 例如:["id", "crDate;desc"] |
返回
报关单对象的 Flux 流
[ ]
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
declarationId | String | 批次号(D + 8位日期流水) |
customsDeclarationId | String | 关联报关委托单 ID |
type | String | 报关类型 |
targetWarehouseId | String | 目标仓库(往来单位id) |
targetWarehouse | Object | 目标仓库(往来单位) |
targetWarehouse.country | String | 国家 |
targetWarehouse.countryEn | String | 国家(英文) |
targetWarehouse.abbreviation | String | 名称缩写 |
targetWarehouse.address | String | 地址(中文) |
targetWarehouse.addressEn | String | 地址(英文) |
targetWarehouse.contactPersons | Object[] | 联系人信息列表,支持多个联系人 |
targetWarehouse.contactPersons.[].username | String | 用户标识 |
targetWarehouse.contactPersons.[].name | String | 用户名称 |
targetWarehouse.contactPersons.[].nameEn | String | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
targetWarehouse.contactPersons.[].mobile | String | 用户手机号 |
targetWarehouse.contactPersons.[].email | String | 用户邮箱 |
targetWarehouse.contactPersons.[].position | String | 职位 |
targetWarehouse.contactPersons.[].contactRoles | String[] | 联系人承担的职责,支持多选;未指定时为空集合 |
targetWarehouse.bankAccounts | Object[] | 银行账户列表,支持多个账户 |
targetWarehouse.bankAccounts.[].accountName | String | 开户名称 |
targetWarehouse.bankAccounts.[].bankName | String | 银行名称 |
targetWarehouse.bankAccounts.[].bankCode | String | 联行号 |
targetWarehouse.bankAccounts.[].bankAccount | String | 银行账号 |
targetWarehouse.bankAccounts.[].currency | String | 币制 |
targetWarehouse.bankAccounts.[].swiftCode | String | SWIFT CODE |
targetWarehouse.bankAccounts.[].address | String | 地址 |
targetWarehouse.bankAccounts.[].isDefault | Boolean | 是否默认 |
targetWarehouse.invoiceInfo | Object | 开票信息 |
targetWarehouse.invoiceInfo.companyName | String | 公司名称 |
targetWarehouse.invoiceInfo.taxIdentificationNumber | String | 纳税识别号 |
targetWarehouse.invoiceInfo.companyAddress | String | 公司地址 |
targetWarehouse.invoiceInfo.phone | String | 电话 |
targetWarehouse.invoiceInfo.bankAccount | String | 银行账号 |
targetWarehouse.invoiceInfo.contact | String | 联系人 |
targetWarehouse.invoiceInfo.email | String | 邮箱 |
targetWarehouse.extraProps | Object | 扩展信息 |
targetWarehouse.relatedCustomers | Object[] | 关联客户列表 |
targetWarehouse.relatedCustomers.[].tags | String[] | 该客户赋予当前往来单位的角色标签列表(如 shipper, consignee, importBuyer 等) |
targetWarehouse.relatedCustomers.[].extraProps | Object | 专属定制扩展属性 (Key 为 tag 比如 "shipper", Value 为特定定制的 Unit 实例) |
targetWarehouse.relatedCustomers.[].unitId | String | 往来单位唯一ID,主键 |
targetWarehouse.relatedCustomers.[].name | String | 名称(中文) |
targetWarehouse.relatedCustomers.[].nameEn | String | 名称(英文) |
targetWarehouse.unitId | String | 往来单位唯一ID,主键 |
targetWarehouse.name | String | 名称(中文) |
targetWarehouse.nameEn | String | 名称(英文) |
contract | Object | 合同信息 |
contract.seller | Object | 卖方 |
contract.seller.name | String | 名称(英文) |
contract.seller.address | String | 地址(英文) |
contract.seller.tel | String | 电话 |
contract.seller.fax | String | 传真 |
contract.seller.contactPerson | String | 联系人 |
contract.seller.tax | String | 税号 |
contract.buyer | Object | 买方 |
contract.buyer.name | String | 名称(英文) |
contract.buyer.address | String | 地址(英文) |
contract.buyer.tel | String | 电话 |
contract.buyer.fax | String | 传真 |
contract.buyer.contactPerson | String | 联系人 |
contract.buyer.tax | String | 税号 |
contract.contractNo | String | 合同号 |
contract.contractDate | String | 合同日期 |
contract.signAt | String | 签约地点 |
contract.tradeTerm | String | 贸易条款 |
contract.timeOfShipment | String | 装货时间(yyyy-MM-dd) |
contract.loadingPortDestination | String | 装货港到目的地描述 |
contract.termsOfPayment | String | 付款条款 |
contract.shippingMarks | String | 唛头 所有packingList唛头去重后拼接而成 |
contract.theBuyer | Object | 目的地买方 |
contract.theBuyer.name | String | 名称(英文) |
contract.theBuyer.address | String | 地址(英文) |
contract.theBuyer.tel | String | 电话 |
contract.theBuyer.fax | String | 传真 |
contract.theBuyer.contactPerson | String | 联系人 |
contract.theBuyer.tax | String | 税号 |
contract.theSeller | Object | 目的地卖方 |
contract.theSeller.name | String | 名称(英文) |
contract.theSeller.address | String | 地址(英文) |
contract.theSeller.tel | String | 电话 |
contract.theSeller.fax | String | 传真 |
contract.theSeller.contactPerson | String | 联系人 |
contract.theSeller.tax | String | 税号 |
invoice | Object | 发票信息 |
invoice.shipperExporter | String | 卖方信息(注意换行) 卖方名称英文 卖方英文地址 卖方联系人 卖方税号 |
invoice.invoiceNo | String | 发票号 |
invoice.invoiceDate | String | 发票日期 |
invoice.deliveryTerm | String | 交货条款 |
invoice.consigneeImporter | String | 买方信息(注意换行) 买方名称英文 买方英文地址 |
invoice.notifyParty | String | 和收货人相同 |
invoice.portOfDeparture | String | 出发港 |
invoice.portOfDestination | String | 目的港 |
invoice.packingAndShippingMarks | String | 包装唛头 所有packingList唛头去重后拼接而成 |
productInfo | Object[] | 产品信息列表 |
productInfo.[].productNo | String | SKU |
productInfo.[].productNameEn | String | 商品英文名 |
productInfo.[].productName | String | 商品名 |
productInfo.[].spec | String | 规格 |
productInfo.[].unit | String | 单位 |
productInfo.[].boxCapacity | Number | 每箱数量 |
productInfo.[].unitPrice | Number | 单价(USD) |
packingList | Object[] | 装箱清单列表 |
packingList.[].containerNo | String | 集装箱号 |
packingList.[].sealNo | String | 封签号 |
packingList.[].model | String | 型号(SKU) |
packingList.[].productName | String | 商品名 |
packingList.[].productNameEn | String | 商品英文名 |
packingList.[].carton | Number |