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
  1. English
  2. B2B2C Partner
  3. Webview method

API Login

Initialize Webview Integration

PreviousWebview methodNextSecurity Requirements

Last updated 2 months ago

Specification

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

  • Method: POST

  • Description: Initialize a new session for the user.

  • Security Requirements:

Request

Model
  • key (string, required),

    Key giải mã dữ liệu (đã được mã hóa). Cách thành lập tham khảo mục:

  • data (string, required),

    Dữ liệu kèm theo chữ ký điện tử (đã được mã hóa). Cách giải mã tham khảo mục:

    Signature data schema:

    <access_code>|<user_id>|<layout>|<product>

    Original data schema:

    <access_code>|<user_id>|<layout>|<product>|<signature>
    • access_code (String, required)

      Access code do Gotadi cung cấp cho Đối tác.

    • user_id (String, required)

      Mã định danh người dùng trên hệ thống của Đối tác.

    • layout (String, optional)

      Có giá trị là dual hoặc single tương ứng với 2 loại layout Gotadi cung cấp cho đối tác.

    • product (String, required)

      Có giá trị là flight hoặc hotel. Tương ứng với 2 sản phẩm Gotadi cung cấp cho đối tác.

      Khi layout là single: Dùng để chọn dịch vụ hiển thị trên webview.

      Khi layout là dual: Dùng để focus dịch vụ hiển thị trên webview.

Example

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

Response

Model
  • key (String, required)

    Key giải mã dữ liệu (đã được mã hóa). Cách giải mã tham khảo mục:

  • data (String, required)

    Dữ liệu kèm theo chữ ký điện tử (đã được mã hóa). Cách giải mã tham khảo mục:

    Signature data schema:

    <access_code>|<error_code>|<redirect_url>

    Original data schema:

    <access_code>|<error_code>|<redirect_url>|<signature>
    • access_code (String, required)

      Access code do Gotadi cung cấp cho Đối tác.

    • error_code (String, required)

    • redirect_url (String, optional)

      Đường dẫn tới Webview Gotadi có kèm theo jwtToken.

      https://<gotadi_webview_url>?access_token=<jwtToken>

Example

{
    "data": "...",
    "key": "..."
}
🇬🇧
Encrypt data and include a digital signature.
Mã hóa dữ liệu truyền và xác thực chữ ký điện tử
Mã hóa dữ liệu truyền và xác thực chữ ký điện tử
Mã hóa dữ liệu truyền và xác thực chữ ký điện tử
Mã hóa dữ liệu truyền và xác thực chữ ký điện tử
Mã lỗi