{"openapi":"3.1.0","info":{"title":"Nexus Solar Green Energy Pvt. Ltd. — AI-Native Commerce & Dealer API","version":"1.0.0","description":"Machine-operable API for AI agents to search TRONTEK & GEON lithium battery packs, verify 35+ Nepal district coverage, place NPR (रू) orders with eSewa QR + WhatsApp confirmation, and submit dealership or warranty service requests."},"servers":[{"url":"https://0.0.0.0:3000"}],"paths":{"/api/v1/products":{"get":{"operationId":"listProducts","summary":"List TRONTEK & GEON lithium battery packs and accessories in NPR","parameters":[{"name":"brand","in":"query","schema":{"type":"string","enum":["ALL","TRONTEK","GEON","NEXUS"]}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON list of products with NPR prices and specs"}}}},"/api/v1/dealers":{"get":{"operationId":"checkDistrictCoverage","summary":"Check service, laser-facility warranty, and dealer coverage across 35+ districts in Nepal","parameters":[{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"District coverage and Biratnagar hub details"}}}},"/api/v1/orders/request":{"post":{"operationId":"createOrderRequest","summary":"Create an NPR order and receive eSewa QR URL, phone number, and WhatsApp confirmation link","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["customerName","customerPhone","district","address","items"],"properties":{"customerName":{"type":"string"},"customerPhone":{"type":"string"},"district":{"type":"string"},"address":{"type":"string"},"vehicleOrUseCase":{"type":"string"},"paymentMethod":{"type":"string","enum":["esewa_qr","phone_order","dealer_quote"]},"items":{"type":"array","items":{"type":"object","required":["slug","quantity"],"properties":{"slug":{"type":"string"},"quantity":{"type":"integer","minimum":1}}}},"idempotencyKey":{"type":"string"}}}}}},"responses":{"201":{"description":"Order created with eSewa QR and WhatsApp URL"}}}},"/api/v1/dealerships/apply":{"post":{"operationId":"applyForDealership","summary":"Submit a B2B dealership partnership request for a Nepal district","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["businessName","ownerName","phone","district","city","currentBusinessType","monthlyBatteryVolume"],"properties":{"businessName":{"type":"string"},"ownerName":{"type":"string"},"phone":{"type":"string"},"district":{"type":"string"},"city":{"type":"string"},"currentBusinessType":{"type":"string"},"monthlyBatteryVolume":{"type":"string"},"serviceBayAvailable":{"type":"boolean"},"message":{"type":"string"}}}}}},"responses":{"201":{"description":"Dealership application recorded"}}}},"/api/v1/inquiries":{"post":{"operationId":"createServiceInquiry","summary":"Submit callback, 5-year warranty, or laser-facility repair inquiry","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","phone","message"],"properties":{"name":{"type":"string"},"phone":{"type":"string"},"district":{"type":"string"},"inquiryType":{"type":"string","enum":["callback","warranty_5yr","laser_repair","general"]},"productOrVehicle":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"201":{"description":"Inquiry logged"}}}}}}