Create order

Overview

Create a G-Link hotel order after Trial booking confirms the selected product can be booked.

When to use

  • The traveler has supplied required guest and contact details.
  • Trial booking has just succeeded for the actual booking payload.

What you get

  • G-Link order identifiers and a pending-payment booking state when the order is created.

Required flow

  1. Run Trial booking with the actual room quantity.
  2. Create the order with business fields only.
  3. After local payment succeeds, call Pay order.
  4. Receive the primary confirmation through the order-status callback; use Query order details only as a low-frequency compensation path.

Integration notes

Preserve coOrderCode and fcOrderCode when returned. Do not treat successful HTTP status alone as a booking result; evaluate the response code and business data.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Pass the business request body directly. Do not wrap it in header / businessRequest.

string

Language. zh-CN for Chinese and en-US for English. Defaults to English.

string

Request ID

integer
required

Hotel ID

integer
required

Room ID

string
required

Rate plan ID

string
required

Supplier code

integer
required

Number of rooms

string
required

Check-in date in yyyy-MM-dd format.

string
required

Check-out date in yyyy-MM-dd format.

number
required

Total order amount returned by trial booking.

string
required

Partner order number. The order number must be unique.

integer

Pay-at-hotel flag: 1 - yes; 0 - no. Returned by the real-time product query API and required when the product is pay-at-hotel. This field is not validated during order creation and must not be used to determine the actual settlement or payment method.

integer

Guarantee flag: 1 - guaranteed; 0 - not guaranteed. Defaults to not guaranteed.

integer

VIP order flag: 1 - VIP order; 0 - non-VIP order.

integer

Travel type: 1 - business; 2 - personal.

string

Bed type code. See dictionary item: Bed Type. Recommended when the rate plan returns bed type information. Join multiple values with commas.

integer
required

Number of breakfasts. Must match the value returned by trial booking. See dictionary item: Breakfast Quantity.

integer
required

Payment status: 0 - pending payment; 1 - paid.

integer
required

Adults per room

integer

Children per room

string

Children ages. Required when numberOfChildren is not empty, and the number of ages must match numberOfChildren. Separate multiple ages with commas. Example: numberOfChildren=2 and childrenAges="1,2" means two children aged 1 and 2. Use 0 for children younger than 1 year old.

priceItems
array of objects
required

Price details

priceItems*
guestInfos
array of objects
required
guestInfos*
string
required

Contact name

string
required

Contact phone number

string

Contact phone country code, for example 86.

string

Email. Required when the invoice type is electronic general VAT invoice or electronic special VAT invoice.

string
required

Arrival time in HH:mm format. For hourly rooms, this is the start time of the stay period, on the hour or half hour.

string
required

Latest arrival time in HH:mm format. For hourly rooms, this is the end time of the stay period, on the hour or half hour.

string

Special request from the guest to the hotel.

string

Country/region alpha-2 code. See ISO Country/Region Code in the dictionary.

number

Service charge

string

Channel name

string

Operator

string

Remark. This is a reserved field and is blank by default. Also used as invoice remarks.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json