India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
Microsoft AzureCooperative dairyAgriculture & Food

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

Amazon Web Services
01

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
02

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.

Union SQL Server → ADF self-hosted IR (15-minute incremental) → Azure SQL Database → Functions facade → API Management products → banks, app vendor, credit partner; bank callbacks → Service Bus → union agent
Azure API ManagementAzure FunctionsAzure Data FactoryAzure SQL DatabaseAzure Service BusMicrosoft Entra ID
03

Implementation approach

Weeks 1-2 · Consumers and field minimisationAgreed per-partner field lists with the union's legal adviser.
Weeks 3-6 · Sync, facade and callbacksBuilt the incremental copy, facade functions and payment-outcome queue.
Weeks 7-8 · Bank certificationCompleted mTLS and test cycles with all three banks.
Weeks 9-10 · Partner onboardingMoved both vendors to APIs and stopped the SQL dumps.
04

Measured results

Payment rejections per 10-day cycle
2.3% (about 2,700 farmers)→0.4% (about 480 farmers)
Data latency to the credit partner
Up to 10 days→15 minutes
External parties holding full member bank details
2 vendors→0
Payment reconciliation effort per cycle
3 staff for 2 days→1 staff for half a day

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
05

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.

06

Return on investment

ROI indicator

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.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.