{
	"openapi": "3.0.3",
	"info": {
		"title": "ATMList B2B API",
		"description": "REST API for verified ATM locations, fees, networks, and fraud-risk signals.",
		"version": "v1"
	},
	"servers": [{ "url": "https://api.atmlist.com" }],
	"security": [{ "bearerAuth": [] }],
	"components": {
		"securitySchemes": {
			"bearerAuth": {
				"type": "http",
				"scheme": "bearer",
				"bearerFormat": "API key"
			}
		}
	},
	"paths": {
		"/v1/atms": {
			"get": {
				"summary": "List ATMs nearby",
				"operationId": "listAtmsNearby",
				"parameters": [
					{
						"name": "near",
						"in": "query",
						"required": true,
						"schema": { "type": "string" },
						"description": "Comma-separated lat,lng"
					}
				],
				"responses": {
					"200": { "description": "ATM list" }
				}
			}
		},
		"/v1/atms/{atm_id}": {
			"get": {
				"summary": "Get ATM by ID",
				"operationId": "getAtm",
				"parameters": [
					{
						"name": "atm_id",
						"in": "path",
						"required": true,
						"schema": { "type": "string" }
					}
				],
				"responses": {
					"200": { "description": "ATM record" }
				}
			}
		},
		"/v1/atms/search": {
			"get": {
				"summary": "Search and filter ATMs",
				"operationId": "searchAtms",
				"responses": {
					"200": { "description": "Search results" }
				}
			}
		},
		"/v1/fees/estimate": {
			"post": {
				"summary": "Estimate withdrawal fees",
				"operationId": "estimateFees",
				"responses": {
					"200": { "description": "Fee estimate" }
				}
			}
		},
		"/v1/networks/match": {
			"get": {
				"summary": "Match card BIN to networks",
				"operationId": "matchNetworks",
				"responses": {
					"200": { "description": "Network match" }
				}
			}
		},
		"/v1/risk/{atm_id}": {
			"get": {
				"summary": "Fraud risk score for an ATM",
				"operationId": "getRiskScore",
				"parameters": [
					{
						"name": "atm_id",
						"in": "path",
						"required": true,
						"schema": { "type": "string" }
					}
				],
				"responses": {
					"200": { "description": "Risk score" }
				}
			}
		}
	}
}
