Public
Documentation Settings

Nok OTA API ( UAT )

1 - DOM 2 adult - One Way

POSTv1/available-flight-fare

{{host}}/v1/available-flight-fare
HEADERS
X-Correlation-Id

6b4ff001-ec95-405f-bd2d-53e6ba43a7e0

client_id

{{client_id}}

client_secret

{{client_secret}}

Bodyraw (json)
json
{
    "agencyCode": "{{agency_code}}",
    "currency": "THB",
    "adult": 2,
    "child": 0,
    "infant": 0,
    "journeys": [
        {
            "origin": "DMK",
            "destination": "CNX",
            "departureDate": "2024-11-01"
        }
    ]
}
Example Request
curl
curl --location -g '{{host}}/v1/available-flight-fare' \
--header 'X-Correlation-Id: 29fca4db-490c-4def-8969-818685bcb86c' \
--header 'client_id: {{client_id}}' \
--header 'client_secret: {{client_secret}}' \
--data '{
    "agencyCode": "{{agency_code}}",
    "currency": "THB",
    "adult": 2,
    "child": 0,
    "infant": 0,
    "journeys": [
        {
            "origin": "DMK",
            "destination": "CNX",
            "departureDate": "2024-11-01"
        }
    ]
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTv1/pricing-details

{{host}}/v1/pricing-details
HEADERS
X-Correlation-Id

d298bb15-75a4-429f-9d19-45f301d289b8

client_id

{{client_id}}

client_secret

{{client_secret}}

Content-Type

application/json

security-token

{{securityToken}}

Bodyraw
{
    "agencyCode": "{{agency_code}}",
    "flightFareKey": [
        {
            "fareKey": "DMKUBP20231104010000THB_2:QRALIT00",
            "journeyKey": "DMKUBP20231104010000THB_DD32220231104"
        }
    ],
    "includeExtraServices": true
}
Example Request
curl
curl --location -g '{{host}}/v1/pricing-details' \
--header 'X-Correlation-Id: e54548e4-3fdd-45bd-b5fb-d38b0768e8fa' \
--header 'client_id: {{client_id}}' \
--header 'client_secret: {{client_secret}}' \
--header 'Content-Type: application/json' \
--header 'security-token: {{securityToken}}' \
--data '{
    "agencyCode": "{{agency_code}}",
    "flightFareKey": [
        {
            "fareKey": "DMKUBP20231104010000THB_2:QRALIT00",
            "journeyKey": "DMKUBP20231104010000THB_DD32220231104"
        }
    ],
    "includeExtraServices": true
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTv1/seat-map

{{host}}/v1/seat-map
HEADERS
X-Correlation-Id

f5497bbb-cdd9-40eb-b317-9a5cdc703164

client_id

{{client_id}}

client_secret

{{client_secret}}

Security-Token

{{securityToken}}

Bodyraw (json)
json
{
    "agencyCode": "{{agency_code}}",
    "fareKey": "DMKCNX20231204020000THB_12:URALIT00",
    "journeyKey": "DMKCNX20231204020000THB_DD12220231204"
}
Example Request
curl
curl --location -g '{{host}}/v1/seat-map' \
--header 'X-Correlation-Id: a0bf6125-7e7c-4368-afd6-0ca69bbbfb03' \
--header 'client_id: {{client_id}}' \
--header 'client_secret: {{client_secret}}' \
--header 'Security-Token: {{securityToken}}' \
--data '{
    "agencyCode": "{{agency_code}}",
    "fareKey": "DMKCNX20231204020000THB_12:URALIT00",
    "journeyKey": "DMKCNX20231204020000THB_DD12220231204"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers