Lingxing

批量标记/取消发货计划加急

POST/erp-openapi/shipmentPlan/batchUpdateIsUrgent

接口信息

API Path请求协议请求方式
/erp-openapi/shipmentPlan/batchUpdateIsUrgentHTTPSPOST

请求参数

isp_idsarray<any>必填
发货计划ID列表,不能为空;元素须为正整数,不得超过64位有符号整数上限。
is_urgentinteger必填
加急状态:
1 标记加急
0 取消加急

请求示例

{
  "isp_ids": [
    956,
    957
  ],
  "is_urgent": 1
}

请求cURL示例

curl --location --request POST 'https://openapi.lingxing.com/erp-openapi/shipmentPlan/batchUpdateIsUrgent?app_key=value&timestamp=value&sign=value' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "isp_ids": [
    956,
    957
  ],
  "is_urgent": 1
}'

返回结果

Json Object

codeinteger必填
状态码,0成功
示例 0
messagestring必填
消息提示
示例 success
error_detailsarray<string>必填
错误详情
示例 []
request_idstring必填
请求链路ID
示例 52688b81-2398-4e60-9617-619fc2cf5b1e
response_timestring必填
响应时间
示例 2026-12-02 10:00:00
totalinteger必填
统一响应记录数字段
示例 0
dataobject必填
处理结果
隐藏子属性显示子属性2 个子字段
succ_numinteger必填
成功数量
示例 2
errorarray<object>必填
失败明细列表
隐藏子属性显示子属性2 个子字段
order_snstring必填
发货计划单号
示例 R230703002
messagestring必填
错误信息
示例 状态已经为未加急

批量处理结果请查看data.succ_num和data.error。

返回成功示例

{
  "code": 0,
  "message": "success",
  "error_details": [],
  "request_id": "52688b81-2398-4e60-9617-619fc2cf5b1e",
  "response_time": "2026-12-02 10:00:00",
  "data": {
    "succ_num": 2,
    "error": []
  },
  "total": 0
}

取消加急(is_urgent=0)部分失败示例

{
  "code": 0,
  "message": "success",
  "error_details": [],
  "request_id": "52688b81-2398-4e60-9617-619fc2cf5b1e",
  "response_time": "2026-12-02 10:00:00",
  "data": {
    "succ_num": 1,
    "error": [
      {
        "order_sn": "R230703002",
        "message": "状态已经为未加急"
      }
    ]
  },
  "total": 0
}