接口参数
参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
---|---|---|---|---|---|
access_token | 字符串 | 必须 | 请到授权模块-申请访问令牌获取access_token | 必填 | |
upfile | file | 必须 | 最小:0 | 请上传图片 |
返回字段
返回结果 | 类型 | 说明 |
---|---|---|
ret | 整型 | 状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误 |
data | 对象或混合类型 | 业务数据,由各自接口指定,通常为对象 |
data.content | 对象 | 报关单内容信息 |
data.content.receiver | 字符串 | 境内收货人 |
data.content.enter_customs_name | 字符串 | 进境关别 |
data.content.import_date | 字符串 | 进口日期 |
data.content.declaration_date | 字符串 | 申报日期 |
data.content.sender | 字符串 | 境外发货人 |
data.content.shipping_method | 字符串 | 运输方式 |
data.content.transportation_and_voyages | 字符串 | 运输工具名称及航次号 |
data.content.waybill | 字符串 | 提运单号 |
data.content.goods_storage_location | 字符串 | 货物存放地点 |
data.content.consumption_unit | 字符串 | 消费使用单位 |
data.content.supervision_method | 字符串 | 监管方式 |
data.content.tax_nature | 字符串 | 征免性质 |
data.content.permit_number | 字符串 | 许可证号 |
data.content.start_shipping_port | 字符串 | 启运港 |
data.content.contract_number | 字符串 | 合同协议号 |
data.content.trading_country | 字符串 | 贸易国 |
data.content.start_shipping_country | 字符串 | 启运国 |
data.content.stopped_port | 字符串 | 经停港 |
data.content.entry_port | 字符串 | 入境口岸 |
data.content.packaging_type | 字符串 | 包装种类 |
data.content.number_of_pieces | 字符串 | 件数 |
data.content.gross_weight | 字符串 | 毛重 |
data.content.net_weight | 字符串 | 净重 |
data.content.transaction_method | 字符串 | 成交方式 |
data.content.transportation_fee | 字符串 | 运费 |
data.content.insurance_fee | 字符串 | 保费 |
data.content.other_fee | 字符串 | 杂费 |
data.content.documents_number | 字符串 | 随附单证及编号 |
msg | 字符串 | 提示信息,失败时的错误提示 |
在线测试
客户端请求示例
# 暂无示例,可添加示例文件:./src/view/docs/demos/App.CustomsDeclaration.Customsdeclaration.json
错误列表
错误状态码 | 错误描述信息 |
---|---|
400 | ret=400,客户端参数错误或非法请求 | 404 | 表示接口服务不存在 | 406 | ret=406,access_token令牌校验不通过 | 407 | ret=407,app_key权限不足,或未知应用 | 408 | ret=408,当前用户禁止使用,或用户未登录 | 500 | 表示服务端内部错误 |