{
"body": {
"purchaseCode": "string",
"orderStatus": "BEFORE_COMMIT",
"supplierCode": "string",
"deliveryDateType": "{value: 1, desc: 统一交期}",
"deliveryDate": 0,
"isContainTax": true,
"itemDetails": [
{
"purchaseRequisitionOrder": "string",
"num": 0,
"itemCode": "string",
"newReceiveStatus": "NOT_RECEIVE",
"handleStatus": "NOT_STARTED",
"quantity": 0,
"taxRate": 0,
"deliveryDate": 0,
"containTaxPrice": 0,
"warehouseCode": "string",
"warehouseBinCode": "string",
"comments": "string",
"isRaw": 0,
"supplyType": 0,
"outSourceItems": [
{
"itemCode": "string",
"quantity": 0
}
],
"extendedFields": {
"key": {}
},
"customizeFields": {
"key": {}
}
}
],
"extraCharge": [
{
"name": "string",
"price": 0
}
],
"currency": "CNY",
"comments": "string",
"addressLabel": "string",
"procurementOrderType": "COMMON_PROCUREMENT_ORDER",
"useNum": 0,
"realDirectorCode": "string",
"ignoreDefaultWarehouse": "ON",
"extendedFields": {
"key": {}
},
"customizeFields": {
"key": {}
},
"code": "string"
}
}curl --location 'https://c2.xinheyun.com/api/open/v2/purchase/order/outsource/update' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data '{
"body": {
"purchaseCode": "string",
"orderStatus": "BEFORE_COMMIT",
"supplierCode": "string",
"deliveryDateType": "{value: 1, desc: 统一交期}",
"deliveryDate": 0,
"isContainTax": true,
"itemDetails": [
{
"purchaseRequisitionOrder": "string",
"num": 0,
"itemCode": "string",
"newReceiveStatus": "NOT_RECEIVE",
"handleStatus": "NOT_STARTED",
"quantity": 0,
"taxRate": 0,
"deliveryDate": 0,
"containTaxPrice": 0,
"warehouseCode": "string",
"warehouseBinCode": "string",
"comments": "string",
"isRaw": 0,
"supplyType": 0,
"outSourceItems": [
{
"itemCode": "string",
"quantity": 0
}
],
"extendedFields": {
"key": {}
},
"customizeFields": {
"key": {}
}
}
],
"extraCharge": [
{
"name": "string",
"price": 0
}
],
"currency": "CNY",
"comments": "string",
"addressLabel": "string",
"procurementOrderType": "COMMON_PROCUREMENT_ORDER",
"useNum": 0,
"realDirectorCode": "string",
"ignoreDefaultWarehouse": "ON",
"extendedFields": {
"key": {}
},
"customizeFields": {
"key": {}
},
"code": "string"
}
}'{
"code": 0,
"message": "string"
}