以下需要登录的信息
- entcode = 3305002323 企业号DECL_REG_NO
- pwd = 123456
注意
*所有接口entcode必须填写,否则无法取到相关信息和通过校验
*闸口放行单打印列表 REMARK字段为当前数据是否通过校验字段,如未通过不能打印
重箱直通放行
type: [HTTPGET]
url: http://10.38.0.180/logctn/rest/directpass/fctndirectpass?declno={declno}&billno={billno}&ctnno={ctnno}&entcode={entcode}
request: declno 报检号/billno 提单号/ctnno 集装箱号/entcode 企业注册号
response: string "OK@" + decl_no; "FAIL@" + ex.Message;
test:
重箱直通放行列表
- type: [HTTPGET]
- url: http://10.38.0.180/logctn/rest/directpass/directpasslist?declno={declno}&billno={billno}&entcode={entcode}
- request: declno 报检号/billno 提单号/entcode 企业注册号
- response: List<DECL_MAIN>
public partial class DECL_MAIN
{
/// <summary>
/// 报检号
/// </summary>
public string DECL_NO { get; set; }
/// <summary>
/// 提单号
/// </summary>
public string BILL_NO { get; set; }
/// <summary>
/// 报检时间
/// </summary>
public Nullable<System.DateTime> DECL_DATE { get; set; }
/// <summary>
/// 船舶UN
/// </summary>
public string VESSEL_CODE_UN { get; set; }
/// <summary>
/// 航次
/// </summary>
public string VOYAGE { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL_NAME_EN { get; set; }
/// <summary>
/// 码头代码
/// </summary>
public string SENDER_CODE { get; set; }
/// <summary>
/// 码头名称
/// </summary>
public string SENDER_NAME { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public Nullable<System.DateTime> CREATE_TIME { get; set; }
}
- test: declno=117000008555941 billno=KKLUGOA142574 entcode=ENT3300910164
放行单打印列表
- type: [HTTPGET]
- url: http://10.38.0.180/logctn/rest/directpass/gatepasslist?declno={declno}&billno={billno}&entcode={entcode}
- request: declno 报检号/billno 提单号/entcode 企业注册号
- response: List<DECL_MAIN>
public partial class DECL_MAIN
{
/// <summary>
/// 报检号
/// </summary>
public string DECL_NO { get; set; }
/// <summary>
/// 提单号
/// </summary>
public string BILL_NO { get; set; }
/// <summary>
/// 报检时间
/// </summary>
public Nullable<System.DateTime> DECL_DATE { get; set; }
/// <summary>
/// 船舶UN
/// </summary>
public string VESSEL_CODE_UN { get; set; }
/// <summary>
/// 航次
/// </summary>
public string VOYAGE { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL_NAME_EN { get; set; }
/// <summary>
/// 码头代码
/// </summary>
public string SENDER_CODE { get; set; }
/// <summary>
/// 码头名称
/// </summary>
public string SENDER_NAME { get; set; }
/// <summary>
/// 是否允许打印校验信息
/// </summary>
public string REMARK { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public Nullable<System.DateTime> CREATE_TIME { get; set; }
}
- test: declno=117000008555941 billno=KKLUGOA142574 entcode=ENT3300910164
放行单打印详情
- type: [HTTPGET]
- url: http://10.38.0.180/logctn/rest/directpass/gatepassview?declno={declno}
- request: declno 报检号
- response: DECL_ALL_VIEW
public class DECL_ALL_VIEW
{
public ITF_DCL_IO_DECL Decl { set; get; }
public List<ITF_DCL_IO_DECL_GOODS> Goods { set; get; }
public DECL_MAIN Main { set; get; }
public List<DECL_CTN> Ctns { set; get; }
public DECL_ALL_VIEW()
{
Decl = new ITF_DCL_IO_DECL();
Goods = new List<ITF_DCL_IO_DECL_GOODS>();
Ctns = new List<DECL_CTN>();
Main = new DECL_MAIN();
}
}
public partial class ITF_DCL_IO_DECL
{
/// <summary>
/// 报检号
/// </summary>
public string DECL_NO { get; set; }
/// <summary>
/// 报检单位
/// </summary>
public string DECL_REG_NAME { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string CONTACTPERSON { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string CONT_TEL { get; set; }
}
public partial class DECL_MAIN
{
/// <summary>
/// 报检号
/// </summary>
public string DECL_NO { get; set; }
/// <summary>
/// 提单号
/// </summary>
public string BILL_NO { get; set; }
/// <summary>
/// 报检时间
/// </summary>
public Nullable<System.DateTime> DECL_DATE { get; set; }
/// <summary>
/// 船舶UN
/// </summary>
public string VESSEL_CODE_UN { get; set; }
/// <summary>
/// 航次
/// </summary>
public string VOYAGE { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL_NAME_EN { get; set; }
/// <summary>
/// 码头代码
/// </summary>
public string SENDER_CODE { get; set; }
/// <summary>
/// 码头名称
/// </summary>
public string SENDER_NAME { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public Nullable<System.DateTime> CREATE_TIME { get; set; }
}
public partial class DECL_CTN
{
/// <summary>
/// 报检号
/// </summary>
public string DECL_NO { get; set; }
/// <summary>
/// 箱号
/// </summary>
public string CTN_NO { get; set; }
/// <summary>
/// 箱型
/// </summary>
public string CTN_TYPE { get; set; }
/// <summary>
/// 尺寸
/// </summary>
public string CTN_SIZE { get; set; }
}
- test: declno=117000008555941