Prepare a flight change or refund
clevrgo_request_flight_aftersalesPrepare a cancellation, a change / upgrade (改签 / 升舱) or a refund (退票) of one of the buyer's own flight orders, when the buyer asks for it. Use the order's reference from flight_orders (bf1). This opens that order's after-sales panel in ClevrGo, filled in with what the buyer told you; ClevrGo then shows the supplier's quote and the BUYER confirms it there. Nothing is cancelled, changed or refunded by this call: never say it is done. cancel is for an order not yet ticketed; change and refund are for a ticketed one. Pass reason only when the buyer gave one -- never pick it for them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orderRef": "<orderRef>",
"action": "<action>"
},
"name": "clevrgo_request_flight_aftersales"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | cancel an unticketed order; change (also for an upgrade to a higher cabin); refund a ticketed one. | |
| reason | No | For refund, only when the buyer said why: 0 personal reasons, 1 illness, 2 flight changed by the airline, 3 emergency / crisis, 4 visa refused. | |
| orderRef | Yes | The flight order's reference from flight_orders, e.g. 'bf1'. | |
| cabinClass | No | For change: only the cabin the buyer named (商务舱 = BUSINESS, 头等舱 = FIRST). When they just say upgrade / 升舱 without naming one, leave it out or ask -- never pick FIRST for them. One cabin's results say nothing about another's: no First fares does not mean no Business fares. | |
| departDate | No | For change: the new departure date the buyer asked for, YYYY-MM-DD. |