Technical Documentations
  • 🇻🇳Vietnamese
    • Tổng quan
    • Đối tác B2B2C
      • Phương thức Webview
        • API Login
        • Yêu cầu bảo mật
        • Place Order
        • API Get Booking Detail
        • API Commit
        • API Check commit result
      • Phương thức SDK
        • API Login
        • Yêu cầu bảo mật
        • Initiate SDK
          • Init IOS SDK
          • Init Android SDK
        • Place order
        • API Commit
        • API Get booking detail
        • API Check commit result
      • Phương thức API
        • API Login
        • Yêu cầu bảo mật
        • ✈️Flight
          • Search API
          • Booking API
        • 🏨Hotel
          • Search API
          • Booking API
          • Cancellation API
        • Payment API
        • Booking Management API
    • Đối tác Corporate Agent (CA)
      • Qui trình tích hợp
      • API Chứng thực
      • Yêu cầu bảo mật
    • Đối tác Affiliate
    • ❓Câu hỏi thường gặp
      • Các status trong luồng booking Gotadi
      • Quy định Test
        • ✈️Vé máy bay
        • 🏨Khách sạn
      • Bộ Testcase dành cho đối tác B2B2C
      • Quy trình hỗ trợ từ CS
      • Danh sách Airlines
  • 🇬🇧English
    • Overview
    • B2B2C Partner
      • Webview method
        • API Login
        • Security Requirements
        • Place Order
        • API Get Booking Detail
        • API Commit
        • API Check commit result
      • SDK method
        • API Login
        • Security Requirments
        • Initiate SDK
          • Init IOS SDK
          • Init Android SDK
        • Place order
        • API Commit
        • API Get booking detail
        • API Check commit result
      • API method
        • Integration process
        • Login API
        • ✈️Flight
          • Search API
          • Booking API
        • 🏨Hotel
          • Search API
          • Booking API
          • Cancellation API
        • Payment API
    • Corporate Agent Partner (CA)
      • Integration Process
      • Authentication API
      • Security Requirements
    • Affiliate Partner
    • ❓FAQ section
      • Booking Statuses in Gotadi's Booking Flow
      • Regulations for Testing
        • ✈️Flight
        • 🏨Hotel
      • CS Support Overall Flow
      • Airlines List
Powered by GitBook
On this page
  • Specification
  • Request
  • Response
  • Example of Gotadi result page:
  1. English
  2. B2B2C Partner
  3. Webview method

API Commit

API Ghi nhận thanh toán và xác nhận xuất vé

Specification

  • URL: <API_GATEWAY>/api/partner/commit

  • Method: POST

  • Description: Request to commit a booking with complete information and finalize payment.

  • Security Requirements: Data must be encrypted and include an electronic signature.

Request

Model
  • key (string, required): Decryption key for the data (already encrypted). Refer to the section "Data Encryption and Electronic Signature Verification" for decryption instructions.

  • data (string, required): Encrypted data including an electronic signature. Refer to the section "Data Encryption and Electronic Signature Verification" for decryption instructions.

  • Signature data schema:

    <access_code>|<booking_number>|<partner_trans_id>|<product_type>

    Original data schema:

    <access_code>|<booking_number>|<partner_trans_id>|<product_type>|<signature>
    • access_code (String, required): Access code provided by Gotadi to the Partner.

    • bookingNumber (String, required): Unique reference code for the booking.

    • partner_trans_id (String, optional): Partner's transaction identifier. If not provided, the default value will be set to bookingNumber.

    • product_type (String, required): Product type, with values AIR or HOTEL, corresponding to the purchased product type.

      ứng với loại sản phẩm được mua

Example

{
"data": "...",
"key": "..."
}

Response

Model
  • key (String, required): Decryption key for the data (already encrypted). Refer to the section "Data Encryption and Electronic Signature Verification" for decryption instructions.

  • data (String, required): Encrypted data including an electronic signature. Refer to the section "Data Encryption and Electronic Signature Verification" for decryption instructions.

  • Signature data schema:

    <access_code>|<booking_number>|<error_code>|<product_type>|<properties>|<return_url>|<total_amount>

    Original data schema:

    <access_code>|<booking_number>|<error_code>|<product_type>|<properties>|<return_url>|<signature>|<total_amount>
    • access_code (String, required): Access code provided by Gotadi to the Partner.

    • booking_number (String, required): Unique reference code for the booking.

    • error_code (String, required): Error code.

    • product_type (String, optional): Product type, with values AIR or HOTEL, corresponding to the purchased product type.

    • properties (String, optional): Additional information returned to the partner in JSON string format.

    • return_url (String, optional): Gotadi’s transaction result page, used if the partner does not build their own final result page.

    • total_amount (Double, required): Total amount to be paid.

Example

{
"data": "...",
"key": "..."
}

Example of Gotadi result page:

PreviousAPI Get Booking DetailNextAPI Check commit result

Last updated 3 months ago

🇬🇧