openapi: 3.0.3
info:
  title: ITT E-Sim API
  version: 1.0.0
  description: E-Sim API endpoints converted from Postman collection.

servers:
  - url: "{protocol}://{fullUrl}"
    description: Dynamic Server Selection
    variables:
      protocol:
        enum:
          - https
          - http
        default: https
      fullUrl:
        default: serviceapi.tripapi.site
        description: Full URL of the server, e.g., serviceapi.example.com or localhost:8080

tags:
  - name: E-Sim
    description: E-Sim search, pricing, booking, ancillaries and post-booking flows.

security:
  - apiKeyAuth: []
    secretCodeAuth: []
paths:
  /esim/search:
    post:
      tags: 
        - eSIM Search & Inquiry
      summary: Search eSIM plans
      operationId: esimSearch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - eSim
              properties:

                eSim:
                  type: object
                  required:
                    - region_type
                    - plan_type
                  properties:

                    region_type:
                      type: string
                      description: Region type for eSIM plan (local / global / europe / asia / all)
                      example: "local"

                    country_code:
                      type: string
                      description: Country ISO code (required only when region_type is local)
                      example: "BD"

                    plan_type:
                      type: string
                      description: Type of eSIM plan (e.g., data / voice / combo)
                      example: "data"

                    topup_included:
                      type: string
                      description: Whether top-up is included (yes / no)
                      example: "yes"

                supplier_uid:
                  type: string
                  description: Supplier identifier (use 'all' for all suppliers)
                  example: "all"

                partner_id:
                  type: string
                  description: Partner account ID
                  example: "1"

                short_ref:
                  type: string
                  description: Optional short reference ID for stream search
                  example: "xxxx111"

                language:
                  type: string
                  description: Response language
                  example: "en"
              additionalProperties: true
            examples:
              default:
                value:
                  {
                      "eSim": {
                          "region_type": "local", 
                          "country_code": "BD", 
                          "plan_type": "data",
                          "topup_included": "yes"
                      },
                      "supplier_uid": "all", 
                      "partner_id": "1", 
                      "short_ref": "xxxx111", 
                      "language": "en"
                  }
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                Successful_search_response:
                  value:
                    "status": "success"
                    "reason": "A total of 24 eSIM packages were found for your search."
                    "tracking_id": "117726070533RO1"
                    "search_parameter": {
                        "eSim": {
                            "region_type": "local",
                            "country_code": "BD",
                            "plan_type": "data",
                            "topup_included": "yes"
                        },
                        "supplier_uid": "all",
                        "partner_id": "1",
                        "short_ref": "xxxx111",
                        "language": "en",
                        "tracking_id": "117726070533RO1"
                    }
                    "total_esim_package": 24,
                    "data": 
                        
                            "tracking_id": "117726070533RO1"
                            "package_id": "X1AO00084||bangladesh||1067||fatafati-in-7days-1gb"
                            "supplier": "airalo"
                            "supplier_partner_code": "airalo-1-00084"
                            "supplier_key": "fatafati-in-7days-1gb"
                            "sell_price": 489.41,
                            "sell_currency": "BDT"
                            "package_type": "sim"
                            "title": "1 GB - 7 days"
                            "data": "1 GB"
                            "package_details": 
                                "data_amount": 1024,
                                "voice_amount": null,
                                "text_amount": null,
                                "validity_days": 7,
                                "is_unlimited": false,
                                "has_fair_usage_policy": false
                            "region_details": 
                                "id": "bangladesh"
                                "name": "Bangladesh"
                                "country_code": "BD"
                                "image": {
                                    "width": 132,
                                    "height": 99,
                                    "url": "https://cdn-revamp.airalo.com/images/7633c268-6c9a-47e9-86e0-78ea5f07f1e9.png"
                                }
                            "operator_details": 
                              "image": 
                                  "width": 1035,
                                  "height": 653,
                                  "url": "https://cdn-revamp.airalo.com/images/e10c1246-bafa-4998-bfe9-e9e279aa2eb8.png"
                            "validity": {
                                "activation_days": 365,
                                "topup_days": 180
                            }
                            "coverage_type": "local"
                            "esim_type": "prepaid"
                            "plan_type": "data"
                            "activation_policy": "first-usage"
                            "rechargeable": true,
                            "info": null
                            "coverage_country": 
                              {
                                  "country": "BD",
                                  "networks": [
                                      "GrameenPhone"
                                  ],
                                  "network_types": [
                                      "4G"
                                  ]
                              }
                            price": 
                              "promo_tag": null,
                              "purchase": {
                                  "total": {
                                      "currency": "BDT",
                                      "amount": 489.41,
                                      "before_discount": 489.41,
                                      "discount": 0,
                                      "point": 0
                                  },
                                  "price_breakdown": {
                                      "currency": "BDT",
                                      "total": 489.41,
                                      "base_fare": 489.41,
                                      "tax": 0,
                                      "extra_person_fee": 0,
                                      "supplier_sales_comission": null,
                                      "payable_at_property": []
                                  }
                              }
                            "sell": {
                                "total": {
                                    "currency": "BDT",
                                    "amount": 489.41,
                                    "gross_price": 489.41,
                                    "platform_fees_or_extra_tax": 0,
                                    "point": 0
                                },
                                "price_breakdown": {
                                    "currency": "BDT",
                                    "total": 489.41,
                                    "base_fare": 489.41,
                                    "tax": 0,
                                    "platform_fees_or_extra_tax": 0,
                                    "extra_person_fee": 0,
                                    "supplier_sales_comission": null,
                                    "payable_at_property": []
                                }
                            }
                            "fmg": {
                                "total": {
                                    "currency": "USD",
                                    "amount": 4
                                },
                                "price_breakdown": {
                                    "currency": "USD",
                                    "total": 4,
                                    "base_fare": 4,
                                    "tax": 0,
                                    "extra_person_fee": 0,
                                    "supplier_sales_comission": null,
                                    "base_fare_fmg_charge": 0,
                                    "membership_discount_percentige": 0,
                                    "membership_discount_amount": 0,
                                    "final_base_fare_fmg_charge": 0,
                                    "payable_at_property": []
                                }
                            }
                    "supplier": 
                        "total": 
                            "currency": "USD"
                            "amount": 4
                    
                        "price_breakdown": 
                          "currency": "USD"
                          "total": 4,
                          "base_fare": 4,
                          "tax": 0,
                          "sales_tax": 0,
                          "property_fees": 0,
                          "surcharges": 0,
                          "service_charge": 0,
                          "extra_person_fee": 0,
                          "supplier_sales_comission": null,
                          "payable_at_property": []
                        "fair_usage_policy": null,
                        "qr_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To activate the eSIM by scanning the QR code on your eSIM capable device you need to print or display this QR code on other device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Scan QR code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p><p><b>To top up:</b></p><p><br></p><p>Visit airalo.com/my-esims or if purchased through the Airalo website/app visit “My eSIMs” tab.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>"
                        "manual_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To manually activate the eSIM on your eSIM capable device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Manually enter the SM-DP+ Address and activation code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p><p><b>To top up:</b></p><p><br></p><p>Visit airalo.com/my-esims or if purchased through the Airalo website/app visit “My eSIMs” tab.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>"
                    "filter": 
                      "data_amount": 1024,
                      "voice_amount": 0,
                      "text_amount": 0,
                      "validity_days": 7,
                      "coverage_type": "local"
                      "esim_type": "prepaid"
                      "plan_type": "data"
                      "coverage_country": [
                          "BD"
                      ]
                    -"filter": {
                      "data_amount": [
                            1024,
                            2048,
                            3072,
                            5120,
                            28672,
                            0,
                            10240,
                            43008,
                            53248,
                            20480,
                            66560,
                            93184,
                            173056
                        ],
                  "voice_amount": [
            0
                    ],
                  "text_amount": [
                        0
                    ],
                  "validity_days": [
                        7,
                        15,
                        30,
                        3,
                        5,
                        10
                    ],
                  "esim_type": [
                      "prepaid"
                  ],
                  "coverage_type": [
                      "local"
                  ],
                  "plan_type": [
                      "data"
                  ],
                  "coverage_country": [
                      "BD"
                  ],
                  "min_price": 489,
                  "max_price": 12112
                    }
                
                missing_region_type_error:
                  summary: Missing Region Type for eSim
                  value:
                    status: "failed"
                    reason: "Missing region_type for eSim"
                authorization_failed:
                  summary: Authorization Failed (Warning)
                  value:
                    status: "failed"
                    is_warning: "yes"
                    reason: "You do not have authorization to purchase eSim. Please reach out to the Support team for assistance."
                    reason_admin: "eSim Module is Disable"

                              
                        
                                      
                        
                
       
  /esim/single-esim-package:
    post:
      tags: 
        - eSIM Search & Inquiry
      summary: Get single eSIM package
      operationId: singleEsimPackage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - tracking_id
                - package_id
              properties:

                tracking_id:
                  type: string
                  description: Search tracking ID returned from eSIM plan search
                  example: "117726070533RO1"

                package_id:
                  type: string
                  description: Unique eSIM package identifier
                  example: "X1AO00084||bangladesh||1067||fatafati-in-7days-1gb"
              additionalProperties: true
            examples:
              default:
                value:
                  tracking_id: 11763299361URM1
                  package_id: X1AO00012||bangladesh||1067||fatafati-in-7days-1gb
      responses:
        '200':
          description: Package details and pricing information.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                successful_package_details:
                  summary: Successful Package Details Response
                  value:
                        "status": "success"
                        "tracking_id": "11177260822126194QDWJV"
                        "search_parameter": {
                          "eSim": {
                            "region_type": "local",
                            "country_code": "BD",
                            "plan_type": "data",
                            "topup_included": "yes"
                        },
                        "supplier_uid": "X1AO00084",
                        "partner_id": "1",
                        "short_ref": "xxxx111",
                        "language": "en",
                        "tracking_id": "117726070533RO1",
                        "supplier_type": "ESIM",
                        "supplier_code": "airalo",
                        "supplier_partner_code": "airalo-1-00084"
                      }
                        "data": 
                            "booking_tracking_id": "11177260822126194QDWJV"
                            "package_tracking_id": "11177260822126194QDWJV||fatafati-in-7days-1gb"
                            "supplier": "airalo"
                            "supplier_partner_code": "airalo-1-00084"
                            "supplier_key": "fatafati-in-7days-1gb"
                            "sell_price": 489.41,
                            "sell_currency": "BDT"
                            "package_type": "sim"
                            "title": "1 GB - 7 days"
                            "data": "1 GB"
                            "package_details": {
                                "data_amount": 1024,
                                "voice_amount": null
                                
                            }
                        "region_details": 
                          "id": "bangladesh"
                          
                            
                                
                        "operator_details": 
                            "image": 
                                "width": 1035,
                                "height": 653,
                                "url": "https://cdn-revamp.airalo.com/images/e10c1246-bafa-4998-bfe9-e9e279aa2eb8.png"
                            
                            "validity": 
                                "activation_days": 365,
                                "topup_days": 180
                            
                            "coverage_type": "local"
                            "esim_type": "prepaid"
                            "plan_type": "data"
                            "activation_policy": "first-usage"
                            "rechargeable": true,
                            "info": null
                        
                        "coverage_country": [
                        {
                            "country": "BD",
                            "networks": [
                                "GrameenPhone"
                            ],
                            "network_types": [
                                "4G"
                            ]
                        }
                    ]
                        "price": 
                            "promo_tag": null,
                            "purchase": {
                                "total": {
                                    "currency": "BDT",
                                    "amount": 489.41,
                                    "before_discount": 489.41,
                                    "discount": 0,
                                    "point": 0
                                },
                          "price_breakdown": {
                              "currency": "BDT",
                              "total": 489.41,
                              "base_fare": 489.41,
                              "tax": 0,
                              "extra_person_fee": 0,
                              "supplier_sales_comission": null,
                              "payable_at_property": []
                          }
                               }
                            "sell": {
                            "total": {
                            "currency": "BDT",
                            "amount": 489.41,
                            "gross_price": 489.41,
                            "platform_fees_or_extra_tax": 0,
                            "point": 0
                        },
                        "price_breakdown": {
                            "currency": "BDT",
                            "total": 489.41,
                            "base_fare": 489.41,
                            "tax": 0,
                            "platform_fees_or_extra_tax": 0,
                            "extra_person_fee": 0,
                            "supplier_sales_comission": null,
                            "payable_at_property": []
                        }
                    }

                        "fmg": {
                        "total": {
                            "currency": "USD",
                            "amount": 4
                        },
                        "price_breakdown": {
                            "currency": "USD",
                            "total": 4,
                            "base_fare": 4,
                            "tax": 0,
                            "extra_person_fee": 0,
                            "supplier_sales_comission": null,
                            "base_fare_fmg_charge": 0,
                            "membership_discount_percentige": 0,
                            "membership_discount_amount": 0,
                            "final_base_fare_fmg_charge": 0,
                            "payable_at_property": []
                        }
                    }

                        "supplier": {
                        "total": {
                            "currency": "USD",
                            "amount": 4
                        },
                        "price_breakdown": {
                            "currency": "USD",
                            "total": 4,
                            "base_fare": 4,
                            "tax": 0,
                            "sales_tax": 0,
                            "property_fees": 0,
                            "surcharges": 0,
                            "service_charge": 0,
                            "extra_person_fee": 0,
                            "supplier_sales_comission": null,
                            "payable_at_property": []
                        }
                    }

                        "fair_usage_policy": null,
                        "qr_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage:</b>Bangladesh</p><p><br></p><p><b>To activate the eSIM by scanning the QR code on your eSIM capable device you need to print or display this QR code on other device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Scan QR code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p><p><b>To top up:</b></p><p><br></p><p>Visit airalo.com/my-esims or if purchased through the Airalo website/app visit “My eSIMs” tab.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>"
                        "manual_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To manually activate the eSIM on your eSIM capable device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Manually enter the SM-DP+ Address and activation code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p><p><b>To top up:</b></p><p><br></p><p>Visit airalo.com/my-esims or if purchased through the Airalo website/app visit “My eSIMs” tab.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>"
                no_package_found_error:
                        summary: Package Not Found Error
                        value:
                          status: "failed"
                          reason: "No package data found!"

                authorization_failed:
                      summary: Authorization Failed (Warning)
                      value:
                        status: "failed"
                        is_warning: "yes"
                        reason: "You do not have authorization to view this package. Please reach out to the Support team for assistance."
                        reason_admin: "Package Module is Disable"
                
                
        
        
  /esim/update-customer:
    post:
      tags: 
      - eSIM Booking
      summary: Update customer information
      operationId: updateCustomer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - booking_tracking_id
                - member_id
                - passenger
              properties:

                booking_tracking_id:
                  type: string
                  description: Booking tracking ID received from validation step
                  example: "11177260822126194QDWJV"

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"

                save_pax:
                  type: string
                  description: Save passenger data for future bookings (yes / no)
                  example: "yes"

                passenger:
                  type: array
                  description: Passenger details
                  items:
                    type: object
                    required:
                      - pax_id
                      - pax_type
                      - first_name
                      - last_name
                    properties:

                      pax_id:
                        type: string
                        description: Passenger ID
                        example: "1"

                      pax_type:
                        type: string
                        description: Passenger type (ADT = Adult)
                        example: "ADT"

                      title:
                        type: string
                        description: Passenger title (MR / MRS / MS)
                        example: "MR"

                      first_name:
                        type: string
                        description: Passenger first name
                        example: "Jasim"

                      last_name:
                        type: string
                        description: Passenger last name
                        example: "Karimm"

                      age:
                        type: string
                        description: Passenger age
                        example: "30"

                      isd_code:
                        type: string
                        description: ISD code for contact number
                        example: "880"

                      contact_no:
                        type: string
                        description: Passenger contact number
                        example: "1966330000"

                      email_address:
                        type: string
                        format: email
                        description: Passenger email address
                        example: "test@mail.com"
              additionalProperties: true
            examples:
              default:
                value:
                  booking_tracking_id: 11176335754526194RQYGH
                  member_id: "2"
                  save_pax: yes
                  passenger:
                    - pax_id: "1"
                      pax_type: ADT
                      title: MR
                      first_name: Jasim
                      last_name: Karimm
                      age: "30"
                      isd_code: "880"
                      contact_no: 1966330000
                      email_address: test@mail.com
      responses:
        '200':
          description: Response for customer data update in a specific package booking.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                successful_customer_update:
                  summary: Successful Update Customer Response
                  value:
                        {
                            "status": "success",
                            "reason": "Customer data has been successfully updated.",
                            "tracking_id": "11177260822126194QDWJV",
                            "total_guest": 1,
                            "data": [
                                {
                                    "tracking_id": "11177260822126194QDWJV",
                                    "pax_id": "1",
                                    "pax_type": "ADT",
                                    "gender": null,
                                    "title": "MR",
                                    "first_name": "JASIM",
                                    "last_name": "KARIMM",
                                    "pax_age": "30",
                                    "isd_code": "880",
                                    "contact_no": "1966330000",
                                    "email_address": "test@mail.com"
                                }
                            ]
                        }

                  no_package_data_found_error:
                     summary: Tracking ID Not Found Error
                     value:
                        status: "failed"
                        reason: "No package data found for this tracking_id!"

               
                        
       
        
  /esim/create-booking:
    post:
      tags: 
      - eSIM Booking
      summary: Create eSIM booking
      operationId: createBooking
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - booking_tracking_id
                - package_tracking_id
                - eSim_quantity
                - member_id
                - payment_type
              properties:

                booking_tracking_id:
                  type: string
                  description: Booking tracking ID from validation step
                  example: "11177260822126194QDWJV"

                package_tracking_id:
                  type: string
                  description: Unique package tracking identifier
                  example: "11177260822126194QDWJV||fatafati-in-7days-1gb"

                eSim_quantity:
                  type: string
                  description: Number of eSIM packages to purchase
                  example: "1"

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"

                isPartialPay:
                  type: string
                  description: Whether partial payment is allowed (yes / no)
                  example: "no"

                redirect_url:
                  type: string
                  format: uri
                  description: Redirect URL after payment completion
                  example: "https://test.example.com/test-tech/custom_modal.html"

                payment_type:
                  type: string
                  description: Payment method (account_balance / card / onlinepayment)
                  example: "account_balance"

                isd_code:
                  type: string
                  description: ISD code for contact number
                  example: "880"

                contact_no:
                  type: string
                  description: Contact number of the customer
                  example: "1966330000"

                email_address:
                  type: string
                  format: email
                  description: Customer email address
                  example: "iam@mail.com"

                agency_email:
                  type: string
                  format: email
                  description: Agency email address
                  example: "iam@mail.com"
              additionalProperties: true
            examples:
              default:
                value:
                  booking_tracking_id: 11176335754526194RQYGH
                  package_tracking_id: 11176335754526194RQYGH||fatafati-in-7days-1gb
                  eSim_quantity: "1"
                  member_id: "2"
                  isPartialPay: no
                  redirect_url: https://test.example.com/test-tech/custom_modal.html
                  payment_type: account_balance
                  isd_code: "880"
                  contact_no: 1966330000
                  email_address: iam@mail.com
                  agency_email: iam@mail.com
      responses:
        '200':
          description: Booking created
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                successful_booking_creation:
                  summary: Successful Booking Creation Response
                  value:
                        "status": "success"
                        "reason": "The booking has been successfully created, and it is associated with the Booking Id ES2604MAYVA3A8."
                        "tracking_id": "11177260822126194QDWJV"
                        "booking_id": "ES2604MAYVA3A8"
                        "general": 
                            "service_type": "ESIM"
                            "service_details": "eSIM booked with 1024 MB with 7 days validity"
                            "booking_remarks": null,
                            "generated_date": "2026-03-04"
                            "partner_id": "1"
                            "master_partner_id": "1"
                            "branch_id": "BDHE001"
                            "tracking_id": "11177260822126194QDWJV"
                            "booking_id": "ES2604MAYVA3A8"
                            "supplier_confirmation_id": "20260304-050606"
                            "supplier_others_id_a": "50606"
                            "supplier_others_id_b": null,
                            "member_id": "2"
                            "book_by": "Nasif Kabir"
                            "ip_address": "203.76.126.194"
                            "timestamp": "1772615659"
                            "last_update": "1772615659"
                            "supplier_invoice_company": null,
                            "supplier_invoice_number": null
                        "eSim": 
                            
                                "iccid": "8900000281278633887"
                                "lpa": "lpa.airalo.com"
                                "qr_code": "LPA:1$lpa.airalo.com$12345"
                                "qr_code_url": "https://sandbox.airalo.com/qr?expires=1858929260&id=391631&signature=a2b9c0d0e11bca365f68f1e5b9a56fe26c6454d00f9e85c30c31836b0e4ce972"
                                "apple_activation_url": "https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=LPA:1$lpa.airalo.com$12345"
                                "apn_type": "automatic"
                                "apn_value": null
                                "is_roaming": true
                        "voucher": 
                                "link": "https://manage.example.com/voucher/hotel-voucher?uid=eyJ0cmFja2luZ19pZCI6IjExMTc3MjYwODIyMTI2MTk0UURXSlYiLCJmdG1fcGFydG5lcl9pZCI6IjEiLCJtYXN0ZXJfcGFydG5lcl9pZCI6IjEiLCJtZW1iZXJfaWQiOiIyIiwibGlua19leHBpcmUiOiIyMDI2LTA2LTAyIn0="
                                "pdf": "https://manage.example.com/voucher/hotel-booking-pdf?uid=eyJ0cmFja2luZ19pZCI6IjExMTc3MjYwODIyMTI2MTk0UURXSlYiLCJmdG1fcGFydG5lcl9pZCI6IjEiLCJtYXN0ZXJfcGFydG5lcl9pZCI6IjEiLCJtZW1iZXJfaWQiOiIyIiwibGlua19leHBpcmUiOiIyMDI2LTA2LTAyIn0="
                        "booking": 
                               "status": "success"
                               "booking_status": "confirm"
                               "booking_supplier_status": "confirm"
                               "voucher_status": "issued"
                               "payment_status": "pending"
                               "auto_cancel_status": "pending"
                               "auto_cancel": "2026-03-04 23:59:59"
                               "auto_cancel_timestamp": "1772647199"
                        "price": 
                              "currency": "BDT"
                              "total_amount": "489.41"
                              "sell_total_price": "489.41"
                              "sales_comission": "0"
                        "eSim_package": 
                            "search_parameter": 
                                "eSim": 
                                    "region_type": "local"
                                    "country_code": "BD"
                                    "plan_type": "data"
                                    "topup_included": "yes"
                        "supplier_uid": "X1AO00084"
                        "partner_id": "1"
                        "short_ref": "xxxx111"
                        "language": "en"
                        -"tracking_id": "117726070533RO1"
                        "supplier_type": "ESIM"
                        "supplier_code": "airalo"
                        "supplier_partner_code": "airalo-1-00084"
                        "data": 
                              "booking_tracking_id": "11177260822126194QDWJV"
                              "package_tracking_id": "11177260822126194QDWJV||fatafati-in-7days-1gb"
                              "supplier": "airalo"
                              "supplier_partner_code": "airalo-1-00084"
                              "supplier_key": "fatafati-in-7days-1gb"
                              "sell_price": 489.41,
                              "sell_currency": "BDT"
                              "package_type": "sim"
                              "title": "1 GB - 7 days"
                              "data": "1 GB"
                              "package_details": 
                                  "data_amount": 1024
                                  "voice_amount": null
                                  "text_amount": null
                                  "validity_days": 7
                                  "is_unlimited": false
                                  "has_fair_usage_policy": false
                              
                              "region_details": 
                                  "id": "bangladesh"
                                  "name": "Bangladesh"
                                  "country_code": "BD"
                                  "image": 
                                      "width": 132
                                      "height": 99
                                      "url": "https://cdn-revamp.airalo.com/images/7633c268-6c9a-47e9-86e0-78ea5f07f1e9.png"
                              "operator_details": 
                                  "image": 
                                      "width": 1035
                                      "height": 653,
                                      "url": "https://cdn-revamp.airalo.com/images/e10c1246-bafa-4998-bfe9-e9e279aa2eb8.png"
                                  
                                  "validity": 
                                      "activation_days": 365,
                                      "topup_days": 180
                                  
                                  "coverage_type": "local"
                                  "esim_type": "prepaid"
                                  "plan_type": "data"
                                  "activation_policy": "first-usage"
                                  "rechargeable": true,
                                  "info": null
                                  "coverage_country": 
                                      
                                          "country": "BD"
                                          "networks": [
                                              "GrameenPhone"
                                          ]
                                          "network_types": [
                                              "4G"
                                          ]
                                  "price": 
                                      "promo_tag": null,
                                      "purchase": 
                                          "total": 
                                              "currency": "BDT"
                                              "amount": 489.41
                                              "before_discount": 489.41
                                              "discount": 0
                                              "point": 0
                                          
                                          "price_breakdown": 
                                              "currency": "BDT"
                                              "total": 489.41
                                              "base_fare": 489.41
                                              "tax": 0
                                              "extra_person_fee": 0
                                              "supplier_sales_comission": null
                                              "payable_at_property": []
                                          "sell": 
                                            "total": 
                                                "currency": "BDT"
                                                "amount": 489.41
                                                "gross_price": 489.41
                                                "platform_fees_or_extra_tax": 0
                                                "point": 0
                                            
                                            "price_breakdown": 
                                                "currency": "BDT"
                                                "total": 489.41
                                                "base_fare": 489.41
                                                "tax": 0
                                                "platform_fees_or_extra_tax": 0
                                                "extra_person_fee": 0
                                                "supplier_sales_comission": null
                                                "payable_at_property": []
                                            "fmg": 
                                                "total": 
                                                    "currency": "USD"
                                                    "amount": 4
                                                
                                                "price_breakdown": 
                                                    "currency": "USD"
                                                    "total": 4,
                                                    "base_fare": 4,
                                                    "tax": 0,
                                                    "extra_person_fee": 0,
                                                    "supplier_sales_comission": null,
                                                    "base_fare_fmg_charge": 0,
                                                    "membership_discount_percentige": 0,
                                                    "membership_discount_amount": 0,
                                                    "final_base_fare_fmg_charge": 0,
                                                    "payable_at_property": []
                                                "supplier": 
                                                    "total": 
                                                        "currency": "USD"
                                                        "amount": 4
                                                    
                                                    "price_breakdown": 
                                                        "currency": "USD"
                                                        "total": 4,
                                                        "base_fare": 4,
                                                        "tax": 0,
                                                        "sales_tax": 0,
                                                        "property_fees": 0,
                                                        "surcharges": 0,
                                                        "service_charge": 0,
                                                        "extra_person_fee": 0,
                                                        "supplier_sales_comission": null,
                                                        "payable_at_property": []
                                                "fair_usage_policy": null,
                                                "qr_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To activate the eSIM by scanning the QR code on your eSIM capable device you need to print or display this QR code on other device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Scan QR code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p><p><b>To top up:</b></p><p><br></p><p>Visit airalo.com/my-esims or if purchased through the Airalo website/app visit “My eSIMs” tab.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>"
                                                "manual_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To manually activate the eSIM on your eSIM capable device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Manually enter the SM-DP+ Address and activation code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p><p><b>To top up:</b></p><p><br></p><p>Visit airalo.com/my-esims or if purchased through the Airalo website/app visit “My eSIMs” tab.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>"
                                                "pax": 
                                                "primary": 
                                                    "guest_name": "MR JASIM KARIMM"
                                                    "guest_email": "test@mail.com"
                                                    "guest_isd_code": null,
                                                    "guest_contact_no": "8801966330000"
                                                    "guest_nationality": ""
                                                "data": 
                                                
                                                    "Id": "7670"
                                                    "timestamp": "1772615491"
                                                    "last_update": "1772615659"
                                                    "entry": "2"
                                                    "entry_n": "Nasif Kabir"
                                                    "ftm_partner_id": "1"
                                                    "master_partner_id": null
                                                    "tracking_id": "11177260822126194QDWJV"
                                                    "service_type": "ESIM"
                                                    "room_number": "1"
                                                    "pax_id": "1"
                                                    "passenger_id": null
                                                    "supplier_pax_id": null
                                                    "pax_type": "ADT"
                                                    "paxType_Identity": null
                                                    "primary_ptc": null
                                                    "ptc_title": null
                                                    "gender": null
                                                    "title": "MR"
                                                    "first_name": "JASIM"
                                                    "last_name": "KARIMM"
                                                    "dob": null
                                                    "pax_age": "30"
                                                    "nationality": null
                                                    "doc_type": null
                                                    "doc_country": null
                                                    "doc_no": null
                                                    "cnic": null
                                                    "doc_dateofexpiry": "2033-12-31"
                                                    "doc_dateofissue": "2022-12-31"
                                                    "frequent_flyer_airlines": null
                                                    "frequent_flyer": null
                                                    "purpose_of_visit": null
                                                    "special_request": null
                                                    "residential_address": null
                                                    "wheelchair_required": null
                                                    "isd_code": "880"
                                                    "contact_no": "1966330000"
                                                    "email_address": "test@mail.com"
                                                    "doc_pics": null
                                                    "seat_number": null
                                                    "baggage_option": null
                                                    "meal_option": null
                                                    "booking_id": null
                                                    "ticket_number": null
                                                    "ticket_status": null
                                                    "ticket_issueTimeStamp": null
                                                    "ticket_supplier_status": null
                                                    "ticket_status_title": null
                                                    "tktNumberValidation": "0"
                                                    "comission_type": null
                                                    "comission_value": "0.00"
                                                    "currency": "BDT"
                                                    "sell_total": "0.00"
                                                    "sell_base_fare": "0.00"
                                                    "sell_tax": "0.00"
                                                    "sell_discount": "0.00"
                                                    "sell_ait": "0"
                                                    "sell_service_charge": "0.00"
                                                    "sell_gross_base_fare": "0.00"
                                                    "sell_gross_tax": "0.00"
                                                    "cus_ticket_issue_charge": "0"
                                                    "price_total": "489.41"
                                                    "price_base_fare": "0.00"
                                                    "price_tax": "0.00"
                                                    "price_taxBreakdown_BD": "0.00"
                                                    "price_taxBreakdown_UT": "0.00"
                                                    "price_taxBreakdown_E5": "0.00"
                                                    "price_taxBreakdown_YQ": "0.00"
                                                    "price_taxBreakdown_YR": "0.00"
                                                    "price_taxBreakdown_Other": "0.00"
                                                    "price_discount": "0"
                                                    "price_ait": "0"
                                                    "price_service_charge": "0.00"
                                                    "price_gross_base_fare": "0.00"
                                                    "price_gross_tax": "0.00"
                                                    "ticket_issue_charge": "0"
                                                    "total_ticket_issue_charge": "0.00"
                                                    "supplier_currency": null
                                                    "currencyExchangeRate": null
                                                    "fmg_total": "489.41"
                                                    "fmg_base_fare": "0.00"
                                                    "fmg_tax": "0.00"
                                                    "fmg_discount": "0"
                                                    "fmg_ait": "0"
                                                    "fmg_service_charge": "0.00"
                                                    "fmg_gross_base_fare": "0.00"
                                                    "fmg_gross_tax": "0.00"
                                                    "fmg_markup_type": null
                                                    "fmg_charge": "0"
                                                    "fmg_revenue": "0.00"
                                                    "supplier_total": "489.41"
                                                    "supplier_base_fare": "489.41"
                                                    "supplier_tax": "0.00"
                                                    "supplier_discount": "0"
                                                    "supplier_ait": "0"
                                                    "supplier_service_charge": "0.00"
                                                    "supplier_gross_base_fare": "0.00"
                                                    "supplier_gross_tax": "0.00"
                                                    "supplier_primary_commission": "0"
                                                    "supplier_segment_feesCalculate": "0"
                                                    "segment_discount_accountPurpose": null
                                                    "supplier_per_segment_discount": "0"
                                                    "supplier_total_segment": "0"
                                                    "supplier_total_segment_discount": "0"
                                                    "gross_fare_total": "489.41"
                                                    "gross_fare_base_fare": "0.00"
                                                    "gross_fare_tax": "0.00"
                                                    "gross_fare_tax_BD": "0.00"
                                                    "gross_fare_tax_UT": "0.00"
                                                    "gross_fare_tax_E5": "0.00"
                                                    "gross_fare_tax_YQ": "0.00"
                                                    "gross_fare_tax_YR": "0.00"
                                                    "gross_fare_tax_Other": "0.00"
                                                    "gross_fare_tax_breakDownJSON": null
                                                    "gross_fare_discount_amount": "0.00"
                                                    "gross_fare_ait_amount": "0.00"
                                                    "gross_fare_service_charge": "0.00"
                                                    "custom_gross_discount": "0.00"
                                                    "custom_gross_charges": "0"
                                                    "custom_gross_service_fee": "0"
                                                    "custom_gross_markup": "0"
                                                    "applicable_comission_title": null
                                                    "discount_comission_ratio": null
                                                    "discount_comission_type": null
                                                    "dynamic_markup_type": null
                                                    "dynamic_markup_title": null
                                                    "dynamic_markup_ratio": null
                                                    "passport_copy": null
                                                    "beneficiary_name": null
                                                    "beneficiary_relation": null
                                                    "beneficiary_cnic": null
                                                    "beneficiary_contact": null
                                                    "beneficiary_address": null
                                                    "spouse_adult_name": null
                                                    "spouse_adult_dob": null
                                                    "spouse_adult_passportno": null
                                                    "child1_name": null
                                                    "child1_dob": null
                                                    "child1_passportno": null
                                                    "child2_name": null
                                                    "child2_dob": null
                                                    "child2_passportno": null
                                                    "child3_name": null
                                                    "child3_dob": null
                                                    "child3_passportno": null
                                                    "child4_name": null
                                                    "child4_dob": null
                                                    "child4_passportno": null
                                                    "policyNumber": null
                                                    "policyVoucher": null
                                                    "isVoid": "0"
                                                    "voidDate": null
                                                    "voidTimestamp": null
                                                    "isRefund": "0"
                                                    "refundDate": null
                                                    "refundTimestamp": null
                                                    "refundSupplerAmount": null
                                                    "refundSupplerPenalty": null
                                                    "refundCharge": null
                                                    "refundAmount": null
                                                    "refundPenalty": null
                                                    "supplement_data": null
                                                "partner": 
                                                    "agency_isd_code": "880"
                                                    "agency_contact_no": "1966330000"
                                                    "agency_email": "iam@mail.com"
                                                    "contact": 
                                                        "person_name": "Nazmus"
                                                        "isd_code": "880"
                                                        "number": "1546776554"
                                                        "email": "cto@example.com.co"
                                                "partner_id": "1"
                                                "master_partner_id": "1"
                                                "partner_type": "MASTER"
                                                "partner_profile_code": "ITT"
                                                "branch_id": "BDHE001"
                                                "brand_name": "Demo Travel Tech"
                                                "tag_line": "Next generation B2B travel reservation portal specially designed only for travel professionals"
                                                "legal_name": "Demo Solution"
                                                "city": "Singapore"
                                                "state": "Singapore"
                                                "postal_code": "049712"
                                                "address": "30 Cecil Street # 19-08 Prudential Tower."
                                                "country": "SA"
                                                "website": "https://example.com/"
                                                "customer_hotline": "2345678"
                                                "support_email": "cto@example.com"
                                                "customer_support_email": "no-reply@example.com"
                                                "priavcy_link": "https://example.com/contact.php"
                                                "terms_link": "https://example.com/contact.php"
                                                "logo_1440_448": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png"
                                                "logo_224_224": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png"
                                                "logo_1024_1024": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png"
                                                "logo_400_400": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png"
                                                "logo_512_512": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png"
                                                "logo_1706_256": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png"
                                                "partner_from_email_address": "no-reply@reservationmastermind.com"
                                                "partner_from_email_full_name": "Demo Travel Tech"
                                          "supplier": 
                                              "info": 
                                                  "supplier_type": null
                                                  "supplier_title": null
                                                  "supplier_code": null
                                                  "supplier_uid": null
                                                  "supplier_partner_code": null
                                                  "supplier_timezone": null
                                                  "currency": null
                                                  "notification_email": null
                                                  "supplier_fare_rules": null
                                                  "airlines_comission": null
                                          "price": 
                                          "supplier_currency": "a"
                                          "purchase": "a"
                                          "fmg_price": "a"
                                          "revenue": 0,
                                          "currency_exchange_data": 
                                              "agent_currency": "BDT"
                                              "partner_currency_data": 
                                                  "from_currency_list": [
                                                      "BDT",
                                                      "GBP",
                                                      "USD",
                                                      "AED",
                                                      "PKR",
                                                      "SGD",
                                                      "EUR",
                                                      "AFN",
                                                      "IRR",
                                                      "SAR",
                                                      "OMR",
                                                      "EGP",
                                                      "IQD"
                                                  ]
                                              "to_currency_list": [
                                                      "BDT",
                                                      "GBP",
                                                      "USD",
                                                      "AED",
                                                      "PKR",
                                                      "SGD",
                                                      "EUR",
                                                      "SAR",
                                                      "IRR",
                                                      "OMR",
                                                      "EGP",
                                                      "IQD"
                                                  ]
                                              "filter_data": 
                                                  "BDT": 
                                                      
                                                          "from_currency": "BDT"
                                                          "to_currency": "BDT"
                                                          "exchange_rate": "1"
                                                          "markup_percentage": "0"
                                                          "markup_fixed": "00"
                                                          "status": "active"
                                                      
                                                          -"from_currency": "BDT"
                                                          -"to_currency": "GBP"
                                                          -"exchange_rate": "0.0061190000"
                                                          -"markup_percentage": "0.00"
                                                          -"markup_fixed": "0.00"
                                                          -"status": "active"
                                              "all_currency": 
                        
                                                      "Id": "1"
                                                      "timestamp": "1752290786"
                                                      "last_update": "1767071574"
                                                      "entry": "1"
                                                      "entry_n": "System"
                                                      "ip": null
                                                      "ftm_partner_id": "1"
                                                      "currency_auto_update": "no"
                                                      "from_currency": "BDT"
                                                      "to_currency": "BDT"
                                                      "exchange_rate": "1"
                                                      "last_day_exchange_rate": "1"
                                                      "markup_percentage": "0"
                                                      "markup_fixed": "00"
                                                      "status": "active"
                                                      "expire_timestamp": null
                                                      "api_last_update": "2025-12-30T04:00:04Z"
                                                      "xe_data_json": null
                                                      "xe_rate_datetime": null
                                              "terms": 
                                                      "status": null
                                                      "text": null
                                                  
                                              
                                              -"terms": 
                                                  "status": null,
                                                  "text": null
                                              
                                              "cancellation_terms": 
                                                  "status": null,
                                                  "text": null
                                              "response_data": 
                                                  "id": 50606
                                                  "code": "20260304-050606"
                                                  "currency": "USD"
                                                  "package_id": "fatafati-in-7days-1gb"
                                                  "quantity": 1,
                                                  "type": "sim"
                                                  "description": "eSIM booked with 1024 MB with 7 days validity"
                                                  "esim_type": "local"
                                                  "validity": 7,
                                                  "package": "Fatafati-1 GB - 7 days"
                                                  "data": "1 GB"
                                                  "price": 4,
                                                  "pricing_model": "net_pricing"
                                                  "created_at": "2026-03-04 09:14:20"
                                              "manual_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To manually activate the eSIM on your eSIM capable device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Manually enter the SM-DP+ Address and activation code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p>"
                                              "qrcode_installation": "<p><br></p><p><b>eSIM name:</b> Fatafati</p><p><br></p><p><b>Coverage: </b>Bangladesh</p><p><br></p><p><b>To activate the eSIM by scanning the QR code on your eSIM capable device you need to print or display this QR code on other device:</b></p><p><br></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Scan QR code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><br></p><p><b>To access Data:</b></p><p><br></p><ol><li>Enable data roaming.</li></ol><p><br></p>"
                                              "installation_guides": 
                                                  "en": "https://www.airalo.com/help/getting-started-with-airalo"
                                              "text": null,
                                              "voice": null,
                                              "net_price": 2.1,
                                              "brand_settings_name": null,
                                              "sims": 
                                                  
                                                      "id": 51488,
                                                      "created_at": "2026-03-04 09:14:20"
                                                      "iccid": "8900000281278633887"
                                                      "lpa": "lpa.airalo.com"
                                                      "imsis": null,
                                                      "matching_id": "12345"
                                                      "qrcode": "LPA:1$lpa.airalo.com$12345"
                                                      "qrcode_url": "https://sandbox.airalo.com/qr?expires=1858929260&id=391631&signature=a2b9c0d0e11bca365f68f1e5b9a56fe26c6454d00f9e85c30c31836b0e4ce972"
                                                      "airalo_code": null,
                                                      "apn_type": "automatic"
                                                      "apn_value": null,
                                                      "is_roaming": true,
                                                      "confirmation_code": null,
                                                      "apn": 
                                                          "ios": 
                                                              "apn_type": "automatic"
                                                              "apn_value": null
                                                          
                                                          "android": 
                                                              "apn_type": "automatic"
                                                              "apn_value": null
                                                          
                                                      
                                                      "msisdn": null,
                                                      "direct_apple_installation_url": "https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=LPA:1$lpa.airalo.com$12345"
                price_validation_failed:
                  summary: Price Validation Failed
                  value:
                     status: "failed"
                     reason: "Price Validation is failed."
                authorization_failed:
                  summary: Authorization Failed (Warning)
                  value:
                    status: "failed"
                    is_warning: "yes"
                    reason: "You do not have authorization to book through . Please reach out to the Support team for assistance."
                    reason_admin: " Book Hotel is Disable"

                    
                                                  
                                              
                                                                                                                        
                                                
                        
                                                              
                                  
                              
                        
                            
        
       
  /esim/data-usage:
    post:
      tags: 
        - eSIM Management
      summary: Get data usage
      operationId: dataUsage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - member_id
                - tracking_id
                - eSim_iccid
              properties:

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"

                tracking_id:
                  type: string
                  description: Booking or eSIM tracking ID
                  example: "11177260822126194QDWJV"

                eSim_iccid:
                  type: string
                  description: eSIM ICCID (Integrated Circuit Card Identifier)
                  example: "8900000281278633887"
              additionalProperties: true
            examples:
              default:
                value:
                  member_id: "2"
                  tracking_id: 11176276126126194RHSGI
                  eSim_iccid: "873000000000040589"
      responses:
        '200':
          description: Usage details
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                default:
                  value:
                    "status": "success"
                    "tracking_id": "11177260822126194QDWJV"
                    "booking_id": "ES2604MAYVA3A8"
                    "eSim_iccid": "8900000281278633887"
                    "instructions": 
                        "status": "ACTIVE"
                        "expire_at": "2026-03-12 06:53:53"
                        "data_amount": 
                            "total": 1024
                            "remaining": 1024
                            "unlimited": false
                        
                        "voice_amount": 
                            "total": 0
                            "remaining": 0
                        
                        "text_amount": 
                            "total": 0,
                            "remaining": 0
                      
                    
       
     
  /esim/booking-details:
    post:
      tags: 
        - eSIM Management
      summary: Get booking details
      operationId: bookingDetails
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - member_id
                - tracking_id
                - booking_id
              properties:

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"

                tracking_id:
                  type: string
                  description: eSIM or booking tracking ID
                  example: "11177260822126194QDWJV"

                booking_id:
                  type: string
                  description: Booking ID for the eSIM package
                  example: "ES2604MAYVA3A8"
              additionalProperties: true
            examples:
              default:
                value:
                  member_id: "2"
                  tracking_id: 11176276126126194RHSGI
                  booking_id: ES2510NOKJAAFK
      responses:
        '200':
          description: Booking info
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                default:
                  value:
                        {
                                "status": "success",
                                "reason": "Booking Details For Tracking Id 119177311942703210WDEPJ",
                                "tracking_id": "119177311942703210WDEPJ",
                                "booking_id": "FL2610MAPSA3D7",
                                "pay_tracking_id": null,
                                "sendGTMEvent": false,
                                "general": {
                                  "service_type": "FLIGHT",
                                  "booking_platform": "B2B",
                                  "service_details": "OneWay From KWI to ADJ Departure date 2026-06-11",
                                  "booking_remarks": null,
                                  "generated_date": "2026-03-10",
                                  "partner_id": "1",
                                  "master_partner_id": "1",
                                  "branch_id": "BDHE001",
                                  "IsCardPayBooking": "no",
                                  "CardPayStatus": "pending",
                                  "CardPayBookingStatus": "processing",
                                  "CardPayBookingStatusExecute": "pending",
                                  "postBookingProcess": "auto",
                                  "book_now_pay_later": "0",
                                  "tracking_id": "119177311942703210WDEPJ",
                                  "booking_id": "FL2610MAPSA3D7",
                                  "airlines_pnr": "XDR1YK",
                                  "supplier_confirmation_id": "XDR1YK",
                                  "order_id_ndc": null,
                                  "order_id_Farelogix": null,
                                  "supplier_others_id_a": "NzA5NDkwODQhWERSMVlLIWZhbHNl",
                                  "supplier_others_id_b": "120735201421",
                                  "externalBookingRefIds": [],
                                  "supplier_booking_pcc": "NzYxMTI1MzQhSjk-",
                                  "supplier_ticketing_pcc": null,
                                  "supplier_provider_code": null,
                                  "supplier_is_gds": "NO",
                                  "carrier": "J9",
                                  "departure_date": "2026-06-11",
                                  "arrival_date": "2026-06-11",
                                  "isDomestic_Flight": false,
                                  "flightSegment": "KWI-ADJ",
                                  "cabinPriceClass": "Economy Value",
                                  "cabinCode": "EV",
                                  "bookingCode": "E",
                                  "departure_airport": "KWI",
                                  "arrival_airport": "ADJ",
                                  "supplier_code": "jazeera_air",
                                  "supplier_uid": "F1JS00114",
                                  "manualAction": {
                                    "Required": "no",
                                    "RequiredCategory": "",
                                    "RequiredNotes": ""
                                  },
                                  "member_id": "19",
                                  "book_by": "test",
                                  "ip_address": "203.76.126.194",
                                  "timestamp": "1773119468",
                                  "last_update": "1773119468"
                                },
                                "changeLogs": [],
                                "voucher": {
                                  "can_view_download": "no",
                                  "link": "https://example.com/voucher/flight?q=MTE5MTc3MzExOTQyNzAzMjEwV0RFUEo=",
                                  "pdf": "https://example.com/voucher?q=eyJ0cmFja2luZ19pZCI6IjExOTE3NzMxMTk0MjcwMzIxMFdERVBKIiwicHJpY2UiOmZhbHNlLCJsaW5rX2V4cGlyZSI6IjIwMjYtMDYtMDgifQ==",
                                  "pdf_with_price": "https://example.com/voucher?q=eyJ0cmFja2luZ19pZCI6IjExOTE3NzMxMTk0MjcwMzIxMFdERVBKIiwicHJpY2UiOnRydWUsImxpbmtfZXhwaXJlIjoiMjAyNi0wNi0wOCJ9",
                                  "supplier_voucher_link": "",
                                  "pax_voucher": [
                                    {
                                      "link": "https://example.com/voucher?q=eyJ0cmFja2luZ19pZCI6IjExOTE3NzMxMTk0MjcwMzIxMFdERVBKIiwicGF4X2lkIjoiMSIsInRpY2tldCI6dHJ1ZX0=",
                                      "pax_id": "1",
                                      "pax_type": "ADT",
                                      "first_name": "AMIR",
                                      "last_name": "test"
                                    }
                                  ],
                                  "show_supplier_option": "yes",
                                  "url_value": null,
                                  "flight_version": "1",
                                  "hotel_version": "1",
                                  "base_url": null,
                                  "qr_code": "hide"
                                },
                                "action": {
                                  "bookingStatus": "Hold",
                                  "bookingStatusColor": "#FD7E14",
                                  "bookingStatusInfo": "Hold",
                                  "supplier_is_gds": "NO",
                                  "view_gds_ticket": "NO",
                                  "cancel_booking": "YES",
                                  "void_ticket": "NO",
                                  "cancel_ticket": "NO",
                                  "split_booking": "NO",
                                  "issue_ticket": "YES",
                                  "issue_ticket_card": "YES",
                                  "re_issue_ticket": "NO",
                                  "issue_ticket_partial_pay": "NO",
                                  "refund_quote": "NO",
                                  "sync_booking": "YES",
                                  "booking_info_update": "NO",
                                  "ticket_issue_date": "",
                                  "applied_flight_departure_date": "2026-06-10",
                                  "flight_departure_date": "2026-06-11",
                                  "current_yyyy_mm_dd": "2026-03-10",
                                  "airlines_permission": {
                                    "cancel_booking_option": "yes",
                                    "cancel_ticket_option": "no",
                                    "flight_confirm_cancel": "active"
                                  },
                                  "partner_permission": {
                                    "auto_cancel": "active",
                                    "booking_cancel_otp": "yes",
                                    "issue_ticket": "active",
                                    "split_ticket": "disable",
                                    "flight_confirm_cancel": "active",
                                    "ticket_reissue": "active"
                                  }
                                },
                                "voidRefundData": [],
                                "reIssueData": [],
                                "booking": {
                                  "status": "success",
                                  "bookingStatus": "Hold",
                                  "bookingStatusColor": "#FD7E14",
                                  "bookingStatusInfo": "Hold",
                                  "booking_status": "hold",
                                  "booking_supplier_status": "hold",
                                  "ticket_status": "queue",
                                  "ticketMsg": null,
                                  "payment_status": "pending",
                                  "auto_cancel_status": "pending",
                                  "partner_timezone": "Asia/Dhaka",
                                  "syncTimeLimit": "1",
                                  "auto_cancel": "2026-03-10 11:26:08",
                                  "auto_cancel_timestamp": "1773120368",
                                  "ticketingTimeLimit": "2026-03-10 11:26:08",
                                  "supplierTimeLimit": null,
                                  "supplierTimeLimitTimezone": null,
                                  "show_hold_booking_time_limit": "yes",
                                  "show_hold_booking_time_limit_msg": "Thanks For Booking with us.",
                                  "OnlineCheckIn": null,
                                  "OnlineCheckInText": null
                                },
                                "price": {
                                  "currency": "BDT",
                                  "total_amount": "130950.62",
                                  "sell_total_price": "141092.48",
                                  "sales_comission": null,
                                  "applied_comission_ratio": "0",
                                  "customer_markup_policy": null,
                                  "partial_pay": {
                                    "isPartialPay": "no",
                                    "isPartialPayPossible": "",
                                    "isPartialDuePaid": "no",
                                    "currency": "BDT",
                                    "pay_now": null,
                                    "due_amount": null,
                                    "due_date": null,
                                    "due_date_timestamp": "",
                                    "supplier_amount": null,
                                    "supplier_currency": null,
                                    "markup_charge": null
                                  },
                                  "cancel_reissue_charges": {
                                    "data": null
                                  }
                                },
                                "bookingPaymentRequestDtata": [],
                                "syncData": {
                                  "Segment": null,
                                  "Travelers": null,
                                  "Price": [],
                                  "FareRules": [],
                                  "FlightFlown": [],
                                  "SSR": []
                                },
                                "flight": {
                                  "modify": {
                                    "baggage": "disable",
                                    "seat": "disable",
                                    "meal": "disable",
                                    "itinerary": "active",
                                    "doc_update": "active",
                                    "contact_update": "active"
                                  },
                                  "search_parameter": {
                                    "journey_type": "OneWay",
                                    "segment": [
                                      {
                                        "departure_airport_type": "AIRPORT",
                                        "departure_airport": "KWI",
                                        "arrival_airport_type": "AIRPORT",
                                        "arrival_airport": "AMM",
                                        "departure_date": "2026-06-11",
                                        "departure_time": "anytime",
                                        "departure_time_within": "anytime",
                                        "booking_class": "Economy",
                                        "stop": "any",
                                        "alliance": {
                                          "include": [],
                                          "exclude": []
                                        },
                                        "country": {
                                          "include": [],
                                          "exclude": []
                                        },
                                        "airlines": {
                                          "include": [],
                                          "exclude": []
                                        }
                                      }
                                    ],
                                    "travelers_adult": 1,
                                    "travelers_child": 0,
                                    "travelers_child_age": [],
                                    "travelers_infants": 0,
                                    "travelers_infants_age": [],
                                    "fare_type": [],
                                    "fare_option": [],
                                    "content_type": "all_content",
                                    "ptc_option": [],
                                    "agency_ethnic_list": [],
                                    "preferred_carrier": [],
                                    "non_stop_flight": "any",
                                    "baggage_option": "any",
                                    "booking_class": "Economy",
                                    "supplier_uid": "F1JS00114",
                                    "partner_id": "1",
                                    "language": "en",
                                    "short_ref": "6f6720a66cd791d1ca15ba471eccc6804d3cae75b3d1c13a10ad071f1a856963",
                                    "version": 1,
                                    "team_profile": [
                                      null
                                    ],
                                    "RefundableOnly": false,
                                    "BestFareOnly": false
                                  },
                                  "departure": {
                                    "date": "2026-06-11",
                                    "time": "09:10"
                                  },
                                  "arrival": {
                                    "date": "2026-06-11",
                                    "time": "11:15"
                                  },
                                  "departure_airport": "KWI",
                                  "departure_city": "Kuwait City",
                                  "arrival_airport": "ADJ",
                                  "arrival_city": "Amman",
                                  "flight_group": [
                                    {
                                      "no_of_stops_title": "Direct Flight",
                                      "no_of_stops": "0",
                                      "flight_time": "PT0H0M",
                                      "transit_time": "",
                                      "routes": [
                                        {
                                          "air_segment_key": "Sjl_IDI1N34gfn5LV0l_MDYvMTEvMjAyNiAwOToxMH5BREp_MDYvMTEvMjAyNiAxMToxNX5_",
                                          "flightSegmentID": null,
                                          "segmentStatus": null,
                                          "segmentStatusTitle": null,
                                          "segmentPNR": null,
                                          "marriageGroup": null,
                                          "origin": "KWI",
                                          "departure_time": "2026-06-11T09:10",
                                          "origin_terminal": "",
                                          "origin_airport": {
                                            "name": "Kuwait International Airport",
                                            "city": "Kuwait City",
                                            "country": "Kuwait",
                                            "timezone": "Asia/Kuwait"
                                          },
                                          "destination": "ADJ",
                                          "arrival_time": "2026-06-11T11:15",
                                          "destination_terminal": "",
                                          "destination_airport": {
                                            "name": "Amman Civil Airport",
                                            "city": "Amman",
                                            "country": "Jordan",
                                            "timezone": "Asia/Amman"
                                          },
                                          "flight_date": "2026-06-11",
                                          "flight_time": "PT2H5M",
                                          "distance": "",
                                          "lay_over": "not-applicable",
                                          "lay_over_date": "not-applicable",
                                          "aircraft": {
                                            "code": "320",
                                            "name": "NE2",
                                            "picture": "320.png"
                                          },
                                          "codeshare": null,
                                          "operating": {
                                            "carrier": "J9",
                                            "carrier_name": "Jazeera Airways",
                                            "carrier_logo": "J9.png",
                                            "flight_number": ""
                                          },
                                          "marketing": {
                                            "carrier": "J9",
                                            "carrier_name": "Jazeera Airways",
                                            "carrier_logo": "J9.png",
                                            "flight_number": ""
                                          },
                                          "booking_class": {
                                            "upsellTitle": "",
                                            "cabin_class": "Economy VALUE",
                                            "cabin_code": "EV",
                                            "booking_code": "EV",
                                            "fareBasisCode": "",
                                            "meal_code": ""
                                          },
                                          "baggages": {
                                            "checked": {
                                              "ADT": {
                                                "ptc_title": "ADT",
                                                "passenger_type": "Adult",
                                                "baggage_type": "checked",
                                                "pieceCount": 1,
                                                "weight": 20,
                                                "unit": "kg",
                                                "title": "20 kg / 1 piece"
                                              }
                                            },
                                            "carry_on": {
                                              "ADT": {
                                                "ptc_title": "ADT",
                                                "passenger_type": "Adult",
                                                "baggage_type": "carry_on",
                                                "pieceCount": 1,
                                                "weight": 7,
                                                "unit": "kg",
                                                "title": "7 kg / 1 piece"
                                              }
                                            }
                                          },
                                          "ghostSegmentJSON": null
                                        }
                                      ]
                                    }
                                  ],
                                  "price": {
                                    "purchase": {
                                      "total": {
                                        "currency": "BDT",
                                        "amount": 130950.62
                                      },
                                      "base_fare": {
                                        "currency": "BDT",
                                        "amount": 126773.32
                                      },
                                      "tax": {
                                        "currency": "BDT",
                                        "amount": 3576.2
                                      },
                                      "price_breakdown": [
                                        {
                                          "passenger_id": "1",
                                          "passenger_type": "ADT",
                                          "primary_ptc": null,
                                          "ptc_title": null,
                                          "passenger_total": 1,
                                          "total": {
                                            "currency": "BDT",
                                            "amount": "130950.62"
                                          },
                                          "base_fare": {
                                            "currency": "BDT",
                                            "amount": "126773.32"
                                          },
                                          "tax": {
                                            "currency": "BDT",
                                            "amount": "3576.2"
                                          },
                                          "discount": "1752.21",
                                          "ait": "876.1",
                                          "service_charge": "41487.13",
                                          "gross_base_fare": "87639.50",
                                          "gross_tax": "2700.10"
                                        }
                                      ]
                                    },
                                    "sell": {
                                      "total": {
                                        "currency": "BDT",
                                        "amount": 141092.48
                                      },
                                      "base_fare": {
                                        "currency": "BDT",
                                        "amount": 136915.18
                                      },
                                      "tax": {
                                        "currency": "BDT",
                                        "amount": 3576.2
                                      },
                                      "ticket_issue_charge": 0,
                                      "price_breakdown": [
                                        {
                                          "passenger_id": "1",
                                          "passenger_type": "ADT",
                                          "primary_ptc": null,
                                          "ptc_title": null,
                                          "passenger_total": 1,
                                          "total": {
                                            "currency": "BDT",
                                            "amount": "141092.48"
                                          },
                                          "base_fare": {
                                            "currency": "BDT",
                                            "amount": "136915.18"
                                          },
                                          "tax": {
                                            "currency": "BDT",
                                            "amount": "3576.2"
                                          },
                                          "cus_ticket_issue_charge": "0",
                                          "discount": "4287.68",
                                          "ait": "876.1",
                                          "service_charge": "54164.46",
                                          "gross_base_fare": "87639.50",
                                          "gross_tax": "2700.10"
                                        }
                                      ]
                                    },
                                    "fmg": {
                                      "total": {
                                        "currency": "USD",
                                        "amount": 1076.18
                                      },
                                      "base_fare": {
                                        "currency": "USD",
                                        "amount": 1041.85
                                      },
                                      "tax": {
                                        "currency": "USD",
                                        "amount": 29.39
                                      },
                                      "ticket_issue_charge": 300,
                                      "price_breakdown": [
                                        {
                                          "passenger_id": "1",
                                          "passenger_type": "ADT",
                                          "primary_ptc": null,
                                          "ptc_title": null,
                                          "passenger_total": 1,
                                          "total": {
                                            "currency": "USD",
                                            "amount": "1076.18"
                                          },
                                          "base_fare": {
                                            "currency": "USD",
                                            "amount": "1041.85"
                                          },
                                          "tax": {
                                            "currency": "USD",
                                            "amount": "29.39"
                                          },
                                          "ticket_issue_charge": "300",
                                          "discount": "14.4",
                                          "ait": "7.2",
                                          "service_charge": "340.95",
                                          "fmg_charge": "0",
                                          "gross_base_fare": "720.24",
                                          "gross_tax": "22.19"
                                        }
                                      ]
                                    },
                                    "supplier": {
                                      "total": {
                                        "currency": "USD",
                                        "amount": 754.57
                                      },
                                      "base_fare": {
                                        "currency": "USD",
                                        "amount": 720.24
                                      },
                                      "tax": {
                                        "currency": "USD",
                                        "amount": 29.39
                                      },
                                      "price_breakdown": [
                                        {
                                          "passenger_id": "1",
                                          "passenger_type": "ADT",
                                          "primary_ptc": null,
                                          "ptc_title": null,
                                          "passenger_total": 1,
                                          "total": {
                                            "currency": "USD",
                                            "amount": "754.57"
                                          },
                                          "base_fare": {
                                            "currency": "USD",
                                            "amount": "720.24"
                                          },
                                          "tax": {
                                            "currency": "USD",
                                            "amount": "29.39"
                                          },
                                          "discount": "0",
                                          "ait": "7.2",
                                          "service_charge": "4.94",
                                          "gross_base_fare": "720.24",
                                          "gross_tax": "22.19",
                                          "primary_commission": null,
                                          "per_segment_discount": "0",
                                          "total_segment": "1",
                                          "total_segment_discount": "0",
                                          "applicable_comission_title": ""
                                        }
                                      ]
                                    },
                                    "gross": {
                                      "total": {
                                        "currency": "USD",
                                        "amount": 742.43
                                      },
                                      "base_fare": {
                                        "currency": "USD",
                                        "amount": 720.24
                                      },
                                      "tax": {
                                        "currency": "USD",
                                        "amount": 22.19
                                      },
                                      "price_breakdown": [
                                        {
                                          "passenger_id": "1",
                                          "passenger_type": "ADT",
                                          "primary_ptc": null,
                                          "ptc_title": null,
                                          "passenger_total": 1,
                                          "total": {
                                            "currency": "USD",
                                            "amount": "742.43"
                                          },
                                          "base_fare": {
                                            "currency": "USD",
                                            "amount": "720.24"
                                          },
                                          "tax": {
                                            "currency": "USD",
                                            "amount": "22.19"
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  "customer_markup_policy": null,
                                  "baggage": null,
                                  "fare_rules": {
                                    "refundable_data": null,
                                    "refundable": "non-refundable",
                                    "change_before_departure": "not-available"
                                  },
                                  "read_ssr": []
                                },
                                "additional_baggage": [],
                                "additional_meal": [],
                                "pax_seat_plan": [],
                                "baggage_protection": [],
                                "additional_services": [],
                                "discount_data": [],
                                "pax": {
                                  "primary": {
                                    "guest_name": "MR AMIR test",
                                    "guest_email": "test@example.com",
                                    "guest_isd_code": null,
                                    "guest_contact_no": "8801901402813",
                                    "guest_nationality": "BD"
                                  },
                                  "data": [
                                    {
                                      "Id": "8035",
                                      "timestamp": "1773119458",
                                      "last_update": "1773119458",
                                      "entry": "19",
                                      "entry_n": "test",
                                      "ftm_partner_id": "1",
                                      "master_partner_id": null,
                                      "tracking_id": "119177311942703210WDEPJ",
                                      "service_type": "FLIGHT",
                                      "room_number": "1",
                                      "pax_id": "1",
                                      "passenger_id": "1",
                                      "supplier_pax_id": "1",
                                      "pax_type": "ADT",
                                      "paxType_Identity": "ADT",
                                      "primary_ptc": "ADT",
                                      "ptc_title": "Adult",
                                      "gender": "M",
                                      "title": "MR",
                                      "first_name": "AMIR",
                                      "last_name": "test",
                                      "dob": "1996-03-10",
                                      "pax_age": "30",
                                      "nationality": "BD",
                                      "doc_type": "passport",
                                      "doc_country": "BD",
                                      "doc_no": "RT43TSF",
                                      "cnic": null,
                                      "doc_dateofexpiry": "2031-03-10",
                                      "doc_dateofissue": "2026-02-10",
                                      "frequent_flyer_airlines": null,
                                      "frequent_flyer": "",
                                      "purpose_of_visit": null,
                                      "special_request": "",
                                      "residential_address": null,
                                      "wheelchair_required": "no",
                                      "isd_code": "880",
                                      "contact_no": "",
                                      "email_address": "test@example.com",
                                      "doc_pics": null,
                                      "seat_number": null,
                                      "baggage_option": null,
                                      "meal_option": null,
                                      "booking_id": null,
                                      "ticket_number": null,
                                      "ticket_status": "queue",
                                      "ticket_issueTimeStamp": null,
                                      "ticket_supplier_status": null,
                                      "ticket_status_title": null,
                                      "tktNumberValidation": "0",
                                      "comission_type": "",
                                      "comission_value": "",
                                      "currency": "BDT",
                                      "sell_total": "141092.48",
                                      "sell_base_fare": "136915.18",
                                      "sell_tax": "3576.2",
                                      "sell_discount": "4287.68",
                                      "sell_ait": "876.1",
                                      "sell_service_charge": "54164.46",
                                      "sell_gross_base_fare": "87639.50",
                                      "sell_gross_tax": "2700.10",
                                      "cus_ticket_issue_charge": "0",
                                      "price_total": "130950.62",
                                      "price_base_fare": "126773.32",
                                      "price_tax": "3576.2",
                                      "price_taxBreakdown_BD": "0",
                                      "price_taxBreakdown_UT": "0",
                                      "price_taxBreakdown_E5": "0",
                                      "price_taxBreakdown_YQ": "0",
                                      "price_taxBreakdown_YR": "0",
                                      "price_taxBreakdown_Other": "0",
                                      "price_discount": "1752.21",
                                      "price_ait": "876.1",
                                      "price_service_charge": "41487.13",
                                      "price_gross_base_fare": "87639.50",
                                      "price_gross_tax": "2700.10",
                                      "ticket_issue_charge": "300",
                                      "total_ticket_issue_charge": "300.00",
                                      "supplier_currency": "USD",
                                      "currencyExchangeRate": "121.68",
                                      "fmg_total": "1076.18",
                                      "fmg_base_fare": "1041.85",
                                      "fmg_tax": "29.39",
                                      "fmg_discount": "14.4",
                                      "fmg_ait": "7.2",
                                      "fmg_service_charge": "340.95",
                                      "fmg_gross_base_fare": "720.24",
                                      "fmg_gross_tax": "22.19",
                                      "fmg_markup_type": null,
                                      "fmg_charge": "0",
                                      "fmg_revenue": "321.61",
                                      "supplier_total": "754.57",
                                      "supplier_base_fare": "720.24",
                                      "supplier_tax": "29.39",
                                      "supplier_discount": "0",
                                      "supplier_ait": "7.2",
                                      "supplier_service_charge": "4.94",
                                      "supplier_gross_base_fare": "720.24",
                                      "supplier_gross_tax": "22.19",
                                      "supplier_primary_commission": null,
                                      "supplier_segment_feesCalculate": null,
                                      "segment_discount_accountPurpose": null,
                                      "supplier_per_segment_discount": "0",
                                      "supplier_total_segment": "1",
                                      "supplier_total_segment_discount": "0",
                                      "gross_fare_total": "742.43",
                                      "gross_fare_base_fare": "720.24",
                                      "gross_fare_tax": "22.19",
                                      "gross_fare_tax_BD": "0",
                                      "gross_fare_tax_UT": "0",
                                      "gross_fare_tax_E5": "0",
                                      "gross_fare_tax_YQ": "0",
                                      "gross_fare_tax_YR": "0",
                                      "gross_fare_tax_Other": "0",
                                      "gross_fare_tax_breakDownJSON": "[]",
                                      "gross_fare_discount_amount": "0",
                                      "gross_fare_ait_amount": "0",
                                      "gross_fare_service_charge": "4.94",
                                      "custom_gross_discount": "0.00",
                                      "custom_gross_charges": "0",
                                      "custom_gross_service_fee": "0",
                                      "custom_gross_markup": "0",
                                      "applicable_comission_title": "",
                                      "discount_comission_ratio": "0",
                                      "discount_comission_type": "",
                                      "dynamic_markup_type": null,
                                      "dynamic_markup_title": "",
                                      "dynamic_markup_ratio": null,
                                      "passport_copy": null,
                                      "beneficiary_name": null,
                                      "beneficiary_relation": null,
                                      "beneficiary_cnic": null,
                                      "beneficiary_contact": null,
                                      "beneficiary_address": null,
                                      "spouse_adult_name": null,
                                      "spouse_adult_dob": null,
                                      "spouse_adult_passportno": null,
                                      "child1_name": null,
                                      "child1_dob": null,
                                      "child1_passportno": null,
                                      "child2_name": null,
                                      "child2_dob": null,
                                      "child2_passportno": null,
                                      "child3_name": null,
                                      "child3_dob": null,
                                      "child3_passportno": null,
                                      "child4_name": null,
                                      "child4_dob": null,
                                      "child4_passportno": null,
                                      "policyNumber": null,
                                      "policyVoucher": null,
                                      "isVoid": "0",
                                      "voidDate": null,
                                      "voidTimestamp": null,
                                      "isRefund": "0",
                                      "refundDate": null,
                                      "refundTimestamp": null,
                                      "refundSupplerAmount": null,
                                      "refundSupplerPenalty": null,
                                      "refundCharge": null,
                                      "refundAmount": null,
                                      "refundPenalty": null,
                                      "supplement_data": null
                                    }
                                  ]
                                },
                                "invoice_data": [],
                                "refund_status_list": [
                                  "requested",
                                  "processing",
                                  "refunded"
                                ],
                                "refund_data": [],
                                "partner": {
                                  "agency_isd_code": "880",
                                  "agency_contact_no": "1901402813",
                                  "agency_email": "test@example.com",
                                  "partner_id": "1",
                                  "master_partner_id": "1",
                                  "partner_type": "MASTER",
                                  "partner_service_type": "B2B",
                                  "partner_profile_code": "ITT",
                                  "branch_id": "BDHE001",
                                  "legal_name": "Demo Solution",
                                  "brand_name": "Demo Travel Tech",
                                  "civil_aviation_certificate": null,
                                  "iata_number": null,
                                  "city": "Singapore",
                                  "state": "Singapore",
                                  "postal_code": "049712",
                                  "address": "30 Cecil Street # 19-08 Prudential Tower.",
                                  "country": "SA",
                                  "contact_number": "2345678",
                                  "website": "https://example.com/",
                                  "contacts": {
                                    "person_name": "Nazmus",
                                    "number": "8801546776554",
                                    "email": "cto@example.com.co"
                                  },
                                  "master_partner": null,
                                  "customer_hotline": "2345678",
                                  "support_email": "cto@example.com",
                                  "customer_support_email": "no-reply@example.com",
                                  "priavcy_link": "https://example.com/contact.php",
                                  "terms_link": "https://example.com/contact.php",
                                  "logo_1440_448": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png",
                                  "logo_224_224": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png",
                                  "logo_1024_1024": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png",
                                  "logo_400_400": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png",
                                  "logo_512_512": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png",
                                  "logo_1706_256": "https://cdn.demo.com/example/partner-brand-logo/1101760003818989887.png",
                                  "brand_color": "#0d0a64",
                                  "brand_text_color": "#ffffff",
                                  "partner_from_email_address": "no-reply@reservationmastermind.com",
                                  "partner_from_email_full_name": "Demo Travel Tech"
                                },
                                "supplier": {
                                  "info": {
                                    "supplier_type": "FLIGHT",
                                    "supplier_title": "Jazeera Airways",
                                    "supplier_code": "jazeera_air",
                                    "supplier_uid": "F1JS00114",
                                    "supplier_partner_code": "jazeera_air-1-00114",
                                    "supplier_timezone": null,
                                    "currency": null,
                                    "logo": null,
                                    "notification_email": null,
                                    "supplier_fare_rules": null,
                                    "airlines_comission": null
                                  }
                                },
                                "terms": {
                                  "status": null,
                                  "text": null
                                },
                                "cancellation_terms": {
                                  "status": null,
                                  "text": null
                                },
                                "special_notice_status": "disable",
                                "special_notice": null
                              }
       
        
  /esim/installation-instructions:
    post:
      tags: 
        - eSIM Booking
      summary: Get installation instructions
      operationId: installationInstructions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - member_id
                - tracking_id
                - eSim_iccid
              properties:

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "1"

                tracking_id:
                  type: string
                  description: eSIM or booking tracking ID
                  example: "11177260822126194QDWJV"

                eSim_iccid:
                  type: string
                  description: ICCID of the eSIM
                  example: "8900000281278633887"

                preferred_language:
                  type: string
                  description: Preferred response language.
                  example: "en"
              additionalProperties: true
            examples:
              default:
                value:
                  member_id: "1"
                  tracking_id: 11176276126126194RHSGI
                  eSim_iccid: "873000000000040589"
                  preferred_language: en
      responses:
        '200':
          description: Instructions
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                default:
                  value:
                    "status": "success"
                    "tracking_id": "11177260822126194QDWJV"
                    "booking_id": "ES2604MAYVA3A8"
                    "eSim_iccid": "8900000281278633887"
                    "instructions": 
                        "language": "EN"
                        "platforms": 
                            "ios":
                    "version": "15.0,14.0,13.0,12.0"
                    "model": null,
                    "direct_installation_url": "https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=LPA:1$lpa.airalo.com$12345"
                    "installation": 
                        "via_qr": 
                            "steps": 
                              "Go to “Settings”, tap “Cellular/Mobile Data”, then tap “Add Cellular/Data Plan” on your device."
                              
                            "qr_code_data": "LPA:1$lpa.airalo.com$12345"
                            "qr_code_url": "https://sandbox.airalo.com/qr?expires=1858929260&id=391631&signature=a2b9c0d0e11bca365f68f1e5b9a56fe26c6454d00f9e85c30c31836b0e4ce972"
                        "manual": 
                            "steps": 
                                "Go to “Settings”, tap “Cellular/Mobile Data”, then tap “Add Cellular/Data Plan” on your device."
                                
                        "network_setup": 
                            "steps": [
                                "Go to “Cellular/Mobile Data”, then select the recently downloaded eSIM on your device. Enable the “Turn On This Line” toggle, then select your new eSIM plan for cellular/mobile data."
                                
                            ]
                            "apn_type": "automatic"
                            "apn_value": null,
                            "is_roaming": true
                                
                                
                               
                            
                        
       
  /esim/compatible-devices:
    post:
      tags: 
        - eSIM Search & Inquiry
      summary: Get compatible devices
      operationId: compatibleDevices
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - member_id
              properties:
                member_id:
                  type: integer
                  description: Logged-in user member ID
                  example: 1
              additionalProperties: true
            examples:
              default:
                value:
                  member_id: 1
      responses:
        '200':
          description: List of devices
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                Successful_response:
                  value:
                    "status": "success"
                    "reason": "Compatible devices data found."
                    "compatible_devices": 
                        
                            "model": "X20"
                            "os": "android"
                            "brand": "ABCTECH"
                            "name": "X20"      
  
  /esim/topup-packages:
    post:
      tags: 
        - Top-up Services
      summary: Get top-up packages
      operationId: topupPackages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - member_id
                - tracking_id
                - eSim_iccid
              properties:

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"

                tracking_id:
                  type: string
                  description: Booking or eSIM tracking ID
                  example: "11177260822126194QDWJV"

                eSim_iccid:
                  type: string
                  description: eSIM ICCID (Integrated Circuit Card Identifier)
                  example: "8900000281278633887"
              additionalProperties: true
            examples:
              default:
                value:
                  member_id: "1"
                  tracking_id: 11176328969726194MHHQA
                  eSim_iccid: "873000000000042014"
      responses:
        '200':
          description: Packages
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                default:
                  value:
                    "status": "success"
                    "reason": "A total of 12 topup packages were found for your eSim."
                    "topup_tracking_id": "TUP117726938847PY1"
                    "request_data": 
                        "member_id": "1"
                        "tracking_id": "11177260822126194QDWJV"
                        "eSim_iccid": "8900000281278633887"
                    "total_esim_package": 12,
                    "data": 
                        
                            "package_id": "8900000281278633887||fatafati-in-7days-1gb-topup"
                            "topup_tracking_id": "TUP117726938847PY1"
                            "booking_tracking_id": "11177260822126194QDWJV"
                            "eSim_iccid": "8900000281278633887"
                            "supplier_key": "fatafati-in-7days-1gb-topup"
                            "type": "topup"
                            "sell_price": 489.12,
                            "sell_currency": "BDT"
                            "title": "1 GB - 7 days"
                            "package_details": 
                                "data_amount": 1024
                                "voice_amount": null
                                "text_amount": null
                                "validity_days": 7
                                "is_unlimited": false
                    "price": 
                        "promo_tag": null
                        "purchase": 
                            "total": 
                                "currency": "BDT"
                                "amount": 489.12,
                                "before_discount": 489.12,
                                "discount": 0,
                                "point": 0
                            
                            "price_breakdown": 
                                "currency": "BDT"
                                "total": 489.12,
                                "base_fare": 489.12,
                                "tax": 0,
                                "extra_person_fee": 0,
                                "supplier_sales_comission": null,
                                "payable_at_property": []
                    "sell": 
                    "total": 
                        "currency": "BDT"
                        "amount": 489.12,
                        "gross_price": 489.12,
                        "platform_fees_or_extra_tax": 0,
                        "point": 0
                    
                    "price_breakdown": 
                        "currency": "BDT"
                        "total": 489.12,
                        "base_fare": 489.12,
                        "tax": 0,
                        "platform_fees_or_extra_tax": 0,
                        "extra_person_fee": 0,
                        "supplier_sales_comission": null,
                        "payable_at_property": []
                  
                  "fmg": 
                    "total": 
                        "currency": "USD"
                        "amount": 4
                    
                    "price_breakdown": 
                        "currency": "USD"
                        "total": 4,
                        "base_fare": 4,
                        "tax": 0,
                        "extra_person_fee": 0,
                        "supplier_sales_comission": null,
                        "base_fare_fmg_charge": 0,
                        "membership_discount_percentige": 0,
                        "membership_discount_amount": 0,
                        "final_base_fare_fmg_charge": 0,
                        "payable_at_property": []
                        
                  "supplier": 
                    "total": 
                        "currency": "USD"
                        "amount": 4
                    
                    "price_breakdown": 
                        "currency": "USD"
                        "total": 4,
                        "base_fare": 4,
                        "tax": 0,
                        "sales_tax": 0,
                        "property_fees": 0,
                        "surcharges": 0,
                        "service_charge": 0,
                        "extra_person_fee": 0,
                        "supplier_sales_comission": null,
                        "payable_at_property": 
                  "short_info": null
                  "package_id": "8900000281278633887||fatafati-in-15days-2gb-topup"
                  "topup_tracking_id": "TUP117726938847PY1"
                  "booking_tracking_id": "11177260822126194QDWJV"
                  "eSim_iccid": "8900000281278633887"
                  "supplier_key": "fatafati-in-15days-2gb-topup"
                  "type": "topup"
                  "sell_price": 794.81,
                  "sell_currency": "BDT"
                  "title": "2 GB - 15 days"
                  "package_details": 
                        "data_amount": 2048,
                        "voice_amount": null,
                        "text_amount": null,
                        "validity_days": 15,
                        "is_unlimited": false
                  "filter": 
                    "validity_days": 
                        7,
                        15,
                        30,
                        3,
                        5,
                        10
                    
                  "min_price": 489
                  "max_price": 12105
                
                "search_result_logs_url": "https://temp-logs.example.com/esim_logs/11177260822126194QDWJV/TUP117726938847PY1/topup_search_result.json"
            
                    
                            
       
        
  /esim/topup-booking:
    post:
      tags: 
        - Top-up Services
      summary: Create top-up booking
      operationId: topupBooking
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - booking_tracking_id
                - topup_tracking_id
                - package_id
                - member_id
                - redirect_url
                - payment_type
                - isd_code
                - contact_no
                - email_address
              properties:
                booking_tracking_id:
                  type: string
                  description: Booking tracking ID from validation
                  example: "11177260822126194QDWJV"
                topup_tracking_id:
                  type: string
                  description: Top-up tracking ID
                  example: "TUP117726938847PY1"
                package_id:
                  type: string
                  description: Package identifier including ICCID and plan
                  example: "8900000281278633887||asialink-7days-1gb-topup"
                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"
                redirect_url:
                  type: string
                  description: URL to redirect after payment
                  example: "https://itttest.example.com/booking-details/e-sim?tracking_id=11176681417103210LPBXA&"
                payment_type:
                  type: string
                  description: Payment type (account_balance / card / onlinepayment)
                  example: "onlinepayment"
                isd_code:
                  type: string
                  description: Country ISD code
                  example: "880"
                contact_no:
                  type: string
                  description: Contact number
                  example: "1966330000"
                email_address:
                  type: string
                  description: Customer email address
                  example: "iam@example.com"
                agency_email:
                  type: string
                  description: Agency email address (optional)
                  example: "iam@example.com"
              additionalProperties: true
            examples:
              default:
                value:
                  booking_tracking_id: 11176681417103210LPBXA
                  topup_tracking_id: TUP11766825537SLD1
                  package_id: 8900000644360253498||asialink-7days-1gb-topup
                  member_id: "2"
                  redirect_url: https://itttest.example.com/booking-details/e-sim?tracking_id=11176681417103210LPBXA&
                  payment_type: onlinepayment
                  isd_code: "880"
                  contact_no: 1966330000
                  email_address: iam@saaqeb.com
                  agency_email: iam@saaqeb.com
      responses:
        '200':
          description: Top-up booking created
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                
                       Status: Success
                                  
                                  
                               

        
        
  /esim/topup-history:
    post:
      tags: 
        - Top-up Services
      summary: Get top-up history
      operationId: topupHistory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - member_id
                - tracking_id
                - eSim_iccid
              properties:

                member_id:
                  type: string
                  description: Logged-in user member ID
                  example: "2"

                tracking_id:
                  type: string
                  description: Booking or eSIM tracking ID
                  example: "11177260822126194QDWJV"

                eSim_iccid:
                  type: string
                  description: eSIM ICCID (Integrated Circuit Card Identifier)
                  example: "8900000281278633887"
              additionalProperties: true
            examples:
              default:
                value:
                  member_id: "1"
                  tracking_id: 11176328969726194MHHQA
                  eSim_iccid: "873000000000042014"
      responses:
        '200':
          description: History
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example: 
                  status: Success
      
       
 
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apikey
    secretCodeAuth:
      type: apiKey
      in: header
      name: secretecode
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    ServerError:
      description: Server error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string