/erp/sc/routing/purchase/purchase/cancel{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/purchase/purchase/cancel"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"order_sn": "PO211112002",
"reason": "不需要采购了",
"is_cancel_relation": 1
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "8DFEE1CA-EC9B-F401-5D41-9F95251D5D50",
"response_time": "2023-06-25 12:41:04",
"data": [],
"total": 0
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | order_sn | 采购单系统单号 | string | — | Required | 采购单系统单号 |
| 2 | reason | 作废原因 | string | — | Required | 作废原因,长度不超过80 |
| 3 | is_cancel_relation | 是否取消关联采购计划 | integer | — | Required | 是否取消关联采购计划:0 否【默认】,1 是 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0 成功 |
| 2 | message | 提示消息 | string | success | Required | 提示消息 |
| 3 | error_details | 错误信息 | array<any> | — | Required | 错误信息 |
| 4 | request_id | 请求链路id | string | 81CA6A9A-A5C4-8B5E-5FED-E1C2EC04753C | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-12-01 12:11:12 | Required | 响应时间 |
| 6 | data | 响应数据 | array<any> | — | Required | 响应数据 |
| 7 | total | 总数 | integer | 0 | Required | 总数 |
The 作废采购单 API (/erp/sc/routing/purchase/purchase/cancel) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.