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. API method

Login API

PreviousIntegration processNextFlight

Last updated 3 months ago

POST: /api/partner/login

Create a new session for the user

Security requirements: Encrypt data and include a digital signature

Request Body

Model
  • key (string, required),

    Key decrypts (encrypted) data. How to establish refer to the section: Encryption of transmitted data and authentication of digital signature

  • data (string, required),

    Data with electronic signature (encrypted). How to decrypt refer to the section: Encryption of transmitted data and authentication of digital signature

    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 provided by Gotadi to Partners.

    • user_id (String, required)

      User identifier on the Partner’s system.

    • layout (String, optional)

      The value is dual or single corresponding to 2 types of layout Gotadi provides to partners.

    • product (String, required)

      • The value is flight or hotel. Corresponding to 2 products Gotadi provided to partners.

      • When the layout is single: Used to select the display service on the webview.

      • When the layout is dual: Used to focus the service displayed on the webview.

Response

Code 200

OK

Model
  • key (String, required)

    Key decrypts (encrypted) data. How to establish refer to the section: Encryption of transmitted data and authentication of digital signature

  • data (String, required)

    Data with electronic signature (encrypted). How to decrypt refer to the section: Encryption of transmitted data and authentication of digital signature

    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 provided by Gotadi to Partners.

    • error_code (String, required)

    • redirect_url (String, optional)

      Link to Gotadi Webview with jwtToken included.

      https://<gotadi_webview_url>?access_token=<jwtToken>
🇬🇧
Error code