文档中心 > Touring Integration

Car Reservation

更新时间:2017/04/15 访问次数:1052

Real-Time Car Reservation Transaction Order Synchronization

Alitrip provides a real-time car reservation order synchronization scheme: during a user’s ordering process, the Alitrip transaction system duly triggers to invoke interfaces related to transaction reservation provided by an external merchant so as to synchronize Alitrip platform orders to the merchant system in real time, and also provides a series of callback interfaces related to transaction orders to promote order procedures. The transaction order direct-connection matchmaking scheme is illustrated as the following flow diagram. The dashed line box in the diagram refers to an optional procedure:

image

Order creation

When a new order is created and paid on the Alitrip system, the Alitrip system will actively invoke the ordering (reservation) interface provided by an external merchant to create a corresponding order on the merchant system. In the case that an order is successfully submitted, depending on whether the merchant ordering (reservation) interface directly returns a merchant system order number, the Alitrip platform will make the following processing:

  • Case 1: the ordering interface directly returns a merchant system order number. The Alitrip system will associate the Alitrip order number with the merchant order number, and the order creation procedure ends.
  • Case 2: (reservation is not supported for now) the ordering interface does not return a merchant system order number. At this time, the merchant system needs to provide the order query interface (which supports queries that set Alitrip order numbers as primary keys), and the Alitrip system will regularly poll the reservation status of the order according to a certain strategy until that merchant system order number returning or reservation fails.

Merchant order acceptance confirmation (callback interface)

In the case that an order is successfully created, the car reservation service provider needs to confirm whether to accept the order. The Alitrip platform provides a callback interface (taobao.alitrip.car.order.accept) for confirming whether to accept an order; the service provider informs the Alitrip platform whether to accept the order via the interface.

Driver response (callback interface)

In the case that the merchant confirms to accept an order, the car reservation service provider needs to feed back information on a driver who accepts the order. The Alitrip platform provides a driver response callback interface (taobao.alitrip.car.order.confirm); the service provider informs the Alitrip platform of information on a driver who accepts an order via the interface.

Driver service completion (callback interface)

In the case that a driver has completed car reservation service for a customer, the car reservation provider needs to feed back car reservation completion information. The Alitrip platform provides a driver service completion callback interface (taobao.alitrip.car.order.complete); the service provider informs, via the interface, the Alitrip platform that the order is completed and money should be paid to a service provider account.

Order cancellation by users

If a buyer initiates refund of a paid order on the Alitrip platform, the Alitrip platform will actively invoke the order cancellation interface provided by an external merchant to initiate an order cancellation procedure on the merchant system.

FAQ

关于此文档暂时还没有FAQ
返回
顶部