查询快递公司编码是否已存在

接口描述:

  • 查询快递公司编码是否已存在。在填写或修改后对其进行检测,避免在提交全部数据后才错误提示。

请求 URL:

  • http|https://host/api/v1/delivery_item/method/unique.delivery.company.code/

请求方式:

  • GET
  • POST

是否授权:

  • 需要授权

业务参数:

参数名 类型 是否必须 范围值 默认值 示例值 描述
code string max:30 sfsy 快递公司编码
type integer between:0,3 1 快递公司类型 0=热门 1=国内 2=国外 3=转运
exclude_id integer gt:0 快递公司排除Id

响应参数:

参数名 类型 是否返回 示例值 描述
status integer 200 状态码
message string success 消息信息
data boolean true 返回 true 表示可用编码

响应示例:

  1. {
  2. "status": 200,
  3. "message": "success",
  4. "data": true
  5. }

备注: