This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
start [2019/02/26 17:11] 223.207.124.105 |
start [2019/12/02 16:22] 171.4.234.248 |
||
---|---|---|---|
Line 37: | Line 37: | ||
- | ** 2. GET_STATION** | + | |
+ | **2. GET_STATION** | ||
after select source or destination province, use this method to get a list of station for source | destination | after select source or destination province, use this method to get a list of station for source | destination | ||
Line 53: | Line 54: | ||
--------------------------------------------------------- | --------------------------------------------------------- | ||
+ | |||
{from} | {to} = source | destination station ID | {from} | {to} = source | destination station ID | ||
Line 58: | Line 60: | ||
- | **4. PUT_BOOKING** | + | **4. GET_SEAT_PLAN** |
+ | |||
+ | When you selected car and then this method will show the seat of that car you selected before. | ||
+ | |||
+ | parameter: {key}&{method}&{serviceID} | ||
+ | |||
+ | --------------------------------------------------------- | ||
+ | |||
+ | {serviceID} = user selected trip | ||
+ | |||
+ | |||
+ | **5. PUT_BOOKING** | ||
when user completed a booking data this method will be use to put a booking data back to datacenter | when user completed a booking data this method will be use to put a booking data back to datacenter | ||
Line 82: | Line 95: | ||
- | **5. CONFIRM_PAYMENT** | + | **6. PUT_BOOKING_SEAT** |
+ | when user completed a booking data this method will be use to put a booking data back to datacenter. | ||
+ | |||
+ | The method PUT_BOOKING_SEAT will add the seat data that different from PUT_BOOKING. | ||
+ | |||
+ | parameter: {key}&{method}&{serviceID}&{passengerName}&{telNo}& {passportNo}&{email}&{amoutOfSeat}&{serviceCode}&{seletedSeat} | ||
+ | |||
+ | --------------------------------------------------------- | ||
+ | |||
+ | {serviceID} = user selected trip | ||
+ | |||
+ | {passengerName} and {telNo} are mandatory | ||
+ | |||
+ | {passportNo} and {email} are optional | ||
+ | |||
+ | {amoutOfSeat} = total number of booking seats | ||
+ | |||
+ | {serviceCode} = payment method (optional) | ||
+ | |||
+ | {seletedSeat} = consist of “{seatName}-{selectionFee}” example “1A-10,2A-10,…” | ||
+ | |||
+ | default - 00: Credit/Debit Card | PayPal , 02: Counter service | ||
+ | |||
+ | * this method will output a booking number to use for reference | ||
+ | |||
+ | |||
+ | **7. CONFIRM_PAYMENT** | ||
after put a booking data, payment via credit/debit card or PayPal must process in 10 minutes, payment via other method must process before midnight or 4 hours before departure time, otherwise a booking will be cancelled | after put a booking data, payment via credit/debit card or PayPal must process in 10 minutes, payment via other method must process before midnight or 4 hours before departure time, otherwise a booking will be cancelled | ||
Line 90: | Line 129: | ||
--------------------------------------------------------- | --------------------------------------------------------- | ||
- | {process_by} = payment vendor name (7-Eleven, PayPal, …) | + | {process_by} = payment vendor name (Counter service, PayPal, …) |
* this method will output a record field “success” or “failure” | * this method will output a record field “success” or “failure” | ||
- | **6. GET_BOOKING** | + | **8. GET_BOOKING** |
you can get a booking data via use of booking number to produce a ticket or QR code or send to an user email | you can get a booking data via use of booking number to produce a ticket or QR code or send to an user email | ||
Line 102: | Line 141: | ||
* use a ticket serial number to produce a QR code | * use a ticket serial number to produce a QR code | ||
+ | |||
+ | |||
+ | **9. REFUND_BOOKING** | ||
+ | |||
+ | This Method use for return the ticket. When customer return the ticket the agency will be fee deducted 30 baht. | ||
+ | |||
+ | parameter: {key}&{method}&{bookingNo} | ||
+ | |||
+ | --------------------------------------------------------- | ||
+ | |||
+ | {bookingNo} = booking number | ||
+ | |||
+ | * this method will return: Data of refunded value and refunded fee. | ||
Line 123: | Line 175: | ||
+ | get_seat_plan method: | ||
+ | {{:getseatplan_code.jpg?nolink |}}{{ :getseatplan.jpg?nolink |}} | ||
Line 130: | Line 183: | ||
* Note that we will use 1 passenger data for all seats in same booking. If you need passenger data separate to each seat you must put in difference booking number | * Note that we will use 1 passenger data for all seats in same booking. If you need passenger data separate to each seat you must put in difference booking number | ||
{{ :รูป_6.jpg?nolink |}} | {{ :รูป_6.jpg?nolink |}} | ||
+ | |||
+ | |||
+ | |||
+ | put_booking_seat method: | ||
+ | {{ :putbookingseat_code.jpg?nolink |}} | ||
+ | * Note that we will use 1 passenger data for all seats in same booking. If you need passenger data separate to each seat you must put in difference booking number | ||
+ | {{ :รูป_6.jpg?nolink |}} | ||
+ | |||
get_booking method: | get_booking method: |