Get order
One of the user's orders by orderId: its status, the payment status and, while it awaits payment, payment.url; the stay and its terms; and the hotel's confirmation number once there is one.
Check it after the user pays. An order awaiting payment whose payment.url is null had its link unreadable this time: read it again.
get_order · Read-only · CLI: fortrip orders get
Input
orderIdstringrequiredThe order's orderId.matches ^ord_[0-9A-Za-z]{20}$
locale"en" | "zh"Language for names and text in the response: en or zh.
Output
structuredContent is the Order object. content[0] is the answer as compact text. It also carries nextStep, the rule for sharing payment.url. Errors are described in the overview.