查询次品入库异常单
方法名称:get_defect_list
请求地址:https://open.patpat.com/api/get_defect_list
支持请求方式: GET
系统级输入参数:
| 名称 | 类型 | 是否必须 | 描述 |
| _timestamp | string | 否 | 请求时间戳 |
| _signature | String | 是 | 请求签名 |
| access_token | String | 是 | 用户授权令牌 |
应用级输入参数:
| 名称 | 类型 | 是否必须 | 描述 | 示例值 |
| exception_code | string | 否 | 入库异常单编号 | US2022011957003 |
| registration_date | string | 否 | 次品登记日期 | 2022-01-18~2022-01-19 |
| page | integer | 否 | 分页数,默认为1 | 1 |
接口返回结果:
| 字段 | 参考值 | 类型 | 描述 |
| status | 200 | Integer | 返回状态码 |
| msg | success | String | 接口返回信息 |
| content | 接口返回内容 |
数据返回示例:
{
"status": 200,
"msg": "success",
"content": {
"total": 5,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 5,
"data": [
{
"id": 98747,
"code": "US2022011936007",
"ship_order_id": 2822222,
"ship_express_no": "ASD021000123",
"deduction_id": 0,
"sku_id": 20237932,
"new_sku_code": 1738408001,
"sku_code": "U-504095-20237932",
"wms_inferior_supply_id": 0,
"type": "wrong_sku",
"wrong_type": "37",
"images_url": "",
"create_user_name": "江志文",
"handle_user_name": "",
"received_place_id": 4,
"sku_number_reg": 2,
"status": "register",
"result": "",
"remark": "",
"express_no": "",
"return_logistics": "",
"return_express_fee": "0.00",
"supplier_return_type": "",
"return_user": "",
"return_at": "0000-00-00 00:00:00",
"created_at": "2022-01-19 03:11:47",
"updated_at": "2022-01-19 03:11:47",
"handled_at": "0000-00-00 00:00:00",
"synced_at": "2022-01-19 07:07:26",
"express_company": "顺丰",
"wrong_type_name": "来货多数",
"wrong_reason": "本SKU需求已满,多数。"
},
{
"id": 98746,
"code": "US2022011970006",
"ship_order_id": 2822222,
"ship_express_no": "ASD021000123",
"deduction_id": 0,
"sku_id": 20237932,
"new_sku_code": 1738408001,
"sku_code": "U-504095-20237932",
"wms_inferior_supply_id": 0,
"type": "wrong_sku",
"wrong_type": "3",
"images_url": "",
"create_user_name": "江志文",
"handle_user_name": "",
"received_place_id": 4,
"sku_number_reg": 1,
"status": "register",
"result": "",
"remark": "",
"express_no": "",
"return_logistics": "",
"return_express_fee": "0.00",
"supplier_return_type": "",
"return_user": "",
"return_at": "0000-00-00 00:00:00",
"created_at": "2022-01-19 03:11:39",
"updated_at": "2022-01-19 03:11:39",
"handled_at": "0000-00-00 00:00:00",
"synced_at": "2022-01-19 07:07:26",
"express_company": "顺丰",
"wrong_type_name": "跳线/断线/线路松散/车线歪扭",
"wrong_reason": "下脚断线或者任何部位跳线/车线松散/车线歪扭"
},
{
"id": 98745,
"code": "US2022011994005",
"ship_order_id": 2822222,
"ship_express_no": "ASD021000123",
"deduction_id": 0,
"sku_id": 20237932,
"new_sku_code": 1738408001,
"sku_code": "U-504095-20237932",
"wms_inferior_supply_id": 0,
"type": "wrong_sku",
"wrong_type": "2",
"images_url": "",
"create_user_name": "江志文",
"handle_user_name": "",
"received_place_id": 4,
"sku_number_reg": 1,
"status": "register",
"result": "",
"remark": "",
"express_no": "",
"return_logistics": "",
"return_express_fee": "0.00",
"supplier_return_type": "",
"return_user": "",
"return_at": "0000-00-00 00:00:00",
"created_at": "2022-01-19 03:11:32",
"updated_at": "2022-01-19 03:11:32",
"handled_at": "0000-00-00 00:00:00",
"synced_at": "2022-01-19 07:07:26",
"express_company": "顺丰",
"wrong_type_name": "污渍",
"wrong_reason": "视觉敏感区的脏污以及敏感区的直径超过0.3cm的污渍/污渍颜色明显"
},
{
"id": 98744,
"code": "US2022011969004",
"ship_order_id": 2822222,
"ship_express_no": "ASD021000123",
"deduction_id": 0,
"sku_id": 20237932,
"new_sku_code": 1738408001,
"sku_code": "U-504095-20237932",
"wms_inferior_supply_id": 965,
"type": "wrong_sku",
"wrong_type": "2",
"images_url": "",
"create_user_name": "江志文",
"handle_user_name": "江志文",
"received_place_id": 4,
"sku_number_reg": 1,
"status": "returned",
"result": "returned",
"remark": "22;退货来源发货单:2822222",
"express_no": "",
"return_logistics": "",
"return_express_fee": "0.00",
"supplier_return_type": "",
"return_user": "",
"return_at": null,
"created_at": "2022-01-19 03:03:15",
"updated_at": "2022-01-19 08:45:16",
"handled_at": "2022-01-19 03:04:11",
"synced_at": "2022-01-19 12:14:34",
"express_company": "顺丰",
"wrong_type_name": "污渍",
"wrong_reason": "视觉敏感区的脏污以及敏感区的直径超过0.3cm的污渍/污渍颜色明显"
},
{
"id": 98743,
"code": "US2022011957003",
"ship_order_id": 2822222,
"ship_express_no": "ASD021000123",
"deduction_id": 0,
"sku_id": 20237932,
"new_sku_code": 1738408001,
"sku_code": "U-504095-20237932",
"wms_inferior_supply_id": 964,
"type": "wrong_sku",
"wrong_type": "1",
"images_url": "",
"create_user_name": "江志文",
"handle_user_name": "江志文",
"received_place_id": 4,
"sku_number_reg": 1,
"status": "resigned",
"result": "resigned",
"remark": "44",
"express_no": "1111111144",
"return_logistics": "",
"return_express_fee": "0.00",
"supplier_return_type": "",
"return_user": "",
"return_at": "0000-00-00 00:00:00",
"created_at": "2022-01-19 03:03:06",
"updated_at": "2022-01-19 03:03:47",
"handled_at": "2022-01-19 03:03:47",
"synced_at": "2022-01-19 07:07:26",
"express_company": "顺丰",
"wrong_type_name": "布疵/抽纱",
"wrong_reason": "视觉敏感区的面料瑕疵"
}
]
}
}