{
	"info": {
		"_postman_id": "8f7b6d65-bba1-4a95-b8c5-8f46a51b07ac",
		"name": "Rapid Car v2",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "regions",
			"item": [
				{
					"name": "regions by iata_location_code",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "https://test.ean.com/v3/regions?include=standard&language=en-US&iata_location_code=LAX",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v3",
								"regions"
							],
							"query": [
								{
									"key": "include",
									"value": "standard"
								},
								{
									"key": "language",
									"value": "en-US"
								},
								{
									"key": "iata_location_code",
									"value": "LAX"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "regions by lat and long",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "https://test.ean.com/v3/regions?include=details&language=en-US&area=10,18.0500867,-77.7051443",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v3",
								"regions"
							],
							"query": [
								{
									"key": "include",
									"value": "details"
								},
								{
									"key": "language",
									"value": "en-US"
								},
								{
									"key": "area",
									"value": "10,18.0500867,-77.7051443"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "regions by country_code and type",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "https://test.ean.com/v3/regions?include=standard&language=en-US&country_code=US&type=airport",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v3",
								"regions"
							],
							"query": [
								{
									"key": "include",
									"value": "standard"
								},
								{
									"key": "language",
									"value": "en-US"
								},
								{
									"key": "country_code",
									"value": "US"
								},
								{
									"key": "type",
									"value": "airport"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "shop",
			"item": [
				{
					"name": "availability airport",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://test.ean.com/v2/cars/availability?pickup_time=2025-12-12T10:00:00&dropoff_time=2025-12-14T18:00:00&pickup_airport=4605779&dropoff_airport=4605779&driver_age=30&country_code=US&currency=USD&language=en-US&limit=200&sort=recommended&sales_channel=website&sales_environment=car_only&filter=refundable&filter=vendor_collect",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"cars",
								"availability"
							],
							"query": [
								{
									"key": "pickup_time",
									"value": "2025-12-12T10:00:00"
								},
								{
									"key": "dropoff_time",
									"value": "2025-12-14T18:00:00"
								},
								{
									"key": "pickup_airport",
									"value": "4605779",
									"description": "5194573 MCO\n5456204 LAS\n4277587 SEA\n5783884 LAX\n4933194 JFK\n6060265 ATL\n4605779 SGF\n5128531 SAN\n4545090 BZE\n5265485 MXP (Milan)"
								},
								{
									"key": "dropoff_airport",
									"value": "4605779"
								},
								{
									"key": "driver_age",
									"value": "30"
								},
								{
									"key": "country_code",
									"value": "US"
								},
								{
									"key": "currency",
									"value": "USD"
								},
								{
									"key": "language",
									"value": "en-US"
								},
								{
									"key": "limit",
									"value": "200"
								},
								{
									"key": "sort",
									"value": "recommended",
									"description": "recommended, total_price, customer_rating, or distance"
								},
								{
									"key": "sales_channel",
									"value": "website",
									"description": "website, agent_tool, mobile_app, mobile_web, meta, or cache"
								},
								{
									"key": "sales_environment",
									"value": "car_only",
									"description": "car_only or car_package"
								},
								{
									"key": "packaged_product",
									"value": "hotel",
									"description": "hotel, flight",
									"disabled": true
								},
								{
									"key": "filter",
									"value": "refundable",
									"description": "refundable, expedia_collect, vendor_collect"
								},
								{
									"key": "filter",
									"value": "vendor_collect"
								},
								{
									"key": "rate_option",
									"value": "member",
									"description": "member, cross_sell",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "availability geo",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://test.ean.com/v2/cars/availability?pickup_time=2025-12-02T10:00:00&dropoff_time=2025-12-04T18:00:00&pickup_area=10, 28.4244, -81.3105&dropoff_area=10, 28.4244, -81.3105&driver_age=30&country_code=US&currency=USD&language=en-US&limit=200&sort=total_price&sales_channel=website&sales_environment=car_only&filter=refundable&filter=vendor_collect",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"cars",
								"availability"
							],
							"query": [
								{
									"key": "pickup_time",
									"value": "2025-12-02T10:00:00"
								},
								{
									"key": "dropoff_time",
									"value": "2025-12-04T18:00:00"
								},
								{
									"key": "pickup_area",
									"value": "10, 28.4244, -81.3105",
									"description": "10, 37.2446, -93.3904 SGF (Springfield, MO)\n10, 41.9803, -87.9090 ORD (Chicago)\n10, 39.3014, -94.7105 MCI (Kansas City)\n10, 38.8512, -77.0402 Ronald Reagan (Wash DC)\n10, 33.9422, -118.4036 LAX\n10, 32.7329, -117.1897 San Diego\n10, 46.9188, -114.0836 Missoula Airport\n10, 39.8563, -104.6764 Denver International\n10, 25.7923, -80.2823 MIA\n10, 20.8946, -156.4361 OGG (Maui)\n10, 45.7784, -111.1612 Bozeman\n10, 27.9769, -82.5303 Tampa\n10, 40.7903, -111.9771 SLC\n10, 28.4244, -81.3105 Orlando\n10, 33.4352, -112.0101 Phoenix\n10, 36.1249, -86.6762 Nashville\n10, 21.2850, -157.8356 Honolulu"
								},
								{
									"key": "dropoff_area",
									"value": "10, 28.4244, -81.3105"
								},
								{
									"key": "driver_age",
									"value": "30"
								},
								{
									"key": "country_code",
									"value": "US"
								},
								{
									"key": "currency",
									"value": "USD"
								},
								{
									"key": "language",
									"value": "en-US"
								},
								{
									"key": "limit",
									"value": "200"
								},
								{
									"key": "sort",
									"value": "total_price",
									"description": "recommended, total_price, customer_rating, or distance"
								},
								{
									"key": "sales_channel",
									"value": "website",
									"description": "website, agent_tool, mobile_app, mobile_web, meta, or cache"
								},
								{
									"key": "sales_environment",
									"value": "car_only",
									"description": "car_only or car_package"
								},
								{
									"key": "packaged_product",
									"value": "hotel",
									"description": "hotel, flight",
									"disabled": true
								},
								{
									"key": "filter",
									"value": "refundable",
									"description": "refundable, expedia_collect, vendor_collect"
								},
								{
									"key": "filter",
									"value": "vendor_collect"
								},
								{
									"key": "rate_option",
									"value": "member",
									"description": "member, cross_sell",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "details",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://test.ean.com/v2/cars/AQjRmEDeHf3M6cr0UMxXFaSbavjCnI7in9MF41jMKsvol4fEiGLdz-nXi0qyExsqWb7TbiFrhkzB4rUVU-8CLkxjSFWQDuMwS7Ko6hum-M-3A/details?token=Q11DFl9aWmxeAFwGUVUBAVwBBE9VCgRaS1INAA0ZAgpSUktXDAoGBgddWwEAUgAQWhBHFgFbABgMbDFwFApXXFNDVlRTDlVbGjdnQ1dbFFhMQ0xqVwsBVwQwYxBGWQpdQztVW1YPXQZUCRMEVktbFVxAdg1UVFIWRg4OBwVeAl0MDgcLCA==",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"cars",
								"AQjRmEDeHf3M6cr0UMxXFaSbavjCnI7in9MF41jMKsvol4fEiGLdz-nXi0qyExsqWb7TbiFrhkzB4rUVU-8CLkxjSFWQDuMwS7Ko6hum-M-3A",
								"details"
							],
							"query": [
								{
									"key": "token",
									"value": "Q11DFl9aWmxeAFwGUVUBAVwBBE9VCgRaS1INAA0ZAgpSUktXDAoGBgddWwEAUgAQWhBHFgFbABgMbDFwFApXXFNDVlRTDlVbGjdnQ1dbFFhMQ0xqVwsBVwQwYxBGWQpdQztVW1YPXQZUCRMEVktbFVxAdg1UVFIWRg4OBwVeAl0MDgcLCA=="
								}
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "book",
			"item": [
				{
					"name": "create booking",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"affiliate_reference_id\": \"{{$randomAlphaNumeric}}\",\n  \"primary_driver\": {\n    \"given_name\": \"Test\",\n    \"middle_name\": \"Test\",\n    \"family_name\": \"Test\",\n    \"phone\": {\n      \"country_code\": \"1\",\n      \"area_code\": \"487\",\n      \"number\": \"5550077\"\n    },\n    \"email\": \"{{email}}\"\n  },\n  \"payment_token\": \"{{payment_token}}\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://test.ean.com/v2/itineraries/car?token=U1dFC0JHTWxUCwUHCWNjQ1oMWQ5RWw5cOQdUVkBaFwVeAkgGDB8LBVIBSztACVhTV1h0NQBQUyRLcQxuWFVebUNMWXF6Bl9FcwYZAnJlPn5JQEVteA1Xe2ogV39ybAF0fxRicAMydipie1MgdkgHL3gFcVEJbQsnYAxfQnYQXjVQW0pdakxQIwFUJQQEAwN4cSVsdQZ0Iws2WCxHclYIFENQXAEJRz1dUVxwJRJAUUESWV4MPV8GXghRWgYDDVVbHgUABgcbDQpVBhRRDF4MFA8FVwZaA1AFB1ZRURRHBF8AEW0HDQReDwZUXkZRB0IKTFEeB0JBRgZaBUxYM2QiHgkFWlMWU1IGCgNfS2FqQ3YJVAJTFkJbBQ8BVlVWDwlVAw==",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"itineraries",
								"car"
							],
							"query": [
								{
									"key": "token",
									"value": "U1dFC0JHTWxUCwUHCWNjQ1oMWQ5RWw5cOQdUVkBaFwVeAkgGDB8LBVIBSztACVhTV1h0NQBQUyRLcQxuWFVebUNMWXF6Bl9FcwYZAnJlPn5JQEVteA1Xe2ogV39ybAF0fxRicAMydipie1MgdkgHL3gFcVEJbQsnYAxfQnYQXjVQW0pdakxQIwFUJQQEAwN4cSVsdQZ0Iws2WCxHclYIFENQXAEJRz1dUVxwJRJAUUESWV4MPV8GXghRWgYDDVVbHgUABgcbDQpVBhRRDF4MFA8FVwZaA1AFB1ZRURRHBF8AEW0HDQReDwZUXkZRB0IKTFEeB0JBRgZaBUxYM2QiHgkFWlMWU1IGCgNfS2FqQ3YJVAJTFkJbBQ8BVlVWDwlVAw=="
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "retrieve itineraries",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://test.ean.com/v2/itineraries/9030413036172/car",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"itineraries",
								"9030413036172",
								"car"
							]
						}
					},
					"response": []
				},
				{
					"name": "retrieve affiliate itineraries",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"url": {
							"raw": "{{baseUrl}}/v2/itineraries/car?affiliate_reference_id=34231388ABC",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"v2",
								"itineraries",
								"car"
							],
							"query": [
								{
									"key": "affiliate_reference_id",
									"value": "34231388ABC"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "cancel booking",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "default"
							},
							{
								"key": "Accept-Encoding",
								"value": "gzip",
								"type": "default"
							},
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							},
							{
								"key": "Test",
								"value": "standard",
								"type": "default",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://test.ean.com/v2/itineraries/9030413036172/car",
							"protocol": "https",
							"host": [
								"test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"itineraries",
								"9030413036172",
								"car"
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "pay",
			"item": [
				{
					"name": "register payment",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let jsonData = pm.response.json();",
									"if (jsonData.payment_token) {",
									"    pm.environment.set(\"payment_token\", jsonData.payment_token);",
									"}"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"customer_card\",\n    \"number\": \"6011601160116611\",\n    \"security_code\": \"737\",\n    \"expiration_month\": 3,\n    \"expiration_year\": \"2030\",\n    \"billing_contact\": {\n        \"given_name\": \"Test\",\n        \"family_name\": \"Test\",\n        \"email\": \"{{email}}\",\n        \"phone\": {\n            \"country_code\": \"1\",\n            \"area_code\": \"200\",\n            \"number\": \"1234567\"\n        },\n        \"address\": {\n            \"line_1\": \"First line\",\n            \"line_2\": \"Second line\",\n            \"line_3\": \"Third line\",\n            \"city\": \"Seattle\",\n            \"state_province_code\": \"WA\",\n            \"postal_code\": \"98119\",\n            \"country_code\": \"US\"\n        }\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://pay-test.ean.com/v2/payments?token=K~IjQ4xfOV8zUnn4m5lDQQZxJnYDECOjdqIl6wHmcyVQlSBVUKxMw9cA==",
							"protocol": "https",
							"host": [
								"pay-test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"payments"
							],
							"query": [
								{
									"key": "token",
									"value": "K~IjQ4xfOV8zUnn4m5lDQQZxJnYDECOjdqIl6wHmcyVQlSBVUKxMw9cA=="
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "register payment (EAC)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let jsonData = pm.response.json();",
									"if (jsonData.payment_token) {",
									"    pm.environment.set(\"payment_token\", jsonData.payment_token);",
									"}"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Customer-Ip",
								"value": "127.0.0.1",
								"type": "default"
							},
							{
								"key": "Customer-Session-Id",
								"value": "session-id",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"affiliate_collect\",\n    \"billing_contact\": {\n        \"given_name\": \"Test\",\n        \"family_name\": \"Test\",\n        \"email\": \"{{email}}\",\n        \"phone\": {\n            \"country_code\": \"1\",\n            \"area_code\": \"200\",\n            \"number\": \"1234567\"\n        },\n        \"address\": {\n            \"line_1\": \"First line\",\n            \"line_2\": \"Second line\",\n            \"line_3\": \"Third line\",\n            \"city\": \"Seattle\",\n            \"state_province_code\": \"WA\",\n            \"postal_code\": \"98119\",\n            \"country_code\": \"US\"\n        }\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://pay-test.ean.com/v2/payments?token=K~IjQ4xfOV8zUnn4m5lDQQZxJnYDECOjdqIl6wHmcyVQlSBVUKxMw9cA==",
							"protocol": "https",
							"host": [
								"pay-test",
								"ean",
								"com"
							],
							"path": [
								"v2",
								"payments"
							],
							"query": [
								{
									"key": "token",
									"value": "K~IjQ4xfOV8zUnn4m5lDQQZxJnYDECOjdqIl6wHmcyVQlSBVUKxMw9cA=="
								}
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "headerPrefix",
				"value": "Bearer",
				"type": "string"
			},
			{
				"key": "accessTokenUrl",
				"value": "https://test.ean.com/identity/oauth2/v3/token",
				"type": "string"
			},
			{
				"key": "grant_type",
				"value": "client_credentials",
				"type": "string"
			},
			{
				"key": "clientSecret",
				"value": "{{client-secret}}",
				"type": "string"
			},
			{
				"key": "scope",
				"value": "",
				"type": "string"
			},
			{
				"key": "clientId",
				"value": "{{client-id}}",
				"type": "string"
			},
			{
				"key": "authUrl",
				"value": "https://test.ean.com/identity/oauth2/v3/token",
				"type": "string"
			},
			{
				"key": "tokenName",
				"value": "bearer_token",
				"type": "string"
			},
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}