{
	"info": {
		"_postman_id": "046d5027-63fb-414b-b1b1-ddbeb8f588c6",
		"name": "Fixed Departure — Merchant API",
		"description": "Merchant Fixed Departure APIs via holidays-volt-wrapper.\n\nSet variables:\n- `host` — API base URL (no trailing slash), e.g. https://api.example.com\n- `api_key` — merchant API key (value only; collection adds Bearer)\n- `listing_code` — e.g. fdlxxxx\n- `destination_code` — optional filter\n- `departure_code`, stay/addon codes as needed for Book\n\nDocs: Fixed_Departure_Merchant_API.md",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "46243194"
	},
	"item": [
		{
			"name": "1. List listings",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "x-api-key",
						"value": "Bearer {{api_key}}"
					}
				],
				"url": {
					"raw": "{{host}}/api/v1/fixed-departure/listings?destination_code={{destination_code}}&page={{page}}&page_size={{page_size}}",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v1",
						"fixed-departure",
						"listings"
					],
					"query": [
						{
							"key": "destination_code",
							"value": "{{destination_code}}",
							"description": "Optional"
						},
						{
							"key": "page",
							"value": "{{page}}"
						},
						{
							"key": "page_size",
							"value": "{{page_size}}"
						}
					]
				},
				"description": "Paginated list of active Fixed Departure packages."
			},
			"response": []
		},
		{
			"name": "2. Listing detail",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "x-api-key",
						"value": "Bearer {{api_key}}"
					}
				],
				"url": {
					"raw": "{{host}}/api/v1/fixed-departure/listings/{{listing_code}}",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v1",
						"fixed-departure",
						"listings",
						"{{listing_code}}"
					]
				},
				"description": "Full package detail: departures, hotels (stay codes fhs…), addons, transfers, flights (option codes fls…)."
			},
			"response": []
		},
		{
			"name": "3. Inventory by departure codes",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "x-api-key",
						"value": "Bearer {{api_key}}"
					},
					{
						"key": "organizationCode",
						"value": "{{organization_code}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"departure_codes\": [\"{{departure_code}}\"]\n}"
				},
				"url": {
					"raw": "{{host}}/api/v1/fixed-departure/inventory",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v1",
						"fixed-departure",
						"inventory"
					]
				},
				"description": "POST inventory rows by departure_codes (fdd…) plus listing_code each. Source-filtered by organizationCode."
			},
			"response": []
		},
		{
			"name": "4. Day-wise itinerary",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "x-api-key",
						"value": "Bearer {{api_key}}"
					}
				],
				"url": {
					"raw": "{{host}}/api/v1/fixed-departure/listings/{{listing_code}}/day-wise-itinerary",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v1",
						"fixed-departure",
						"listings",
						"{{listing_code}}",
						"day-wise-itinerary"
					]
				},
				"description": "Day-wise components. Derive calendar dates from departure travel_start_date."
			},
			"response": []
		},
		{
			"name": "5. Book (minimal)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "x-api-key",
						"value": "Bearer {{api_key}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"departure_code\": \"{{departure_code}}\",\n  \"buyer_booking_reference\": \"{{buyer_booking_reference}}\",\n  \"occupancy\": [\n    {\n      \"num_of_adults\": 2,\n      \"child_with_bed_ages\": [],\n      \"child_without_bed_ages\": [],\n      \"infant_ages\": []\n    }\n  ],\n  \"hotels\": [\"{{base_stay_code}}\"],\n  \"hotel_upgrades\": [],\n  \"sightseeings\": [],\n  \"sightseeing_addon_codes\": [],\n  \"transfers\": [],\n  \"transfer_addon_codes\": [],\n  \"flights\": [],\n  \"flight_origin_addon_codes\": [],\n  \"total_amount\": {{total_amount}},\n  \"currency\": \"{{currency}}\"\n}"
				},
				"url": {
					"raw": "{{host}}/api/v1/fixed-departure/listings/{{listing_code}}/book",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v1",
						"fixed-departure",
						"listings",
						"{{listing_code}}",
						"book"
					]
				},
				"description": "Minimal book (package only). Set total_amount to match server calc."
			},
			"response": []
		},
		{
			"name": "6. Book (with upgrades & addons)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "x-api-key",
						"value": "Bearer {{api_key}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"departure_code\": \"{{departure_code}}\",\n  \"buyer_booking_reference\": \"{{buyer_booking_reference}}\",\n  \"occupancy\": [\n    {\n      \"num_of_adults\": 2,\n      \"child_with_bed_ages\": [8],\n      \"child_without_bed_ages\": [],\n      \"infant_ages\": []\n    }\n  ],\n  \"hotels\": [\"{{base_stay_code}}\"],\n  \"hotel_upgrades\": [\n    {\n      \"base_hotel\": { \"code\": \"{{base_stay_code}}\" },\n      \"upgrade_hotel\": { \"code\": \"{{upgrade_stay_code}}\" }\n    }\n  ],\n  \"sightseeings\": [\"{{sightseeing_code}}\"],\n  \"sightseeing_addon_codes\": [\"{{sightseeing_addon_code}}\"],\n  \"transfers\": [\"{{transfer_code}}\"],\n  \"transfer_addon_codes\": [\"{{transfer_addon_code}}\"],\n  \"flights\": [\"{{flight_code}}\"],\n  \"flight_origin_addon_codes\": [\"{{flight_origin_addon_code}}\"],\n  \"total_amount\": {{total_amount}},\n  \"currency\": \"{{currency}}\"\n}"
				},
				"url": {
					"raw": "{{host}}/api/v1/fixed-departure/listings/{{listing_code}}/book",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v1",
						"fixed-departure",
						"listings",
						"{{listing_code}}",
						"book"
					]
				},
				"description": "Book with hotel stay upgrades/addons and other addons. Use fhs… stay codes from detail — not catalog hotel.code."
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "host",
			"value": "https://YOUR_HOST"
		},
		{
			"key": "api_key",
			"value": ""
		},
		{
			"key": "listing_code",
			"value": "fdlxxxx"
		},
		{
			"key": "destination_code",
			"value": ""
		},
		{
			"key": "page",
			"value": "1"
		},
		{
			"key": "page_size",
			"value": "20"
		},
		{
			"key": "departure_code",
			"value": "fddxxxx"
		},
		{
			"key": "organization_code",
			"value": "orxxxx"
		},
		{
			"key": "base_stay_code",
			"value": "fhsxxxx"
		},
		{
			"key": "upgrade_stay_code",
			"value": "fhsyyyy"
		},
		{
			"key": "hotel_addon_code",
			"value": "fhaxxxx"
		},
		{
			"key": "sightseeing_addon_code",
			"value": "fsaxxxx"
		},
		{
			"key": "transfer_addon_code",
			"value": "ftaxxxx"
		},
		{
			"key": "flight_origin_addon_code",
			"value": "foaxxxx"
		},
		{
			"key": "total_amount",
			"value": "136500"
		},
		{
			"key": "currency",
			"value": "INR"
		},
		{
			"key": "buyer_booking_reference",
			"value": "BUY-12345"
		},
		{
			"key": "sightseeing_code",
			"value": "ssxxxx"
		},
		{
			"key": "transfer_code",
			"value": "txxxx"
		},
		{
			"key": "flight_code",
			"value": "flsxxxx"
		}
	]
}