Search and buy products, hotels and flights; payment only with the buyer's own wallet signature.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Bearer <connection token from ClevrGo (Lifestyle, Card & your AI)>. Not needed with OAuth.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Ask ClevrGo to prepare a booking for one one-way flight the user has clearly chosen, by its reference from clevrgo_flight_search (f1, f2). Nothing is booked or paid by this: ClevrGo confirms the fare with the airline and answers with a booking summary and a confirmation id. Show the user that summary, passengers and price exactly as given; call clevrgo_confirm only after they clearly confirm it, or give them the ClevrGo link. The passengers are travellers the user saved in ClevrGo: if ClevrGo lists them for a choice, ask the user which, and call again with their travelerRefs. If the booking says paysOn: clevrgo_link, confirming in the chat books it and creates the payment, and returns a one-time link that only asks for the user's wallet signature -- say so. Never ask for passport, ID, birth date or card numbers, and do not say the flight is booked before ClevrGo says so.
The flight's reference from flight_search, e.g. 'f2'.
Which saved travellers fly, by the references ClevrGo listed when it asked (e.g. 't3fa21c'). Omit on the first request.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http clevrgo https://clevrgo.com/api/mcp
Headers
Authorization (optional, not in the config above): Bearer <connection token from ClevrGo (Lifestyle, Card & your AI)>. Not needed with OAuth.Ask ClevrGo to prepare a booking for one one-way flight the user has clearly chosen, by its reference from clevrgo_flight_search (f1, f2). Nothing is booked or paid by this: ClevrGo confirms the fare with the airline and answers with a booking summary and a confirmation id. Show the user that summary, passengers and price exactly as given; call clevrgo_confirm only after they clearly confirm it, or give them the ClevrGo link. The passengers are travellers the user saved in ClevrGo: if ClevrGo lists them for a choice, ask the user which, and call again with their travelerRefs. If the booking says paysOn: clevrgo_link, confirming in the chat books it and creates the payment, and returns a one-time link that only asks for the user's wallet signature -- say so. Never ask for passport, ID, birth date or card numbers, and do not say the flight is booked before ClevrGo says so.
| Argument | Type | Description |
|---|---|---|
| flightRef* | string | The flight's reference from flight_search, e.g. 'f2'. |
| travelerRefs | array | Which saved travellers fly, by the references ClevrGo listed when it asked (e.g. 't3fa21c'). Omit on the first request. |
{
"type": "object",
"required": [
"flightRef"
],
"properties": {
"flightRef": {
"type": "string",
"description": "The flight's reference from flight_search, e.g. 'f2'."
},
"travelerRefs": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 9,
"description": "Which saved travellers fly, by the references ClevrGo listed when it asked (e.g. 't3fa21c'). Omit on the first request."
}
},
"additionalProperties": false
}Ask ClevrGo to prepare a booking for one room the user has clearly chosen, by the rate's reference from clevrgo_hotel_details (r1, r2). Nothing is booked or paid by this: ClevrGo locks the price and answers with a booking summary and a confirmation id. Show the user that summary and price exactly as given; call clevrgo_confirm only after they clearly confirm it, or give them the ClevrGo link. If the booking says paysOn: clevrgo_link, confirming in the chat books it and creates the payment, and returns a one-time link that only asks for the user's wallet signature -- say so. Never ask for passport, ID or card numbers, and do not say the room is booked before ClevrGo says so.
| Argument | Type | Description |
|---|---|---|
| rateRef* | string | The rate's reference from hotel_details, e.g. 'r2'. |
{
"type": "object",
"required": [
"rateRef"
],
"properties": {
"rateRef": {
"type": "string",
"description": "The rate's reference from hotel_details, e.g. 'r2'."
}
},
"additionalProperties": false
}Ask ClevrGo to prepare an order for one product the user has clearly chosen, by its reference from clevrgo_catalog_search (p1, p2). Nothing is ordered or paid by this: ClevrGo prices the product, the option, the quantity and shipping to an address the user saved in ClevrGo, says where the money goes (settlement: class A the merchant's wallet, class B the escrow contract and its hold), and answers with a summary and a confirmation id. Preparing is how you get the full total for the ONE question you ask before buying a product that is not negotiable (item, option, quantity, ship-to, total, where the money goes); a negotiable product is prepared after the user accepted the negotiated price, and needs no second question when the item, option and quantity are the same and the goods price is not higher. clevrgo_confirm then places the order and creates the payment, and gives a one-time link that only asks for the user's wallet signature. If ClevrGo lists options or addresses, ask the user which and call again. Never ask for or pass an address, phone number or card number, and do not say the product is ordered.
| Argument | Type | Description |
|---|---|---|
| option | array | Which option (size, colour ...), by the option values the search showed for it, e.g. ['Black', 'L']. Omit for a product with one option. |
| couponId | string | A coupon from clevrgo_my_coupons, only when the user picks a particular one. Omit and ClevrGo applies the user's best coupon for this shop by itself. |
| noCoupon | boolean | true when the user does not want to use a coupon on this order. |
| quantity | integer | How many. Default 1. |
| addressRef | string |
Search products that ClevrGo merchants have published. Describe what the buyer wants in plain words; search again with other words to compare across merchants. Products come back in the buyer's language where the listing has it (originalTitle is the merchant's own name for it); give `locale` only if you are told which language the buyer writes in.
| Argument | Type | Description |
|---|---|---|
| locale | string | |
| message* | string |
{
"type": "object",
"required": [
"message"
],
"properties": {
"locale": {
"enum": [
"zh",
"en",
"ko",
"ja",
"es",
"fr",
"de",
"pt",
"it",
"nl",
"ru",
"uk",
"ar",
"he",
"th",
"vi",
"id",
"tr",
"pl",
"hi",
"el"
],
"type": "string"
},
"message": {
"type": "string",
"maxLength": 2000
}
},
"additionalProperties": false
}Works before the user connects ClevrGo. What paying through ClevrGo involves for a product, hotel or flight: how the user pays, where the money goes, what protects them, and what the user needs first. Pass productRef (from clevrgo_catalog_search) for that product's own delivery, return and settlement facts. It does not quote fees or totals: the order or booking summary states the total before the user confirms.
| Argument | Type | Description |
|---|---|---|
| kind | string | What the user wants to pay for. |
| productRef | string | A product's reference from clevrgo_catalog_search, e.g. 'p2'. |
{
"type": "object",
"properties": {
"kind": {
"enum": [
"product",
"hotel",
"flight"
],
"type": "string",
"description": "What the user wants to pay for."
},
"productRef": {
"type": "string",
"description": "A product's reference from clevrgo_catalog_search, e.g. 'p2'."
}
},
"additionalProperties": false
}Claim a merchant coupon with the code the user gives you. It is kept on their ClevrGo account and works wherever they shop with ClevrGo. Never invent a code.
| Argument | Type | Description |
|---|---|---|
| code* | string | The coupon code exactly as the user gave it. |
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 40,
"description": "The coupon code exactly as the user gave it."
}
},
"additionalProperties": false
}Confirm a booking or order ClevrGo prepared (the confirmation id from clevrgo_book_room, clevrgo_book_flight or clevrgo_buy_product). Call it ONLY when the user said yes to this purchase themselves: to this summary, or -- for a negotiated product -- to the negotiated price, for the same item, option and quantity, with the goods price not higher (shipping comes on top). Never on your own, never for anything else, and never when the price went up. For a room or flight, ClevrGo then books and creates the payment, within the limits the user allowed for this assistant -- and, if the user turned on wallet payment in ClevrGo, pays it from their wallet; otherwise the result carries a ClevrGo link to pay. For a room or flight prepared to pay on a link (a cgl_ id) and for a product (cgp_), ClevrGo books it or places the order and creates the payment, and the result carries a one-time ClevrGo link that opens straight on the user's wallet signature -- no money moves until they sign; the result's settlement says where it pays.
| Argument | Type | Description |
|---|---|---|
| confirmation_id* | string | The confirmation id, starting with cgc_ (a room), cgf_ (a flight), cgl_ (a room or flight paid on a ClevrGo link) or cgp_ (a product). |
{
"type": "object",
"required": [
"confirmation_id"
],
"properties": {
"confirmation_id": {
"type": "string",
"description": "The confirmation id, starting with cgc_ (a room), cgf_ (a flight), cgl_ (a room or flight paid on a ClevrGo link) or cgp_ (a product)."
}
},
"additionalProperties": false
}Works before the user connects ClevrGo. When the user wants to book, buy or pay and is not connected: a link (valid 72 hours) that takes them through signing in or opening a ClevrGo account, getting a Card and connecting you, and keeps what you found here. Give it to the user. Once connected, call clevrgo_resume_intent with the intent it returns: ClevrGo searches again and checks price and availability -- prices found now are not kept for payment.
| Argument | Type | Description |
|---|---|---|
| summary* | string | One or two sentences on what the user wants, shown to them on the page. |
| focusRef | string | The option the user chose, by its reference from a search here (p2, h1, f3). Omit if they have not chosen. |
{
"type": "object",
"required": [
"summary"
],
"properties": {
"summary": {
"type": "string",
"maxLength": 600,
"description": "One or two sentences on what the user wants, shown to them on the page."
},
"focusRef": {
"type": "string",
"description": "The option the user chose, by its reference from a search here (p2, h1, f3). Omit if they have not chosen."
}
},
"additionalProperties": false
}The buyer's own flight bookings: status, and when each was made or lapses. Use when they ask about a flight they already booked.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Resolve a city or airport name to the codes flight_search needs.
| Argument | Type | Description |
|---|---|---|
| query* | string | City or airport name, e.g. 'Bangkok'. |
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "City or airport name, e.g. 'Bangkok'."
}
},
"additionalProperties": false
}Search one-way or round-trip flights. Resolve both ends with flight_regions first and copy its fields as returned -- code, is_city, city_code and country_code -- never guess them. Prices come back in US dollars.
| Argument | Type | Description |
|---|---|---|
| adults* | integer | |
| toCode* | string | |
| infants | integer | |
| nonstop | boolean | |
| children | integer | |
| fromCode* | string | |
| toIsCity | boolean | |
| cabinClass | string | economy, premium_economy, business or first. |
| departDate* | string | Date as YYYY-MM-DD. |
| fromIsCity |
Works before the user connects ClevrGo. What the user needs (a ClevrGo account and an active Clevr Card) and the two ways to connect this AI: OAuth sign-in, or a connection token the user creates in ClevrGo.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Rooms, rate plans, policies and amenities for one hotel from a hotel_search result.
| Argument | Type | Description |
|---|---|---|
| hotelRef* | string | The hotel's reference from hotel_search, e.g. 'h2'. |
| checkInDate* | string | Date as YYYY-MM-DD. |
| checkOutDate* | string | Date as YYYY-MM-DD. |
{
"type": "object",
"required": [
"hotelRef",
"checkInDate",
"checkOutDate"
],
"properties": {
"hotelRef": {
"type": "string",
"description": "The hotel's reference from hotel_search, e.g. 'h2'."
},
"checkInDate": {
"type": "string",
"description": "Date as YYYY-MM-DD."
},
"checkOutDate": {
"type": "string",
"description": "Date as YYYY-MM-DD."
}
},
"additionalProperties": false
}The buyer's own hotel bookings, newest first: status, hotel, dates and price. Use when they ask about a booking they already made.
| Argument | Type | Description |
|---|---|---|
| filter | string | all, paying (awaiting payment), upcoming or completed. Default all. |
{
"type": "object",
"properties": {
"filter": {
"type": "string",
"description": "all, paying (awaiting payment), upcoming or completed. Default all."
}
},
"additionalProperties": false
}Search hotels for a destination and stay dates. Run several searches (other dates, areas or budgets) when it helps the buyer compare.
| Argument | Type | Description |
|---|---|---|
| query | string | Free-text preference, e.g. 'near MRT', 'pool'. |
| budget | string | Nightly budget range as the buyer said it, e.g. '100-200'. |
| roomCount | integer | |
| adultCount | integer | |
| starRating | string | Minimum star rating, e.g. '4'. |
| checkInDate* | string | Date as YYYY-MM-DD. |
| destination* | string | City or area IN ENGLISH, even when the buyer writes another language, e.g. 'Singapore', 'Tokyo Shinjuku', 'Sanya'. A Chinese city plus area (东京新宿) is not recognised. |
| checkOutDate* | string | Date as YYYY-MM-DD. |
Search ClevrGo's own help knowledge: the ClevrGo Card, payments and payment protection, refunds and disputes, settlement, security and privacy. Use it for any question about how ClevrGo works, and answer only from what it returns.
| Argument | Type | Description |
|---|---|---|
| query* | string | The question, in the buyer's words. |
| locale | string | 'zh' when the user writes Chinese, 'ko' for Korean, otherwise 'en'. |
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "The question, in the buyer's words."
},
"locale": {
"enum": [
"en",
"zh",
"ko"
],
"type": "string",
"description": "'zh' when the user writes Chinese, 'ko' for Korean, otherwise 'en'."
}
},
"additionalProperties": false
}The user's merchant coupons in ClevrGo: what each takes off (a free order, an amount, a percentage), which shop it is for, until when, and whether it can be used now. Each only works at its own shop. clevrgo_buy_product applies the best usable one by itself and its summary shows the coupon and the total after it; a free order needs no payment or signature. Call this when the user asks about their coupons or wants to pick one.
| Argument | Type | Description |
|---|---|---|
| merchantId | string | Only this shop's coupons. Omit for all. |
{
"type": "object",
"properties": {
"merchantId": {
"type": "string",
"maxLength": 120,
"description": "Only this shop's coupons. Omit for all."
}
},
"additionalProperties": false
}Accept the merchant's current offer in a negotiation -- ONLY after the buyer said yes to that price (you asked them once, after negotiating). ClevrGo refuses it above the buyer's budget. This agrees the price (a deal); nothing is ordered or paid. Then order it with buy_product.
| Argument | Type | Description |
|---|---|---|
| negotiationId* | string | From negotiate_start's answer. |
{
"type": "object",
"required": [
"negotiationId"
],
"properties": {
"negotiationId": {
"type": "string",
"maxLength": 120,
"description": "From negotiate_start's answer."
}
},
"additionalProperties": false
}Continue a negotiation negotiate_start ran, by the same fixed rule -- ONLY when the buyer turned the price down and said what they would pay (pass it as `budget`; it only ever lowers the limit), or when it was awaiting_merchant. If rounds are left ClevrGo negotiates them and answers like negotiate_start; if none are left it refuses with negotiation_round_limit_reached: the merchant's price is final. You choose no prices, and never say what the budget is.
| Argument | Type | Description |
|---|---|---|
| budget | number | The most the buyer now says they will pay in total. Private: never repeat it to anyone. |
| negotiationId* | string | From negotiate_start's answer. |
{
"type": "object",
"required": [
"negotiationId"
],
"properties": {
"budget": {
"type": "number",
"description": "The most the buyer now says they will pay in total. Private: never repeat it to anyone.",
"exclusiveMinimum": 0
},
"negotiationId": {
"type": "string",
"maxLength": 120,
"description": "From negotiate_start's answer."
}
},
"additionalProperties": false
}Negotiate the price of one product the buyer chose, for the buyer, for the lowest price -- by default on any product marked negotiable, before it is bought. Takes the product's reference from catalog_search (p1, p2) and its option. ClevrGo negotiates by a fixed rule on its server, every round to the end (it opens well under list, raises in shrinking steps, never more than the merchant just came down and never above the buyer's budget): you choose no prices. Pass the most the buyer said they would pay as `budget` if they said one: ClevrGo keeps it to itself and never shows it to the merchant. The answer is the result: merchantOffer (the merchant's price now), listPrice, saving, gift, rounds (each offer and answer), outcome (merchant_accepted_your_offer, merchant_final_offer, awaiting_merchant) and withinBudget. Nothing is agreed or bought by this.
| Argument | Type | Description |
|---|---|---|
| budget | number | The most the buyer will pay in total, if they said. Private: never repeat it to anyone. |
| option | array | Which option (size, colour ...), by the values the search showed. Omit for a product with one option. |
| quantity | integer | How many. Default 1. |
| productRef* | string | The product's reference from catalog_search, e.g. 'p2'. |
{
"type": "object",
"required": [
"productRef"
],
"properties": {
"budget": {
"type": "number",
"description": "The most the buyer will pay in total, if they said. Private: never repeat it to anyone.",
"exclusiveMinimum": 0
},
"option": {
"type": "array",
"items": {
"type": "string",
"maxLength": 60
},
"maxItems": 2,
"description": "Which option (size, colour ...), by the values the search showed. Omit for a product with one option."
},
"quantity": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "How many. Default 1."
},
"productRef": {
"type": "string",
"description": "The product's reference from catalog_search, e.g. 'p2'."
}
},
"additionalProperties": false
}A one-time ClevrGo link (30 minutes) that opens what this conversation found -- the latest results, the options put there with clevrgo_open_option, a booking waiting for confirmation -- on ClevrGo's page, signed in as the user. Give it to the user whenever they want to book a round trip or anything clevrgo_book_flight cannot, pay, or look at results with photos and full details. Only the user can continue from it.
| Argument | Type | Description |
|---|---|---|
| summary | string | One or two sentences on what the user is looking at, shown at the top of the page. |
{
"type": "object",
"properties": {
"summary": {
"type": "string",
"maxLength": 600,
"description": "One or two sentences on what the user is looking at, shown at the top of the page."
}
},
"additionalProperties": false
}Put one option the user wants to look at closely on the ClevrGo page that clevrgo_open_in_clevrgo opens (a reference from a search: h1, f2, p3). Nothing is booked or bought by this.
| Argument | Type | Description |
|---|---|---|
| ref* | string | The option's reference, e.g. 'h2' or 'p1'. |
{
"type": "object",
"required": [
"ref"
],
"properties": {
"ref": {
"type": "string",
"description": "The option's reference, e.g. 'h2' or 'p1'."
}
},
"additionalProperties": false
}One of the buyer's bookings in detail (for a flight: whether it is ticketed). Takes a reference from hotel_orders or flight_orders, such as bh1 or bf2.
| Argument | Type | Description |
|---|---|---|
| orderRef* | string | The booking's reference, e.g. 'bh1'. |
{
"type": "object",
"required": [
"orderRef"
],
"properties": {
"orderRef": {
"type": "string",
"description": "The booking's reference, e.g. 'bh1'."
}
},
"additionalProperties": false
}The buyer's own orders from ClevrGo merchants (products, not hotels or flights): what was bought, the amount, payment and delivery status, and how many await payment.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Prepare 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.
| Argument | Type | Description |
|---|---|---|
| action* | string | cancel an unticketed order; change (also for an upgrade to a higher cabin); refund a ticketed one. |
| reason | integer | 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* | string | The flight order's reference from flight_orders, e.g. 'bf1'. |
| cabinClass | string | 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 | string | For change: the new departure date the buyer asked for, YYYY-MM-DD. |
Needs the user's ClevrGo connection. Continue the task kept by clevrgo_create_connection_link: ClevrGo runs its searches again under the user's own connection and returns fresh results with new references, the option the user chose with its price then and now (or that it is no longer available), and whether a Card is ready to pay with. Never use an earlier price: book or order with the new references, which confirm the price again, and the user confirms the summary.
| Argument | Type | Description |
|---|---|---|
| intent | string | The intent value clevrgo_create_connection_link returned. Omit to continue the task the user last opened in ClevrGo. |
{
"type": "object",
"properties": {
"intent": {
"type": "string",
"maxLength": 120,
"description": "The intent value clevrgo_create_connection_link returned. Omit to continue the task the user last opened in ClevrGo."
}
},
"additionalProperties": false
}Email the user their on-site pickup code -- only after a free order whose result gave a pickup link, and only when the user gave you an address for it. The address is used for this one email and not kept.
| Argument | Type | Description |
|---|---|---|
| email* | string | The user's email address, as given. |
| language | string | The language of the user's messages. |
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"maxLength": 260,
"description": "The user's email address, as given."
},
"language": {
"enum": [
"zh",
"en"
],
"type": "string",
"description": "The language of the user's messages."
}
},
"additionalProperties": false
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 26, 2026.
| Which saved address, by the reference ClevrGo listed (e.g. 'a3fa21c'). Omit on the first request: ClevrGo uses the address the user last delivered to. |
| productRef* | string | The product's reference from clevrgo_catalog_search, e.g. 'p2'. |
{
"type": "object",
"required": [
"productRef"
],
"properties": {
"option": {
"type": "array",
"items": {
"type": "string",
"maxLength": 60
},
"maxItems": 2,
"description": "Which option (size, colour ...), by the option values the search showed for it, e.g. ['Black', 'L']. Omit for a product with one option."
},
"couponId": {
"type": "string",
"maxLength": 80,
"description": "A coupon from clevrgo_my_coupons, only when the user picks a particular one. Omit and ClevrGo applies the user's best coupon for this shop by itself."
},
"noCoupon": {
"type": "boolean",
"description": "true when the user does not want to use a coupon on this order."
},
"quantity": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "How many. Default 1."
},
"addressRef": {
"type": "string",
"description": "Which saved address, by the reference ClevrGo listed (e.g. 'a3fa21c'). Omit on the first request: ClevrGo uses the address the user last delivered to."
},
"productRef": {
"type": "string",
"description": "The product's reference from clevrgo_catalog_search, e.g. 'p2'."
}
},
"additionalProperties": false
}| boolean |
| returnDate | string | Date as YYYY-MM-DD. |
| toCityCode | string | city_code of the destination from flight_regions, when it has one. |
| fromCityCode | string | city_code of the origin from flight_regions, when it has one. |
| toCountryCode* | string | Two-letter country_code of the destination, from flight_regions. For a city, take it from its airports. |
| fromCountryCode* | string | Two-letter country_code of the origin, from flight_regions. For a city, take it from its airports. |
{
"type": "object",
"required": [
"fromCode",
"toCode",
"fromCountryCode",
"toCountryCode",
"departDate",
"adults"
],
"properties": {
"adults": {
"type": "integer",
"maximum": 9,
"minimum": 1
},
"toCode": {
"type": "string"
},
"infants": {
"type": "integer",
"maximum": 9,
"minimum": 0
},
"nonstop": {
"type": "boolean"
},
"children": {
"type": "integer",
"maximum": 9,
"minimum": 0
},
"fromCode": {
"type": "string"
},
"toIsCity": {
"type": "boolean"
},
"cabinClass": {
"type": "string",
"description": "economy, premium_economy, business or first."
},
"departDate": {
"type": "string",
"description": "Date as YYYY-MM-DD."
},
"fromIsCity": {
"type": "boolean"
},
"returnDate": {
"type": "string",
"description": "Date as YYYY-MM-DD."
},
"toCityCode": {
"type": "string",
"description": "city_code of the destination from flight_regions, when it has one."
},
"fromCityCode": {
"type": "string",
"description": "city_code of the origin from flight_regions, when it has one."
},
"toCountryCode": {
"type": "string",
"description": "Two-letter country_code of the destination, from flight_regions. For a city, take it from its airports."
},
"fromCountryCode": {
"type": "string",
"description": "Two-letter country_code of the origin, from flight_regions. For a city, take it from its airports."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"destination",
"checkInDate",
"checkOutDate"
],
"properties": {
"query": {
"type": "string",
"description": "Free-text preference, e.g. 'near MRT', 'pool'."
},
"budget": {
"type": "string",
"description": "Nightly budget range as the buyer said it, e.g. '100-200'."
},
"roomCount": {
"type": "integer",
"maximum": 9,
"minimum": 1
},
"adultCount": {
"type": "integer",
"maximum": 18,
"minimum": 1
},
"starRating": {
"type": "string",
"description": "Minimum star rating, e.g. '4'."
},
"checkInDate": {
"type": "string",
"description": "Date as YYYY-MM-DD."
},
"destination": {
"type": "string",
"description": "City or area IN ENGLISH, even when the buyer writes another language, e.g. 'Singapore', 'Tokyo Shinjuku', 'Sanya'. A Chinese city plus area (东京新宿) is not recognised."
},
"checkOutDate": {
"type": "string",
"description": "Date as YYYY-MM-DD."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"orderRef",
"action"
],
"properties": {
"action": {
"enum": [
"cancel",
"change",
"refund"
],
"type": "string",
"description": "cancel an unticketed order; change (also for an upgrade to a higher cabin); refund a ticketed one."
},
"reason": {
"enum": [
0,
1,
2,
3,
4
],
"type": "integer",
"description": "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": {
"type": "string",
"description": "The flight order's reference from flight_orders, e.g. 'bf1'."
},
"cabinClass": {
"enum": [
"ECONOMY",
"PREMIUM_ECONOMY",
"BUSINESS",
"FIRST"
],
"type": "string",
"description": "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": {
"type": "string",
"description": "For change: the new departure date the buyer asked for, YYYY-MM-DD."
}
},
"additionalProperties": false
}