Order Sequence To ODM
This interface is applicable for data integration API, read Api Access Process first
Description:Publish CPSP order priority, partial information, complete information, and whether it is CQ to ODM. The following are all fields of the table, but not all are passed to ODM.
Method:POST
ContentType:application/json
Path:ODM provided bash path/{data_category}/{biz_key}
data_category | biz_key |
---|---|
cpsp | order_seq |
Request data description
Param | Required | Type | Length | Format | Descrition |
---|---|---|---|---|---|
version_no | Y | string | 40 | --- | version |
bu | Y | string | 20 | --- | |
po_id | Y | string | 20 | TDN number | |
po_line | Y | string | 20 | --- | TDN Line |
plant | Y | string | 20 | 工厂 | |
total_qty | Y | number | - | ||
partial_flag | Y | string | 20 | ||
segment | Y | string | 40 | SMB,Consumer | |
planned_qty | Y | number | - | ||
lrsd | Y | date | - | 2022-11-24 19:28:09 | |
epsd | Y | date | - | 2022-11-24 19:28:09 | |
remark | Y | string | 40 | ||
sequence | Y | string | 40 | order in priority | |
new_po | Y | string | 20 | ||
new_po_line | Y | string | 20 | ||
created_time | Y | date | - | 2022-11-24 19:28:09 | |
gating_parts | Y | string | 1000 | ||
matched_flag | Y | string | 20 | ||
mtmpr | N | string | 2000 | order mapping的MTM PR | |
alloc_hold | Y | string | 20 |
Request sample
JSON
{
"batch_id": "11297",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"version_no": "",
"bu": "IdeaNB",
"po_id": "",
"po_line": "",
"plant": "",
"total_qty": 0,
"partial_flag": "",
"planned_qty": 0,
"lrsd": "2022-11-24 19:28:09",
"epsd": "2022-11-24 19:28:09",
"remark": "",
"sequence": "",
"new_po": "",
"new_po_line": "",
"created_time": "2022-11-24 19:28:09",
"gating_parts": "",
"matched_flag": "",
"mtmpr": "",
"alloc_hold": ""
},
{
"version_no": "",
"bu": "IdeaNB",
"po_id": "",
"po_line": "",
"plant": "",
"total_qty": 0,
"partial_flag": "",
"planned_qty": 0,
"lrsd": "2022-11-24 19:28:09",
"epsd": "2022-11-24 19:28:09",
"remark": "",
"sequence": "",
"new_po": "",
"new_po_line": "",
"created_time": "2022-11-24 19:28:09",
"gating_parts": "",
"matched_flag": "",
"mtmpr": "",
"alloc_hold": ""
}
]
}
Successful response sample
json
{
"code":"0",
"msg":"request success"
}
Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "LCFC",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}