India’s Leading Domain & Web Hosting Provider
Milk union exposes farmer payment and milk-pour data to three banks through APIs
District milk cooperative union with 1.2 lakh farmer-members and 1,450 village societies · Azure Central India (Pune) · 10 weeks
As-is situation
The union's procurement and payment system was a VB.NET desktop application on SQL Server at the union office, fed by automatic milk collection units at 1,450 village societies. Ten-day farmer payments went to three banks as fixed-width files, and 2.3% of payments bounced each cycle on account-format errors. A farmer-app vendor and a cattle-feed credit partner wanted live milk-pour and payment data, but the union could offer only a nightly SQL dump, which exposed every member's bank account details to both companies.
- 2.3% of payments rejected per cycle, about 2,700 farmers paid late
- Nightly SQL dumps gave two external vendors all 1.2 lakh members' bank details
- The credit partner waited up to 10 days for milk-pour data to set loan limits
Approach, tools and architecture
NTSPL defined three API products in Azure API Management: Farmer Payments for the banks, Milk Pour for the app vendor and Credit Signals for the lender, each exposing only the fields it needs. Azure Data Factory, through a self-hosted integration runtime, copies changed rows every 15 minutes into Azure SQL Database, and .NET 8 facade functions read from it. Banks post payment outcomes as webhooks onto a Service Bus queue drained by an agent at the union. A pre-payment call to each bank's account-verification API flags bad accounts three days before every cycle.
Implementation approach
Measured results
Operational improvements
- Society secretaries check payment status in the farmer app instead of calling the union office
- Banks consume one JSON contract, so three fixed-width file formats are no longer maintained
Cost considerations
Services cost INR 31 lakh. Azure run cost is about INR 68,000 a month, mostly API Management Standard v2 and the SQL Database tier; Functions on the consumption plan cost under INR 3,000 a month at 18 lakh calls.
Return on investment
Fewer late payments cut grievance visits and penalty-interest payouts by about INR 14 lakh a year. Faster credit limits raised cattle-feed loan uptake by 22%, which the union links to higher milk procurement from participating societies.