AmpleTrails, Gurugram · since 2012 +91 93154 41053 WhatsApp info@ampletrails.com Developer guide · Guides
Products
Identity verificationBusiness verification (KYB)Bank, income & creditFace match & OCRVideo KYC, eSign & flowsCompliance & riskPayouts & messagingAll 52 APIs
Use cases
Customer onboarding (KYC)Merchant & seller onboarding (KYB)Vendor & supplier verificationEmployee background checksGig and field worker onboardingLoan underwritingPayout and refund validationDuplicate and synthetic identity detection
Industries
Fintech & Digital LendingBanks & NBFCsInsuranceBroking, Mutual Funds & WealthCrypto & VDA PlatformsReal-money GamingE-commerce & MarketplacesStaffing, Gig & HRTelecomMobility & LogisticsReal Estate & RentalsB2B & Procurement
Resources
GuidesGlossaryFAQSecurity & data
DevelopersPricingAbout
Theme
Get API keysCall +91 93154 41053

GST Verification with OTP API

The business enters an OTP from the GST portal to consent. We then fetch up to the requested months of returns and return filing history, turnover summary, late filings and top customers.

GST lookup 06ABCDE1234F1Z5 Active Legal nameEXAMPLE TRADERS PVT LTDTrade nameExample TradersStateHaryana (06)Registered01 Jul 2017 GSTR-3B, last 12 months Filed Filed late
Source
GST returns from the GST portal, accessed with the taxpayer's OTP consent
Turnaround
Async: usually a few minutes after OTP, longer for 24 months of data; result by webhook
Endpoint
POST /v1/gst/otp/fetch
Who can use it
Lenders and B2B businesses with a clear underwriting or credit purpose. The taxpayer must have API access enabled on the GST portal.

Overview

For small-business lending, GST returns are often the best record of real sales, better than a balance sheet prepared for the loan. The taxpayer authorises access with an OTP, and we pull their returns and turn them into a filing history and turnover summary your credit team can use.

Good to know

It shows reported sales, not cash in the bank. Combine with bank statement analysis to spot businesses that report more than they collect.

What you get

  • Actual reported turnoverMonthly taxable value from GSTR-1 and GSTR-3B, summarised over the period you choose.
  • Filing disciplineLate or missed returns are counted, which is a good early signal of stress.
  • Customer concentrationTop buyers by value show if the business depends on one or two customers.
  • Proof of controlOnly someone with the GST portal credentials and registered mobile can complete the OTP step.

Request

POST https://api.ampletrails.com/v1/gst/otp/fetch

FieldTypeStatusDescription
gstinstringRequiredGSTIN of the business (step 1: request OTP)
gst_usernamestringRequiredTaxpayer's GST portal username
request_idstringRequiredReference from the OTP step (step 2)
otpstringRequiredOTP received by the taxpayer on their registered mobile or email
period_monthsnumberOptionalNumber of past months of returns to fetch

Response

Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.

FieldMeaningExample
legal_nameLegal name of the businessEXAMPLE TRADERS PRIVATE LIMITED
filing_historyReturn-wise filing status by month[{"period": "2026-10", "gstr3b": "FILED"}]
turnover_summary.total_taxable_valueTotal taxable outward supplies over the period (₹)18250000
turnover_summary.monthly_averageAverage monthly taxable value (₹)1520833
top_customersLargest recipients by value, from GSTR-1[{"gstin": "29AABCB1234B1Z3", "share": 0.18}]
late_filingsNumber of returns filed late in the period1
consent_idID of the taxpayer's consent recordcons_9a7e44

Example

curl -X POST https://api.ampletrails.com/v1/gst/otp/fetch \
  -H "Authorization: Bearer $AMPLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"gstin": "07AAACA1234A1Z5", "gst_username": "example_traders", "request_id": "gstotp_31b9e0", "otp": "123456", "period_months": 12}'
Response · 200 OK
{
  "status": "success",
  "request_id": "req_7f3a9c21e4",
  "data": {
    "legal_name": "EXAMPLE TRADERS PRIVATE LIMITED",
    "filing_history": [
      {
        "period": "2026-10",
        "gstr3b": "FILED"
      }
    ],
    "turnover_summary": {
      "total_taxable_value": 18250000,
      "monthly_average": 1520833
    },
    "top_customers": [
      {
        "gstin": "29AABCB1234B1Z3",
        "share": 0.18
      }
    ],
    "late_filings": 1,
    "consent_id": "cons_9a7e44"
  }
}

Example data. The exact field list for your account comes with your sandbox documentation.

Use cases

MSME term loans and credit lines

Underwrite on 12 to 24 months of GST data instead of audited financials.

Supply chain finance

Anchors and lenders check a distributor's sales trend before setting limits.

Invoice discounting

Match invoices offered for funding against the seller's GSTR-1.

Questions about this API

What does the taxpayer need to do first?

Enable API access on the GST portal (under their profile) and know their portal username. Then they enter the OTP we trigger. Many first attempts fail because API access was never switched on.

How many months can I pull?

Usually up to 24 months, depending on what has been filed. Ask for fewer if you only need a recent picture; it's faster.

Is the data available immediately?

No. The portal can be slow, so we fetch in the background and send the result to your webhook, usually within minutes.

Can I re-fetch later without a new OTP?

The consent window on the GST portal is limited. For a later refresh, ask the taxpayer for a new OTP.

Try the GST Verification with OTP API

Sandbox keys, the full field reference and a Postman collection, usually within a working day.