{
"reason": "客户需求变更",
"notes": "客户决定重新设计电路板,暂时取消此订单"
}curl --location '/api/orders/7/cancel' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiZW1haWwiOiJ0ZXN0dXNlckBleGFtcGxlLmNvbSIsInJvbGUiOiJjbGllbnQiLCJpYXQiOjE3NTMzNDE2OTgsImV4cCI6MTc1Mzk0NjQ5OH0.0XgISp8a84bvsVjbeKnA3F3rxAGhAk7ererbwAAgqbk' \
--header 'Content-Type: application/json' \
--data '{
"reason": "客户需求变更",
"notes": "客户决定重新设计电路板,暂时取消此订单"
}'{
"code": 0,
"message": "string",
"data": {
"statusHistory": {
"id": 0,
"orderId": 0,
"status": "string",
"changeReason": "string",
"notes": "string",
"createdAt": "string"
},
"data": {
"id": 0,
"orderNumber": "string",
"status": "string",
"cancelledAt": "string",
"cancelReason": "string",
"updatedAt": "string"
},
"message": "string"
}
}