{
  "openapi": "3.1.0",
  "info": {
    "title": "StampMitra Developer API",
    "version": "1.1.0",
    "x-api-version": "v1",
    "summary": "Indian identity verification and e-Stamp Paper APIs for the StampMitra developer portal.",
    "description": "The API-key Developer Suite: verification (PAN, GSTIN, vehicle RC, Voter ID, Driving Licence, Passport, CIN, Udyam, bank account), e-Stamp Paper, usage and request logs, and webhook events. Generated from the same data as the docs at https://developer.stampmitra.in.\n\nAuthentication: send your API key as `Authorization: Bearer <key>` or `x-api-key: <key>`. Sandbox keys (sk_test_) and production keys (sk_live_) use the same host; the key prefix selects the environment. Sandbox keys are free and get 20% of each endpoint's production rate limit (minimum 1 request per window); production calls are metered per successful call.\n\nErrors: every error is `{ error: { code, message, requestId } }` (plus `field` where an input is at fault). Send an `X-Request-Id` header and it is echoed back as `requestId`. See `x-error-codes`.\n\nIdempotency: send an `Idempotency-Key` header on operations that accept it (metered verification and duty/parties calls, order creation, payment intents) to make retries safe. The same key and request replays the stored response; the same key with a different request is 422 `IDEMPOTENCY_KEY_REUSED`; the same key while the first request is still running is 409 `IDEMPOTENCY_IN_PROGRESS` with `Retry-After`. Keys are scoped to your organization, the route and the environment and are kept for 24 hours. `x-idempotent` and `x-retry-safe` mark each operation.\n\nResponse headers on authenticated calls (additive, safe to ignore): `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (seconds) on rate-limited routes, `Retry-After` on every 429 and 503, and for live keys `X-Wallet-State` (OK, LOW_BALANCE, FINISHED) and `X-Wallet-Balance-Low: true`. Read the exact balance with GET /v1/account/balance; guide: https://developer.stampmitra.in/docs/balance-usage-and-rate-limits.\n\nWebhooks: outbound order events are signed. `x-webhook-signature` and the top-level `webhooks` section describe the headers and the HMAC-SHA256 construction.\n\nVersioning: Contract version (info.version) follows semantic versioning, independent of the URL version (x-api-version: v1; every path is under /v1). MAJOR: any breaking change to the published contract (removed or renamed operationId, path, field or enum value; changed status code, error shape or required-ness; a /v2 prefix). Generated SDKs bump their major version too. MINOR: backwards-compatible additions (new endpoint, new optional request field, new response field, new error code or webhook event). Clients must ignore unknown response fields and treat unknown enum values as unknown-safe. PATCH: documentation, description and example corrections that do not change behaviour.",
    "termsOfService": "https://developer.stampmitra.in/legal/developer-terms",
    "contact": {
      "name": "StampMitra Developer Support",
      "url": "https://developer.stampmitra.in/support"
    }
  },
  "servers": [
    {
      "url": "https://api-b2b.stampmitra.in",
      "description": "StampMitra Developer API. Sandbox and production share this host: use an sk_test_ key for sandbox (free, lower rate limits) and an sk_live_ key for production."
    }
  ],
  "externalDocs": {
    "description": "Developer documentation",
    "url": "https://developer.stampmitra.in/docs/auth"
  },
  "tags": [
    {
      "name": "Verification"
    },
    {
      "name": "e-Stamp"
    },
    {
      "name": "Usage & Logs"
    },
    {
      "name": "Webhooks"
    }
  ],
  "x-error-codes": [
    {
      "code": "BAD_REQUEST",
      "httpStatus": 400,
      "description": "Validation failed or the request was rejected, or error.code IDEMPOTENCY_KEY_REQUIRED: the route requires an Idempotency-Key header (e-Stamp order creation, batches)."
    },
    {
      "code": "UNAUTHORIZED",
      "httpStatus": 401,
      "description": "Missing or invalid API key, or missing required scope."
    },
    {
      "code": "PAYMENT_REQUIRED",
      "httpStatus": 402,
      "description": "Insufficient fulfilment wallet balance."
    },
    {
      "code": "FORBIDDEN",
      "httpStatus": 403,
      "description": "IP not allowed, plan entitlement not enabled, or limit reached."
    },
    {
      "code": "NOT_FOUND",
      "httpStatus": 404,
      "description": "Resource not found."
    },
    {
      "code": "CONFLICT",
      "httpStatus": 409,
      "description": "State conflict, or error.code IDEMPOTENCY_IN_PROGRESS: a request with this Idempotency-Key is still being processed (retry the identical request after Retry-After)."
    },
    {
      "code": "UNPROCESSABLE_ENTITY",
      "httpStatus": 422,
      "description": "Request understood but cannot be processed, or error.code IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was already used with a different request."
    },
    {
      "code": "TOO_MANY_REQUESTS",
      "httpStatus": 429,
      "description": "Rate limit exceeded."
    },
    {
      "code": "INTERNAL_ERROR",
      "httpStatus": 500,
      "description": "Unexpected error, and upstream failures (502, 503). The status distinguishes them."
    },
    {
      "code": "ERROR",
      "httpStatus": 400,
      "description": "Fallback for any other 4xx status."
    }
  ],
  "x-webhook-signature": {
    "algorithm": "HMAC-SHA256",
    "encoding": "hex",
    "signedPayload": "`${timestamp}.${JSON.stringify(payload)}`",
    "secret": "The signing secret of the webhook endpoint you registered.",
    "headers": {
      "signature": "X-Webhook-Signature",
      "timestamp": "X-Webhook-Timestamp",
      "eventId": "X-Webhook-Event-Id"
    }
  },
  "paths": {
    "/v1/verify/pan": {
      "post": {
        "operationId": "verifyPan",
        "summary": "Verify PAN",
        "description": "Validates and verifies a PAN. Requires the `verification.pan.read` scope on the API key. Metered as `pan.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/pan`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PanVerifyRequest"
              },
              "example": {
                "pan": "ABCDE1234F",
                "name": "Rahul Kumar"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-8F42K7",
                  "pan": "ABCDE1234F",
                  "type": "Individual",
                  "valid": true,
                  "registeredName": "RAHUL KUMAR",
                  "fatherName": "SURESH KUMAR",
                  "panStatus": "VALID",
                  "panStatusCode": "E",
                  "panStatusDescription": "Existing and valid PAN",
                  "nameMatchResult": "MATCH",
                  "nameMatchScore": "100",
                  "aadhaarSeedingStatus": "y",
                  "aadhaarSeedingStatusDescription": "Aadhaar linked",
                  "lastUpdatedAt": "2023-04-01",
                  "message": "PAN is Valid"
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "pan must match the format ABCDE1234F",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.pan.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "PAN documentation",
          "url": "https://developer.stampmitra.in/docs/verification/pan"
        }
      }
    },
    "/v1/verify/gstin": {
      "post": {
        "operationId": "verifyGstin",
        "summary": "Verify GSTIN",
        "description": "Validates and verifies a GSTIN. Requires the `verification.gstin.read` scope on the API key. Metered as `gstin.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/gstin`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GstinVerifyRequest"
              },
              "example": {
                "gstin": "29AAICP2912R1ZR",
                "businessName": "UJJIVAN SMALL FINANCE BANK LIMITED"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GstinVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-9K21P4",
                  "verificationId": "VRF-4M8Q2T7XB9KD",
                  "gstin": "29AAICP2912R1ZR",
                  "GSTIN": "29AAICP2912R1ZR",
                  "valid": true,
                  "legalNameOfBusiness": "UJJIVAN SMALL FINANCE BANK LIMITED",
                  "tradeNameOfBusiness": "UJJIVAN SMALL FINANCE BANK",
                  "centerJurisdiction": "I-A RANGE",
                  "stateJurisdiction": "GUWAHATI - A - 1",
                  "dateOfRegistration": "2017-09-30",
                  "constitutionOfBusiness": "Public Limited Company",
                  "taxpayerType": "Regular",
                  "gstinStatus": "Active",
                  "lastUpdateDate": "2022-03-01",
                  "natureOfBusinessActivities": [
                    "Retail Business",
                    "Supplier of Services",
                    "Recipient of Goods or Services",
                    "Office / Sale Office",
                    "Others"
                  ],
                  "principalPlaceAddress": "First Floor 3512-DISPUR Prithivi Mansion opp. KFC building G.S. Road, Lachit Nagar Assam 781007",
                  "principalPlaceSplitAddress": {
                    "buildingName": "Prithivi Mansion",
                    "street": "G.S. Road",
                    "location": "Lachit Nagar",
                    "buildingNumber": "3512-DISPUR",
                    "district": "Guwahati",
                    "state": "Assam",
                    "city": "Dispur",
                    "flatNumber": "First Floor",
                    "latitude": "26.1445",
                    "longitude": "91.7362",
                    "pincode": "781007"
                  },
                  "additionalAddresses": [
                    {
                      "address": "Mirza Santipur NH-37 Dist-Kamrup Rural PS-Palashbari, PO  Mirza Kamrup Assam 781125",
                      "splitAddress": {
                        "buildingName": "",
                        "street": "NH-37",
                        "location": "Santipur, Mirza",
                        "buildingNumber": "",
                        "district": "Kamrup Rural",
                        "state": "Assam",
                        "city": "Palashbari",
                        "flatNumber": "",
                        "latitude": "26.0926",
                        "longitude": "91.5069",
                        "pincode": "781125"
                      }
                    },
                    {
                      "address": "N.A.C.C.I. Foundation 3559-Tezpur CHAMBER BHAWAN Binjraj Road, P. o. and P.S. - Tezpur, Dist. Binjraj Road, P. o. and P.S. - Tezpur, Dist. Sonitpur Assam 784154",
                      "splitAddress": {
                        "buildingName": "CHAMBER BHAWAN",
                        "street": "Binjraj Road",
                        "location": "Tezpur",
                        "buildingNumber": "3559-Tezpur",
                        "district": "Sonitpur",
                        "state": "Assam",
                        "city": "Tezpur",
                        "flatNumber": "",
                        "latitude": "26.6338",
                        "longitude": "92.8006",
                        "pincode": "784154"
                      }
                    }
                  ],
                  "message": "GSTIN Exists",
                  "legalName": "UJJIVAN SMALL FINANCE BANK LIMITED",
                  "tradeName": "UJJIVAN SMALL FINANCE BANK",
                  "registrationStatus": "Active",
                  "principalPlaceOfBusiness": "First Floor 3512-DISPUR Prithivi Mansion opp. KFC building G.S. Road, Lachit Nagar Assam 781007"
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "gstin must match the format 07AAAAA1111A1Z1",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.gstin.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "GSTIN documentation",
          "url": "https://developer.stampmitra.in/docs/verification/gstin"
        }
      }
    },
    "/v1/verify/rc": {
      "post": {
        "operationId": "verifyVehicleRc",
        "summary": "Verify Vehicle RC",
        "description": "Validates and verifies a Vehicle RC. Requires the `verification.rc.read` scope on the API key. Metered as `rc.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/rc`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VehicleRcVerifyRequest"
              },
              "example": {
                "vehicleNumber": "MH12AB1234"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleRcVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-3D71Q9",
                  "regNo": "MH12AB1234",
                  "registrationStatus": "VALID",
                  "ownerName": "RAHUL KUMAR",
                  "ownerFatherName": "SURESH KUMAR",
                  "vehicleClass": "LMV",
                  "vehicleManufacturerName": "MARUTI SUZUKI",
                  "model": "SWIFT",
                  "vehicleColor": "WHITE",
                  "chassis": "MA3ERLF1S00123456",
                  "engine": "K12MN1234567",
                  "registrationDate": "2019-05-14",
                  "rcStatus": "ACTIVE",
                  "rcExpiryDate": "2034-05-13",
                  "insuranceUpto": "2025-05-13",
                  "isCommercial": false
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "vehicleNumber must match the format MH12AB1234",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.rc.read",
        "x-price-inr-per-successful-call": 9,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Vehicle RC documentation",
          "url": "https://developer.stampmitra.in/docs/verification/rc"
        }
      }
    },
    "/v1/verify/voter-id": {
      "post": {
        "operationId": "verifyVoterId",
        "summary": "Verify Voter ID",
        "description": "Validates and verifies a Voter ID. Requires the `verification.voter.read` scope on the API key. Metered as `voter.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/voter-id`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoterIdVerifyRequest"
              },
              "example": {
                "voterId": "UAI4574761",
                "name": "HARSHIT PRAJAPATI"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoterIdVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-7H83M1",
                  "verificationId": "VRF-4C8P2WJ6ZK9T",
                  "valid": true,
                  "status": "VALID",
                  "epicNumber": "UAI4574761",
                  "name": "HARSHIT PRAJAPATI",
                  "nameInRegionalLang": "हर्षित",
                  "age": "23",
                  "relationType": "FTHR",
                  "relationName": "RAJ PRAJAPATI",
                  "relationNameInRegionalLang": "राज",
                  "fatherName": "RAJ PRAJAPATI",
                  "dob": "2000-12-07",
                  "gender": "Male",
                  "address": "GOVT JUNIOR COLLEGE SIRWAR",
                  "photoUrl": "https://example.com/voter-photos/UAI4574761.jpeg",
                  "splitAddress": {
                    "district": [
                      "INDORE"
                    ],
                    "state": [
                      "Madhya Pradesh"
                    ],
                    "city": [
                      "SANER"
                    ],
                    "pincode": "560034",
                    "country": [
                      "IN",
                      "IND",
                      "INDIA"
                    ],
                    "addressLine": "GOVT JUNIOR COLLEGE SIRWAR"
                  },
                  "state": "Madhya Pradesh",
                  "assemblyConstituencyNumber": "211",
                  "assemblyConstituency": "SANER",
                  "parliamentaryConstituencyNumber": "25",
                  "parliamentaryConstituency": "INDORE",
                  "partNumber": "27",
                  "partName": "SIRWAR",
                  "serialNumber": "713",
                  "pollingStation": "GOVT JUNIOR COLLEGE SIRWAR"
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "voterId must match the format ABC1234567",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.voter.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Voter ID documentation",
          "url": "https://developer.stampmitra.in/docs/verification/voter-id"
        }
      }
    },
    "/v1/verify/driving-license": {
      "post": {
        "operationId": "verifyDrivingLicense",
        "summary": "Verify Driving Licence",
        "description": "Validates and verifies a Driving Licence. Requires the `verification.dl.read` scope on the API key. Metered as `dl.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/driving-license`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DrivingLicenseVerifyRequest"
              },
              "example": {
                "dlNumber": "MH1420110012345",
                "dob": "1990-01-01"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DrivingLicenseVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-2Q56T8",
                  "verificationId": "VRF-4H8Z2M6TQ9KW",
                  "valid": true,
                  "dlNumber": "KA51201900089895",
                  "dob": "1994-08-05",
                  "status": "VALID",
                  "dlStatus": "VALID",
                  "name": "JOHN DOE",
                  "fatherOrHusbandName": "JOHN DOE",
                  "address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
                  "validUpto": "09/05/2039",
                  "badgeDetails": [
                    {
                      "badgeIssueDate": null,
                      "badgeNo": null,
                      "classOfVehicle": [
                        "LMV"
                      ]
                    }
                  ],
                  "dlValidity": {
                    "nonTransport": {
                      "to": "09/05/2039",
                      "from": "10/05/2019"
                    },
                    "hazardousValidTill": null,
                    "transport": {
                      "to": null,
                      "from": null
                    },
                    "hillValidTill": null
                  },
                  "detailsOfDrivingLicence": {
                    "dateOfIssue": "10/05/2019",
                    "dateOfLastTransaction": null,
                    "status": null,
                    "lastTransactedAt": null,
                    "name": "JOHN DOE",
                    "fatherOrHusbandName": "JOHN DOE",
                    "addressList": [
                      {
                        "completeAddress": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
                        "type": "permanent",
                        "splitAddress": {
                          "district": [
                            "BANGALORE"
                          ],
                          "state": [
                            "KARNATAKA",
                            "KA"
                          ],
                          "city": [
                            "BELLANDUR"
                          ],
                          "pincode": "560103",
                          "country": [
                            "IN",
                            "IND",
                            "INDIA"
                          ],
                          "addressLine": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
                        }
                      },
                      {
                        "completeAddress": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
                        "type": "temporary",
                        "splitAddress": {
                          "district": [
                            "BANGALORE"
                          ],
                          "state": [
                            "KARNATAKA",
                            "KA"
                          ],
                          "city": [
                            "BELLANDUR"
                          ],
                          "pincode": "560103",
                          "country": [
                            "IN",
                            "IND",
                            "INDIA"
                          ],
                          "addressLine": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
                        }
                      }
                    ],
                    "address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
                    "photoUrl": "https://example.com/dl-photos/KA51201900089895.jpeg",
                    "splitAddress": {
                      "district": [
                        "BANGALORE"
                      ],
                      "state": [
                        ""
                      ],
                      "city": [
                        "BELLANDUR"
                      ],
                      "pincode": "560103",
                      "country": [
                        "IN",
                        "IND",
                        "INDIA"
                      ],
                      "addressLine": "FLAT NO D-901 SUNCITY,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
                    },
                    "covDetails": []
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "dlNumber must match the format MH1420110012345",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.dl.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Driving Licence documentation",
          "url": "https://developer.stampmitra.in/docs/verification/driving-license"
        }
      }
    },
    "/v1/verify/passport": {
      "post": {
        "operationId": "verifyPassport",
        "summary": "Verify Passport",
        "description": "Validates and verifies a Passport. Requires the `verification.passport.read` scope on the API key. Metered as `passport.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/passport`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PassportVerifyRequest"
              },
              "example": {
                "fileNumber": "PA1079341954215",
                "dob": "1998-12-31",
                "name": "John doe"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PassportVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-4W19X6",
                  "verificationId": "VRF-6N2R8D4YTH3K",
                  "valid": true,
                  "status": "VALID",
                  "fileNumber": "PA1079341954215",
                  "name": "John doe",
                  "dob": "1998-12-31",
                  "applicationType": "NORMAL",
                  "applicationReceivedDate": "2003-12-31"
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "fileNumber must match the format PA1079341954215",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.passport.read",
        "x-price-inr-per-successful-call": 9,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Passport documentation",
          "url": "https://developer.stampmitra.in/docs/verification/passport"
        }
      }
    },
    "/v1/verify/cin": {
      "post": {
        "operationId": "verifyCin",
        "summary": "Verify Company CIN",
        "description": "Validates and verifies a Company CIN. Requires the `verification.cin.read` scope on the API key. Metered as `cin.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/cin`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CinVerifyRequest"
              },
              "example": {
                "cin": "U72900KA2015PTC082988"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CinVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-6R38Y3",
                  "verificationId": "VRF-6C2N9V4HQ7ZE",
                  "valid": true,
                  "status": "VALID",
                  "cin": "U72900KA2015PTC082988",
                  "companyName": "COMPANY NAME",
                  "registrationNumber": 82987,
                  "incorporationDate": "2015-09-23",
                  "cinStatus": "ACTIVE",
                  "email": "abc@xyz.com",
                  "incorporationCountry": "INDIA",
                  "directorDetails": [
                    {
                      "din": "07168822",
                      "name": "Frank Kelvin",
                      "dob": "1997-07-21",
                      "designation": "DIRECTOR",
                      "address": "ST BED KORAMANGALA, BANGALORE, KARNATAKA, INDIA, 566634"
                    },
                    {
                      "din": "07168826",
                      "name": "John Doe",
                      "dob": "1997-02-07",
                      "designation": "DIRECTOR",
                      "address": "GAUTAM NAGAR, NOIDA, UTTAR PRADESH, INDIA, 211361"
                    }
                  ],
                  "companyStatus": "ACTIVE",
                  "directors": [
                    {
                      "din": "07168822",
                      "name": "Frank Kelvin",
                      "designation": "DIRECTOR"
                    },
                    {
                      "din": "07168826",
                      "name": "John Doe",
                      "designation": "DIRECTOR"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "cin must match the format U74999DL2015PTC284009",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.cin.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Company CIN documentation",
          "url": "https://developer.stampmitra.in/docs/verification/cin"
        }
      }
    },
    "/v1/verify/udyam": {
      "post": {
        "operationId": "verifyUdyam",
        "summary": "Verify Udyam Registration",
        "description": "Validates and verifies a Udyam Registration. Requires the `verification.udyam.read` scope on the API key. Metered as `udyam.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/udyam`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UdyamVerifyRequest"
              },
              "example": {
                "udyamNumber": "UDYAM-UP-43-1234567"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UdyamVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-5U29V7",
                  "verificationId": "VRF-7K3M9Q2XH4TB",
                  "found": true,
                  "status": "SUCCESS",
                  "udyamStatus": "SUCCESS",
                  "udyamNumber": "UDYAM-UP-43-1234567",
                  "enterpriseName": "helloscholar",
                  "organizationType": "Proprietary",
                  "majorActivity": "Services",
                  "socialCategory": "General",
                  "dateOfIncorporation": "2020-05-29",
                  "dateOfCommencement": "2020-05-29",
                  "dateOfUdyamRegistration": "2022-01-02",
                  "enterpriseType": "Micro",
                  "classificationYear": "2024-25",
                  "classificationDate": "2025-06-02",
                  "certificateUrl": "https://udyamregistration.gov.in/Udyam_Download/UDYAM-UP-43-1234567.pdf",
                  "classificationHistory": [
                    {
                      "serialNumber": "1",
                      "classificationYear": "2024-25",
                      "enterpriseType": "Micro",
                      "classificationDate": "2025-06-02"
                    },
                    {
                      "serialNumber": "2",
                      "classificationYear": "2023-24",
                      "enterpriseType": "Micro",
                      "classificationDate": "2023-05-09"
                    },
                    {
                      "serialNumber": "3",
                      "classificationYear": "2022-23",
                      "enterpriseType": "Micro",
                      "classificationDate": "2022-06-26"
                    }
                  ],
                  "splitAddress": {
                    "flat": "Ground Floor",
                    "building": "05 Raman Vihar",
                    "village": "Naubasta",
                    "block": "Naubasta",
                    "street": "Naubasta",
                    "city": "Kanpur",
                    "district": "KANPUR NAGAR",
                    "state": "UTTAR PRADESH",
                    "pincode": "208021",
                    "mobile": "70*****210",
                    "email": "helloscholar.edu@gmail.com"
                  },
                  "unitLocations": [
                    {
                      "serialNumber": "1",
                      "unitName": "hellobanker",
                      "flat": "Ground Floor",
                      "building": "05 Raman Vihar Naubasta",
                      "village": "KANPUR NAGAR",
                      "block": "KANPUR NAGAR",
                      "street": "05 Raman Vihar Naubasta Bamba",
                      "city": "Kanpur",
                      "district": "KANPUR NAGAR",
                      "state": "UTTAR PRADESH",
                      "pincode": "208021"
                    },
                    {
                      "serialNumber": "2",
                      "unitName": "helloscholar",
                      "flat": "Ground Floor",
                      "building": "05 Raman Vihar Naubasta",
                      "village": "Kanpur",
                      "block": "Kanpur",
                      "street": "Kanpur",
                      "city": "Kanpur",
                      "district": "KANPUR NAGAR",
                      "state": "UTTAR PRADESH",
                      "pincode": "208021"
                    }
                  ],
                  "nicCodes": [
                    {
                      "serialNumber": "1",
                      "nic2Digit": "85",
                      "nic2Description": "Education",
                      "nic4Digit": "8550",
                      "nic4Description": "Educational support services",
                      "nic5Digit": "85500",
                      "nic5Description": "Educational support services",
                      "activity": "Services",
                      "date": "2022-01-02"
                    }
                  ],
                  "dic": "KANPUR NAGAR",
                  "msmeDi": "KANPUR"
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "udyamNumber must match the format UDYAM-MH-12-1234567",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.udyam.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Udyam Registration documentation",
          "url": "https://developer.stampmitra.in/docs/verification/udyam"
        }
      }
    },
    "/v1/verify/pan-to-gstin": {
      "post": {
        "operationId": "lookupGstinsByPan",
        "summary": "Verify PAN to GSTIN",
        "description": "Validates and verifies a PAN to GSTIN. Requires the `verification.pan_to_gstin.read` scope on the API key. Metered as `pan.to_gstin` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/pan-to-gstin`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PanToGstinRequest"
              },
              "example": {
                "pan": "ABCDE1234F"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanToGstinResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-1L67Z5",
                  "found": true,
                  "gstins": [
                    {
                      "gstin": "07AAAAA1111A1Z1",
                      "state": "Delhi",
                      "status": "Active"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "pan must match the format ABCDE1234F",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.pan_to_gstin.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "PAN to GSTIN documentation",
          "url": "https://developer.stampmitra.in/docs/verification/pan-to-gstin"
        }
      }
    },
    "/v1/verify/pan-to-udyam": {
      "post": {
        "operationId": "lookupUdyamByPan",
        "summary": "Verify PAN to Udyam",
        "description": "Validates and verifies a PAN to Udyam. Requires the `verification.pan_to_udyam.read` scope on the API key. Metered as `pan.to_udyam` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/pan-to-udyam`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PanToUdyamRequest"
              },
              "example": {
                "pan": "ABCPV1234D"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanToUdyamResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-0A44B2",
                  "verificationId": "VRF-6N2P8W4RJ7ZK",
                  "found": true,
                  "status": "SUCCESS",
                  "pan": "ABCPV1234D",
                  "udyam": "UDYAM-MH-26-1234567",
                  "udyamNumber": "UDYAM-MH-26-1234567"
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "pan must match the format ABCDE1234F",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.pan_to_udyam.read",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "PAN to Udyam documentation",
          "url": "https://developer.stampmitra.in/docs/verification/pan-to-udyam"
        }
      }
    },
    "/v1/verify/bank-account": {
      "post": {
        "operationId": "verifyBankAccount",
        "summary": "Verify Bank Account",
        "description": "Validates and verifies a Bank Account. Requires the `verification.bank-account.read` scope on the API key. Metered as `bank-account.verify` after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by `/v1/verify/bank-account`, including its `referenceId` field.",
        "tags": [
          "Verification"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountVerifyRequest"
              },
              "example": {
                "accountNumber": "000123456789",
                "ifsc": "ICIC0001234",
                "name": "Ravi Kumar"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountVerificationResult"
                },
                "example": {
                  "referenceId": "SMV-20260927-3B71A0",
                  "valid": true,
                  "nameAtBank": "RAVI KUMAR",
                  "bankName": "ICICI Bank",
                  "utr": "017952100012345",
                  "city": "Mumbai",
                  "branch": "Andheri West",
                  "micr": "400229002",
                  "nameMatchScore": "100",
                  "nameMatchResult": "GOOD_MATCH",
                  "accountStatus": "ACCOUNT_IS_VALID",
                  "accountStatusCode": "1",
                  "ifscDetails": {
                    "bank": "ICICI Bank",
                    "ifsc": "ICIC0001234",
                    "micr": "400229002",
                    "address": "Andheri West, Mumbai",
                    "city": "Mumbai",
                    "state": "Maharashtra",
                    "branch": "Andheri West"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "accountNumber must be a 9-18 digit numeric bank account number",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "verification.bank-account.read",
        "x-price-inr-per-successful-call": 4,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Bank Account documentation",
          "url": "https://developer.stampmitra.in/docs/verification/bank-account"
        }
      }
    },
    "/v1/services": {
      "get": {
        "operationId": "listServices",
        "summary": "List entitled services (generic catalog, covers e-Stamp services too)",
        "description": "Returns every service (verification AND e-Stamp) this organization is entitled to. There is no e-Stamp-specific catalog endpoint yet; e-Stamp instruments surface here as regular service entries once entitled.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceList"
                },
                "example": [
                  {
                    "serviceCode": "estamp.instrument.rent_agreement",
                    "name": "Rent Agreement e-Stamp",
                    "category": "estamp",
                    "basePrice": "500.00",
                    "currency": "INR",
                    "isActive": true,
                    "gstRatePercent": "18.00",
                    "defaultGovernmentFee": null,
                    "processingTimeHours": 24,
                    "guestCheckoutEnabled": false,
                    "requiresDocuments": true,
                    "uiSchema": null,
                    "entitled": true,
                    "entitlementUpdatedAt": "2026-09-01T10:00:00.000Z"
                  }
                ]
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-required-scope": "services.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "e-Stamp Catalog Discovery documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-catalog"
        }
      }
    },
    "/v1/services/{serviceCode}": {
      "get": {
        "operationId": "getService",
        "summary": "Get one entitled service's detail",
        "description": "Detail for a single serviceCode, if entitled and active.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "serviceCode",
            "in": "path",
            "required": true,
            "description": "The service's unique code.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Service"
                },
                "example": {
                  "serviceCode": "estamp.instrument.rent_agreement",
                  "name": "Rent Agreement e-Stamp",
                  "category": "estamp",
                  "basePrice": "500.00",
                  "currency": "INR",
                  "isActive": true,
                  "gstRatePercent": "18.00",
                  "defaultGovernmentFee": null,
                  "processingTimeHours": 24,
                  "guestCheckoutEnabled": false,
                  "requiresDocuments": true,
                  "uiSchema": null,
                  "entitled": true,
                  "entitlementUpdatedAt": "2026-09-01T10:00:00.000Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-required-scope": "services.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "e-Stamp Catalog Discovery documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-catalog"
        }
      }
    },
    "/v1/estamp/schema/{serviceCode}": {
      "get": {
        "operationId": "getEstampSchema",
        "summary": "Get the e-Stamp input field schema",
        "description": "Generic form-rendering metadata for the e-Stamp product. `serviceCode` is accepted for forward-compatible route shape parity with other schema lookups; e-Stamp has exactly one schema regardless of its value. Requires the `estamp.read` scope.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "serviceCode",
            "in": "path",
            "required": true,
            "description": "serviceCode from the URL path.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampSchemaResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "estamp.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "e-Stamp Schema / Options documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-schema-options"
        }
      }
    },
    "/v1/estamp/states": {
      "get": {
        "operationId": "listEstampStates",
        "summary": "List e-Stamp-eligible states",
        "description": "Served from StampMitra's synced master-data catalogue. Requires the `estamp.read` scope.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampStatesResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "estamp.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "State / Instrument / Article Lookup documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-state-instrument-article"
        }
      }
    },
    "/v1/estamp/states/{stateCode}/instruments": {
      "get": {
        "operationId": "listEstampInstruments",
        "summary": "List instruments (articles) for a state",
        "description": "There is no separate instrument entity distinct from an article - this returns the same state-scoped article catalogue as the articles endpoint below. Requires the `estamp.read` scope.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "stateCode",
            "in": "path",
            "required": true,
            "description": "stateCode from the URL path.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampInstrumentsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "estamp.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "State / Instrument / Article Lookup documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-state-instrument-article"
        }
      }
    },
    "/v1/estamp/instruments/{instrumentCode}/articles": {
      "get": {
        "operationId": "listEstampArticles",
        "summary": "List articles for an instrument",
        "description": "`instrumentCode` is treated as a state code here - there is no article sub-breakdown below the state-scoped list. Requires the `estamp.read` scope.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instrumentCode",
            "in": "path",
            "required": true,
            "description": "instrumentCode from the URL path.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampArticlesResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "estamp.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "State / Instrument / Article Lookup documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-state-instrument-article"
        }
      }
    },
    "/v1/estamp/duty/calculate": {
      "post": {
        "operationId": "calculateEstampDuty",
        "summary": "Calculate authoritative e-Stamp duty + service charges",
        "description": "Runs the one authoritative pricing calculation; the response amount is never recalculated or overridden client-side. Requires the `estamp.duty.calculate` scope. Metered against your fulfilment wallet.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstampDutyCalculateRequest"
              },
              "example": {
                "stateCode": "MH",
                "articleCode": "5",
                "stampDutyAmount": 500
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampDutyCalculation"
                }
              }
            }
          },
          "201": {
            "description": "Success, same body as 200. The backend documents 200 but NestJS defaults POST handlers to 201, so clients must accept any 2xx.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampDutyCalculation"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "estamp.duty.calculate",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Duty / Value Calculation documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-duty-value"
        }
      }
    },
    "/v1/estamp/orders/{orderId}/parties": {
      "post": {
        "operationId": "addEstampOrderParties",
        "summary": "Attach/correct e-Stamp order party (customer) details",
        "description": "Attaches or corrects the customer/party details on an existing e-Stamp order. Requires the `estamp.parties.write` scope. Metered against your fulfilment wallet.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "description": "The e-Stamp order id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstampPartiesRequest"
              },
              "example": {
                "customerName": "Rahul Kumar",
                "customerMobile": "+919876543210",
                "customerEmail": "rahul@example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampPartiesResponse"
                }
              }
            }
          },
          "201": {
            "description": "Success, same body as 200. The backend documents 200 but NestJS defaults POST handlers to 201, so clients must accept any 2xx.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstampPartiesResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "estamp.parties.write",
        "x-price-inr-per-successful-call": 5,
        "x-metered": true,
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Parties documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-parties"
        }
      }
    },
    "/v1/orders": {
      "post": {
        "operationId": "createOrder",
        "summary": "Create an order (generic - works for any entitled serviceCode, including e-Stamp)",
        "description": "Generic order-creation endpoint. For e-Stamp, pass an e-Stamp `serviceCode` (from GET /v1/services) and put instrument/party/value details in the free-form `details` object. There is no e-Stamp-specific request/response contract yet (no first-class `state`, `article`, `parties[]` fields) - the shape of `details` for e-Stamp is not finalized upstream.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              },
              "example": {
                "externalOrderId": "ord_ext_123",
                "externalCustomerId": "cust_ext_456",
                "serviceCode": "estamp.instrument.rent_agreement",
                "details": {
                  "state": "MH",
                  "stampValue": 500,
                  "note": "Shape not finalized - illustrative only"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderReference"
                },
                "example": {
                  "externalOrderId": "ord_ext_123",
                  "createdAt": "2026-10-15T09:41:07.000Z",
                  "serviceCode": "estamp.instrument.rent_agreement"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "orders.create",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "e-Stamp Order Creation documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-orders"
        }
      }
    },
    "/v1/orders/{id}": {
      "get": {
        "operationId": "getOrder",
        "summary": "Get an order",
        "description": "Fetch an order by the externalOrderId you supplied when you created it.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The externalOrderId you supplied when the order was created.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDetail"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "orders.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "e-Stamp Order Creation documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-orders"
        }
      }
    },
    "/v1/orders/{id}/status": {
      "get": {
        "operationId": "getOrderStatus",
        "summary": "Get order status",
        "description": "Poll the current lifecycle status of an order.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The externalOrderId you supplied when the order was created.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "orders.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "e-Stamp Order Creation documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-orders"
        }
      }
    },
    "/v1/payments/intents": {
      "post": {
        "operationId": "createPaymentIntent",
        "summary": "Create a payment intent",
        "description": "Create a payment intent (Razorpay-backed) for an order.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentIntentRequest"
              },
              "example": {
                "externalOrderId": "ord_ext_123",
                "amountMinor": 50000,
                "currency": "INR",
                "paymentConnectionId": "pc_8d1f3a2b"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentIntent"
                },
                "example": {
                  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "externalOrderId": "ord_ext_123",
                  "coreOrderId": null,
                  "amountMinor": 50000,
                  "currency": "INR",
                  "status": "CREATED",
                  "providerIntentId": "order_Nf3k2m9QxPz1Ab",
                  "createdAt": "2026-10-15T09:41:07.000Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-scope": "payments.write",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Payment documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-payment"
        }
      }
    },
    "/v1/payments/intents/{id}": {
      "get": {
        "operationId": "getPaymentIntent",
        "summary": "Get a payment intent",
        "description": "Fetch the current state of a payment intent.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "id from the URL path.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentIntent"
                },
                "example": {
                  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "externalOrderId": "ord_ext_123",
                  "coreOrderId": null,
                  "amountMinor": 50000,
                  "currency": "INR",
                  "status": "CREATED",
                  "providerIntentId": "order_Nf3k2m9QxPz1Ab",
                  "createdAt": "2026-10-15T09:41:07.000Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "x-required-scope": "payments.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Payment documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-payment"
        }
      }
    },
    "/v1/orders/{id}/payment": {
      "get": {
        "operationId": "getOrderPayment",
        "summary": "Get an order's payment",
        "description": "Fetch the payment associated with a given order.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The externalOrderId you supplied when the order was created.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderPaymentResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "orders.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Payment documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-payment"
        }
      }
    },
    "/v1/orders/{id}/documents": {
      "get": {
        "operationId": "listOrderDocuments",
        "summary": "List documents for an order",
        "description": "List generated documents (e.g. the e-Stamp certificate PDF) for a completed order.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The externalOrderId you supplied when the order was created.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDocumentsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "documents.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Order Status & Document Access documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-documents"
        }
      }
    },
    "/v1/orders/{id}/documents/{documentId}/download": {
      "get": {
        "operationId": "getOrderDocumentDownloadUrl",
        "summary": "Get a document download URL",
        "description": "Get a (typically short-lived, signed) URL to download a specific document.",
        "tags": [
          "e-Stamp"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The externalOrderId you supplied when the order was created.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "description": "documentId from the URL path.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentDownloadUrl"
                },
                "example": {
                  "downloadUrl": "https://files.stampmitra.in/signed/doc_00789.pdf?token=abc123",
                  "expiresAt": "2026-10-15T09:56:07.000Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-required-scope": "documents.read",
        "x-idempotent": true,
        "x-retry-safe": true,
        "externalDocs": {
          "description": "Order Status & Document Access documentation",
          "url": "https://developer.stampmitra.in/docs/estamp/estamp-documents"
        }
      }
    },
    "/v1/usage/summary": {
      "get": {
        "operationId": "getUsageSummary",
        "summary": "Usage summary",
        "description": "Current billing period totals, calls by service, calls by day and a 6-month calls-by-period trend for the organization that owns the API key.",
        "tags": [
          "Usage & Logs"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageSummary"
                },
                "example": {
                  "currentPeriod": {
                    "start": "2026-10-01T00:00:00.000Z",
                    "end": "2026-11-01T00:00:00.000Z"
                  },
                  "totalApiRequests": 1240,
                  "callsByService": {
                    "pan.verify": 800,
                    "estamp": 440
                  },
                  "callsByPeriod": [
                    {
                      "period": "2026-10",
                      "count": 1240
                    }
                  ],
                  "callsByDay": [
                    {
                      "day": "2026-10-15",
                      "count": 62
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-idempotent": true,
        "x-retry-safe": true
      }
    },
    "/v1/account/balance": {
      "get": {
        "operationId": "getAccountBalance",
        "summary": "Wallet balance and low-balance state",
        "description": "Your wallet balance in rupees and paise, the low-balance threshold (Rs 500 by default), the state (OK, LOW_BALANCE, FINISHED), how many calls it covers at the cheapest approved price and at your 7-day average price, the last top-up and the signup credit still left. Any key with a verification scope can read its own organization's balance. A sandbox key gets a sandbox notice and zero amounts, never a real balance. Rate limit: 60 per minute per key. Amounts exclude GST.",
        "tags": [
          "Usage & Logs"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountBalance"
                },
                "example": {
                  "generatedAt": "2026-10-29T10:15:00.000Z",
                  "environment": "LIVE",
                  "sandbox": false,
                  "notice": null,
                  "currency": "INR",
                  "balance": {
                    "paise": 125050,
                    "rupees": 1250.5
                  },
                  "available": {
                    "paise": 125050,
                    "rupees": 1250.5
                  },
                  "state": "OK",
                  "lowBalance": false,
                  "lowBalanceThreshold": {
                    "paise": 50000,
                    "rupees": 500
                  },
                  "estimatedCallsRemaining": {
                    "atCheapestPrice": 312,
                    "cheapestProduct": {
                      "serviceCode": "bank-account.verify",
                      "name": "Bank account verification",
                      "price": {
                        "paise": 400,
                        "rupees": 4
                      }
                    },
                    "atSevenDayAverage": 142,
                    "sevenDayAverageCost": {
                      "paise": 880,
                      "rupees": 8.8
                    }
                  },
                  "lastTopUp": {
                    "amount": {
                      "paise": 100000,
                      "rupees": 1000
                    },
                    "at": "2026-10-21T08:00:00.000Z"
                  },
                  "signupCredit": {
                    "granted": {
                      "paise": 10000,
                      "rupees": 100
                    },
                    "left": {
                      "paise": 0,
                      "rupees": 0
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "X-Wallet-State": {
                "$ref": "#/components/headers/WalletState"
              },
              "X-Wallet-Balance-Low": {
                "$ref": "#/components/headers/WalletBalanceLow"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-idempotent": true,
        "x-retry-safe": true
      }
    },
    "/v1/account/usage": {
      "get": {
        "operationId": "getAccountUsage",
        "summary": "Usage this month and last month, with limits",
        "description": "Current and previous calendar month in IST: requests, billed requests, failed-not-billed, spend before GST, a per-product breakdown and a per-day series, plus today against your limits (requests per minute and per day). A sandbox key sees its own sandbox usage with zero spend. Rate limit: 60 per minute per key.",
        "tags": [
          "Usage & Logs"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountUsage"
                },
                "example": {
                  "generatedAt": "2026-10-29T10:15:00.000Z",
                  "environment": "LIVE",
                  "sandbox": false,
                  "notice": null,
                  "timezone": "Asia/Kolkata",
                  "currentMonth": {
                    "month": "2026-10",
                    "from": "2026-09-30T18:30:00.000Z",
                    "to": "2026-10-29T10:15:00.000Z",
                    "gstIncluded": false,
                    "requests": 2,
                    "billedRequests": 1,
                    "failedNotBilled": 1,
                    "successNotBilled": 0,
                    "pendingBilling": 0,
                    "spend": {
                      "paise": 500,
                      "rupees": 5
                    },
                    "byProduct": [
                      {
                        "serviceCode": "pan.verify",
                        "name": "PAN verification",
                        "requests": 2,
                        "billedRequests": 1,
                        "failedNotBilled": 1,
                        "successNotBilled": 0,
                        "pendingBilling": 0,
                        "spend": {
                          "paise": 500,
                          "rupees": 5
                        }
                      }
                    ],
                    "daily": [
                      {
                        "date": "2026-10-28",
                        "requests": 1,
                        "billedRequests": 1,
                        "failedNotBilled": 0,
                        "successNotBilled": 0,
                        "pendingBilling": 0,
                        "spend": {
                          "paise": 500,
                          "rupees": 5
                        }
                      },
                      {
                        "date": "2026-10-29",
                        "requests": 1,
                        "billedRequests": 0,
                        "failedNotBilled": 1,
                        "successNotBilled": 0,
                        "pendingBilling": 0,
                        "spend": {
                          "paise": 0,
                          "rupees": 0
                        }
                      }
                    ]
                  },
                  "previousMonth": {
                    "month": "2026-09",
                    "from": "2026-08-31T18:30:00.000Z",
                    "to": "2026-09-30T18:29:59.999Z",
                    "gstIncluded": false,
                    "requests": 0,
                    "billedRequests": 0,
                    "failedNotBilled": 0,
                    "successNotBilled": 0,
                    "pendingBilling": 0,
                    "spend": {
                      "paise": 0,
                      "rupees": 0
                    },
                    "byProduct": [],
                    "daily": []
                  },
                  "today": {
                    "date": "2026-10-29",
                    "requests": 1,
                    "billedRequests": 0,
                    "failedNotBilled": 1,
                    "spend": {
                      "paise": 0,
                      "rupees": 0
                    },
                    "requestsPerDay": {
                      "limit": null,
                      "used": 1,
                      "remaining": null
                    }
                  },
                  "limits": {
                    "requestsPerMinute": {
                      "limit": 60,
                      "source": "PLAN"
                    },
                    "requestsPerDay": {
                      "limit": null,
                      "source": "NONE"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "X-Wallet-State": {
                "$ref": "#/components/headers/WalletState"
              },
              "X-Wallet-Balance-Low": {
                "$ref": "#/components/headers/WalletBalanceLow"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-idempotent": true,
        "x-retry-safe": true
      }
    },
    "/v1/logs": {
      "get": {
        "operationId": "listLogs",
        "summary": "List request logs",
        "description": "Paginated request-log listing for the organization that owns the API key. Use nextCursor to fetch the next page.",
        "tags": [
          "Usage & Logs"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "ISO date/time lower bound (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "ISO date/time upper bound (exclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "description": "Filter to one service code, e.g. estamp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "success or failure.",
            "schema": {
              "type": "string",
              "enum": [
                "success",
                "failure"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, default 50, max 200.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogsPage"
                },
                "example": {
                  "items": [
                    {
                      "id": "b3f1c2a4-7d5e-4a6b-9c8d-1e2f3a4b5c6d",
                      "createdAt": "2026-10-15T09:41:07.000Z",
                      "actorType": "api_key",
                      "actorId": null,
                      "service": "pan.verify",
                      "metadata": null
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "Request failed validation, or the organization is not entitled to the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "BAD_REQUEST",
                    "message": "status must be 'success' or 'failure'",
                    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-idempotent": true,
        "x-retry-safe": true,
        "x-pagination": {
          "style": "cursor",
          "cursorParam": "cursor",
          "limitParam": "limit",
          "itemsField": "items",
          "nextCursorField": "nextCursor"
        }
      }
    },
    "/v1/webhooks/events": {
      "get": {
        "operationId": "listWebhookEvents",
        "summary": "List webhook delivery attempts",
        "description": "Paginated list of your organization's own webhook delivery attempts.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEventsPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "webhooks.events.read",
        "x-idempotent": true,
        "x-retry-safe": true
      }
    },
    "/v1/webhooks/events/{id}/replay": {
      "post": {
        "operationId": "replayWebhookEvent",
        "summary": "Replay a webhook delivery",
        "description": "Re-fires a specific webhook delivery attempt: the exact same payload through the same delivery path.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook delivery attempt id (UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookReplayResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/BadGateway"
          }
        },
        "x-required-scope": "webhooks.events.replay",
        "x-idempotent": false,
        "x-retry-safe": false
      }
    }
  },
  "webhooks": {
    "order.created": {
      "post": {
        "operationId": "receiveOrderCreated",
        "summary": "An order was created.",
        "description": "Delivered to an endpoint you registered when the order event ORDER_CREATED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "ORDER_CREATED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.payment_confirmed": {
      "post": {
        "operationId": "receiveOrderPaymentConfirmed",
        "summary": "Payment for an order was confirmed.",
        "description": "Delivered to an endpoint you registered when the order event PAYMENT_CONFIRMED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "PAYMENT_CONFIRMED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.fulfilment_started": {
      "post": {
        "operationId": "receiveOrderFulfilmentStarted",
        "summary": "Fulfilment of an order has started.",
        "description": "Delivered to an endpoint you registered when the order event FULFILMENT_STARTED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "FULFILMENT_STARTED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.fulfilment_completed": {
      "post": {
        "operationId": "receiveOrderFulfilmentCompleted",
        "summary": "An order finished fulfilling successfully.",
        "description": "Delivered to an endpoint you registered when the order event FULFILMENT_COMPLETED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "FULFILMENT_COMPLETED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.failed": {
      "post": {
        "operationId": "receiveOrderFailed",
        "summary": "An order failed.",
        "description": "Delivered to an endpoint you registered when the order event ORDER_FAILED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "ORDER_FAILED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.cancelled": {
      "post": {
        "operationId": "receiveOrderCancelled",
        "summary": "An order was cancelled.",
        "description": "Delivered to an endpoint you registered when the order event ORDER_CANCELLED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "ORDER_CANCELLED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.refund_completed": {
      "post": {
        "operationId": "receiveOrderRefundCompleted",
        "summary": "A refund for an order completed.",
        "description": "Delivered to an endpoint you registered when the order event REFUND_COMPLETED occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "REFUND_COMPLETED",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    },
    "order.document_ready": {
      "post": {
        "operationId": "receiveOrderDocumentReady",
        "summary": "A generated document (for example the e-Stamp certificate) is ready.",
        "description": "Delivered to an endpoint you registered when the order event DOCUMENT_READY occurs. Verify X-Webhook-Signature before trusting the body, and respond with any 2xx to acknowledge. A non-2xx response or timeout is retried with exponential backoff (1 min, 5 min, 30 min, 2 h, 12 h; 6 attempts in total) before the delivery is dead-lettered.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignature"
          },
          {
            "$ref": "#/components/parameters/WebhookTimestamp"
          },
          {
            "$ref": "#/components/parameters/WebhookEventId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "coreOrderId": "core_order_9f3a1c2b8e4d4a5f",
                "coreEventType": "DOCUMENT_READY",
                "occurredAt": "2026-09-25T09:05:00.000Z"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged. Any 2xx status marks the delivery as succeeded."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key as `Authorization: Bearer sk_test_...` or `sk_live_...`."
      },
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Alternative to the Authorization header."
      }
    },
    "schemas": {
      "PanVerifyRequest": {
        "type": "object",
        "properties": {
          "pan": {
            "type": "string",
            "description": "The PAN to verify: 5 letters, 4 digits, 1 letter.",
            "pattern": "^[A-Z]{5}[0-9]{4}[A-Z]$",
            "minLength": 10,
            "maxLength": 10,
            "examples": [
              "ABCDE1234F"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name to cross-check against the PAN record.",
            "maxLength": 256
          }
        },
        "required": [
          "pan"
        ],
        "description": "Verify a PAN.",
        "additionalProperties": false
      },
      "GstinVerifyRequest": {
        "type": "object",
        "properties": {
          "gstin": {
            "type": "string",
            "description": "The GSTIN to verify (15 characters).",
            "pattern": "^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z][1-9A-Z]Z[0-9A-Z]$",
            "minLength": 15,
            "maxLength": 15,
            "examples": [
              "07AAAAA1111A1Z1"
            ]
          },
          "businessName": {
            "type": "string",
            "description": "Business (legal or trade) name to cross-check against the registration.",
            "maxLength": 256
          }
        },
        "required": [
          "gstin"
        ],
        "description": "Verify a GSTIN.",
        "additionalProperties": false
      },
      "VehicleRcVerifyRequest": {
        "type": "object",
        "properties": {
          "vehicleNumber": {
            "type": "string",
            "description": "The vehicle registration number to verify.",
            "pattern": "^[A-Z]{2}[0-9]{1,2}[A-Z]{0,3}[0-9]{4}$",
            "examples": [
              "MH12AB1234"
            ]
          }
        },
        "required": [
          "vehicleNumber"
        ],
        "description": "Verify a vehicle registration certificate.",
        "additionalProperties": false
      },
      "VoterIdVerifyRequest": {
        "type": "object",
        "properties": {
          "voterId": {
            "type": "string",
            "description": "The voter ID (EPIC number) to verify.",
            "pattern": "^[A-Z]{3}[0-9]{7}$",
            "examples": [
              "UAI4574761"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name to cross-check against the voter's registered name.",
            "maxLength": 256
          }
        },
        "required": [
          "voterId"
        ],
        "description": "Verify a Voter ID.",
        "additionalProperties": false
      },
      "DrivingLicenseVerifyRequest": {
        "type": "object",
        "properties": {
          "dlNumber": {
            "type": "string",
            "description": "The driving licence number to verify.",
            "pattern": "^[A-Z]{2}[0-9]{2}[0-9]{11}$",
            "examples": [
              "MH1420110012345"
            ]
          },
          "dob": {
            "type": "string",
            "description": "Date of birth of the licence holder, ISO 8601 date (YYYY-MM-DD).",
            "format": "date"
          }
        },
        "required": [
          "dlNumber",
          "dob"
        ],
        "description": "Verify a driving licence.",
        "additionalProperties": false
      },
      "PassportVerifyRequest": {
        "type": "object",
        "properties": {
          "fileNumber": {
            "type": "string",
            "description": "The Indian passport application file number (not the passport number).",
            "pattern": "^[A-Z]{2}[0-9]{13}$",
            "examples": [
              "PA1079341954215"
            ]
          },
          "dob": {
            "type": "string",
            "description": "Date of birth of the applicant, ISO 8601 date (YYYY-MM-DD).",
            "format": "date"
          },
          "name": {
            "type": "string",
            "description": "Name to cross-check against the passport application.",
            "maxLength": 256
          }
        },
        "required": [
          "fileNumber",
          "dob"
        ],
        "description": "Verify an Indian passport application.",
        "additionalProperties": false
      },
      "CinVerifyRequest": {
        "type": "object",
        "properties": {
          "cin": {
            "type": "string",
            "description": "The Corporate Identification Number to verify.",
            "pattern": "^[LU][0-9]{5}[A-Z]{2}[0-9]{4}[A-Z]{3}[0-9]{6}$",
            "examples": [
              "U74999DL2015PTC284009"
            ]
          }
        },
        "required": [
          "cin"
        ],
        "description": "Verify a company CIN.",
        "additionalProperties": false
      },
      "UdyamVerifyRequest": {
        "type": "object",
        "properties": {
          "udyamNumber": {
            "type": "string",
            "description": "The Udyam (MSME) registration number to verify.",
            "pattern": "^UDYAM-[A-Z]{2}-[0-9]{2}-[0-9]{7}$",
            "examples": [
              "UDYAM-UP-43-1234567"
            ]
          }
        },
        "required": [
          "udyamNumber"
        ],
        "description": "Verify a Udyam registration.",
        "additionalProperties": false
      },
      "PanToGstinRequest": {
        "type": "object",
        "properties": {
          "pan": {
            "type": "string",
            "description": "The PAN to look registered GSTIN(s) up for.",
            "pattern": "^[A-Z]{5}[0-9]{4}[A-Z]$",
            "minLength": 10,
            "maxLength": 10,
            "examples": [
              "ABCDE1234F"
            ]
          }
        },
        "required": [
          "pan"
        ],
        "description": "Resolve a PAN to its GSTIN(s).",
        "additionalProperties": false
      },
      "PanToUdyamRequest": {
        "type": "object",
        "properties": {
          "pan": {
            "type": "string",
            "description": "The PAN to look the associated Udyam registration up for.",
            "pattern": "^[A-Z]{5}[0-9]{4}[A-Z]$",
            "minLength": 10,
            "maxLength": 10,
            "examples": [
              "ABCPV1234D"
            ]
          }
        },
        "required": [
          "pan"
        ],
        "description": "Resolve a PAN to its Udyam registration.",
        "additionalProperties": false
      },
      "BankAccountVerifyRequest": {
        "type": "object",
        "properties": {
          "accountNumber": {
            "type": "string",
            "description": "Bank account number (9-18 digits).",
            "pattern": "^[0-9]{9,18}$",
            "minLength": 9,
            "maxLength": 18,
            "examples": [
              "000123456789"
            ]
          },
          "ifsc": {
            "type": "string",
            "description": "IFSC code of the account's branch (11 characters).",
            "pattern": "^[A-Z]{4}0[A-Z0-9]{6}$",
            "minLength": 11,
            "maxLength": 11,
            "examples": [
              "ICIC0001234"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name to cross-check against the bank's registered account holder name."
          },
          "phone": {
            "type": "string",
            "description": "Account holder's Indian mobile number, when available; improves match confidence.",
            "pattern": "^(?:\\+?91|0)?[6-9][0-9]{9}$"
          }
        },
        "required": [
          "accountNumber",
          "ifsc"
        ],
        "description": "Verify a bank account (penny drop).",
        "additionalProperties": false
      },
      "EstampDutyCalculateRequest": {
        "type": "object",
        "properties": {
          "stateCode": {
            "type": "string",
            "description": "State code, e.g. MH."
          },
          "articleCode": {
            "type": "string",
            "description": "Stamp article code, from the articles lookup."
          },
          "districtCode": {
            "type": "string",
            "description": "District code, where the state needs one."
          },
          "sroValue": {
            "type": "string",
            "description": "Sub-registrar office value, where the state needs one."
          },
          "stampDutyAmount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Stamp duty amount to calculate charges for; must be positive."
          },
          "doorstepDelivery": {
            "type": "boolean",
            "description": "Whether doorstep delivery is requested."
          },
          "couponCode": {
            "type": "string",
            "description": "Coupon code to apply."
          },
          "masterDataVersion": {
            "type": "integer",
            "description": "Master-data version the caller last read."
          }
        },
        "required": [
          "stateCode",
          "articleCode",
          "stampDutyAmount"
        ],
        "description": "Calculate authoritative e-Stamp duty and service charges.",
        "additionalProperties": false
      },
      "EstampPartiesRequest": {
        "type": "object",
        "properties": {
          "customerName": {
            "type": "string",
            "description": "Customer's full name."
          },
          "partyName": {
            "type": "string",
            "description": "Counter-party's full name."
          },
          "customerMobile": {
            "type": "string",
            "description": "Customer's mobile number."
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer's email address."
          },
          "partyAddress": {
            "type": "string",
            "description": "Party's address."
          },
          "partyPan": {
            "type": "string",
            "description": "Party's PAN."
          }
        },
        "description": "Attach or correct party details on an e-Stamp order. Every field is optional.",
        "additionalProperties": false
      },
      "CreateOrderRequest": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your own reference for this order; re-posting the same value returns the existing order.",
            "minLength": 1,
            "maxLength": 128
          },
          "externalCustomerId": {
            "type": "string",
            "description": "Your own reference for the customer; must already exist (created via the customers API).",
            "minLength": 1,
            "maxLength": 128
          },
          "serviceCode": {
            "type": "string",
            "description": "The entitled service to order (for e-Stamp, an estamp.* code from the services list).",
            "minLength": 1,
            "maxLength": 64
          },
          "details": {
            "type": "object",
            "additionalProperties": true,
            "description": "Free-form, service-specific payload. The e-Stamp field shape is not finalized."
          }
        },
        "required": [
          "externalOrderId",
          "externalCustomerId",
          "serviceCode"
        ],
        "description": "Create an order for any entitled serviceCode.",
        "additionalProperties": false
      },
      "CreatePaymentIntentRequest": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your reference for the order being paid.",
            "minLength": 1
          },
          "amountMinor": {
            "type": "integer",
            "description": "Amount in minor units (paise); positive integer.",
            "exclusiveMinimum": 0
          },
          "currency": {
            "type": "string",
            "description": "Currency code, at least 3 characters, e.g. INR.",
            "minLength": 3
          },
          "paymentConnectionId": {
            "type": "string",
            "description": "Id of one of your active payment connections."
          }
        },
        "required": [
          "externalOrderId",
          "amountMinor",
          "currency",
          "paymentConnectionId"
        ],
        "description": "Create a payment intent for an order.",
        "additionalProperties": false
      },
      "PanVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "pan": {
            "type": "string",
            "description": "The PAN that was verified."
          },
          "type": {
            "type": "string",
            "description": "Holder type, e.g. Individual."
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the PAN is valid. A negative result is still a completed, billable verification."
          },
          "registeredName": {
            "type": "string",
            "description": "Name registered against the PAN."
          },
          "fatherName": {
            "type": "string",
            "description": "Father's name registered against the PAN."
          },
          "panStatus": {
            "type": "string",
            "description": "PAN status, e.g. VALID."
          },
          "panStatusCode": {
            "type": "string",
            "description": "Machine-readable code for panStatus."
          },
          "panStatusDescription": {
            "type": "string",
            "description": "Human-readable description of panStatus."
          },
          "nameMatchResult": {
            "type": "string",
            "description": "Result of cross-checking the supplied name. Only present when a name was supplied."
          },
          "nameMatchScore": {
            "type": "string",
            "description": "Name similarity score (0-100, as a string). Only present when a name was supplied."
          },
          "aadhaarSeedingStatus": {
            "type": "string",
            "description": "Aadhaar seeding status code."
          },
          "aadhaarSeedingStatusDescription": {
            "type": "string",
            "description": "Description of the Aadhaar seeding status."
          },
          "lastUpdatedAt": {
            "type": "string",
            "description": "When the PAN record was last updated."
          },
          "message": {
            "type": "string",
            "description": "Provider message."
          }
        },
        "required": [
          "referenceId",
          "pan",
          "valid"
        ],
        "description": "Result of a PAN verification."
      },
      "GstinSplitAddress": {
        "type": "object",
        "properties": {
          "buildingName": {
            "type": "string",
            "description": "Building or premises name."
          },
          "street": {
            "type": "string",
            "description": "Street / road."
          },
          "location": {
            "type": "string",
            "description": "Locality."
          },
          "buildingNumber": {
            "type": "string",
            "description": "Building or door number."
          },
          "district": {
            "type": "string",
            "description": "District."
          },
          "state": {
            "type": "string",
            "description": "State."
          },
          "city": {
            "type": "string",
            "description": "City."
          },
          "flatNumber": {
            "type": "string",
            "description": "Flat / floor."
          },
          "latitude": {
            "type": "string",
            "description": "Latitude, as a string exactly as the registry returns it."
          },
          "longitude": {
            "type": "string",
            "description": "Longitude, as a string exactly as the registry returns it."
          },
          "pincode": {
            "type": "string",
            "description": "Six-digit PIN code."
          }
        },
        "description": "One GST address split into parts."
      },
      "GstinAdditionalAddress": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "The additional place of business as one address string."
          },
          "splitAddress": {
            "$ref": "#/components/schemas/GstinSplitAddress",
            "description": "The same address split into parts."
          }
        },
        "description": "An additional place of business on the registration."
      },
      "GstinVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "gstin": {
            "type": "string",
            "description": "The GSTIN that was verified. Always present; on an unknown GSTIN it is the number you sent."
          },
          "GSTIN": {
            "type": "string",
            "description": "Same value as gstin. Kept so existing integrations keep working."
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the GSTIN exists and is registered. Always present."
          },
          "legalNameOfBusiness": {
            "type": "string",
            "description": "Legal name of the business registered against this GSTIN."
          },
          "tradeNameOfBusiness": {
            "type": "string",
            "description": "Trade name of the business, when it has one."
          },
          "centerJurisdiction": {
            "type": "string",
            "description": "Central tax jurisdiction (range) of the registration."
          },
          "stateJurisdiction": {
            "type": "string",
            "description": "State tax jurisdiction of the registration."
          },
          "dateOfRegistration": {
            "type": "string",
            "description": "Date of GST registration, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "constitutionOfBusiness": {
            "type": "string",
            "description": "Constitution of the business (legal form), for example Public Limited Company."
          },
          "taxpayerType": {
            "type": "string",
            "description": "Taxpayer type, for example Regular or Composition."
          },
          "gstinStatus": {
            "type": "string",
            "description": "GST registration status, for example Active."
          },
          "lastUpdateDate": {
            "type": "string",
            "description": "Date the registration record was last updated, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "natureOfBusinessActivities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Nature of business activities declared on the registration."
          },
          "principalPlaceAddress": {
            "type": "string",
            "description": "Principal place of business as one address string."
          },
          "principalPlaceSplitAddress": {
            "$ref": "#/components/schemas/GstinSplitAddress",
            "description": "Principal place of business split into parts."
          },
          "additionalAddresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GstinAdditionalAddress"
            },
            "description": "Additional places of business on the registration."
          },
          "message": {
            "type": "string",
            "description": "Human-readable outcome, for example GSTIN Exists or GSTIN Doesn't Exist."
          },
          "legalName": {
            "type": "string",
            "description": "Same value as legalNameOfBusiness. Kept so existing integrations keep working."
          },
          "tradeName": {
            "type": "string",
            "description": "Same value as tradeNameOfBusiness. Kept so existing integrations keep working."
          },
          "registrationStatus": {
            "type": "string",
            "description": "Same value as gstinStatus. Kept so existing integrations keep working."
          },
          "principalPlaceOfBusiness": {
            "type": "string",
            "description": "Same value as principalPlaceAddress. Kept so existing integrations keep working."
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "gstin",
          "GSTIN",
          "valid"
        ],
        "description": "Result of a GSTIN verification: the full registration record. Every field except referenceId, verificationId, gstin, GSTIN and valid is optional and is omitted when the registry does not provide it."
      },
      "VehicleRcVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "regNo": {
            "type": "string",
            "description": "The registration number that was looked up."
          },
          "registrationStatus": {
            "type": "string",
            "description": "Registration status, e.g. VALID."
          },
          "ownerName": {
            "type": "string",
            "description": "Registered owner's name."
          },
          "ownerFatherName": {
            "type": "string",
            "description": "Registered owner's father's name."
          },
          "vehicleClass": {
            "type": "string",
            "description": "Vehicle class, e.g. LMV."
          },
          "vehicleManufacturerName": {
            "type": "string",
            "description": "Manufacturer."
          },
          "model": {
            "type": "string",
            "description": "Model."
          },
          "vehicleColor": {
            "type": "string",
            "description": "Colour."
          },
          "chassis": {
            "type": "string",
            "description": "Chassis number (may be masked)."
          },
          "engine": {
            "type": "string",
            "description": "Engine number (may be masked)."
          },
          "registrationDate": {
            "type": "string",
            "description": "Registration date."
          },
          "rcStatus": {
            "type": "string",
            "description": "RC status, e.g. ACTIVE."
          },
          "rcExpiryDate": {
            "type": "string",
            "description": "RC expiry date."
          },
          "insuranceUpto": {
            "type": "string",
            "description": "Insurance valid-until date."
          },
          "isCommercial": {
            "type": "boolean",
            "description": "Whether the vehicle is registered as commercial."
          }
        },
        "required": [
          "referenceId",
          "regNo",
          "registrationStatus"
        ],
        "description": "Result of a vehicle RC verification."
      },
      "VoterIdSplitAddress": {
        "type": "object",
        "properties": {
          "district": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "District name."
            },
            "description": "District(s)."
          },
          "state": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "State name."
            },
            "description": "State name(s), as a flat list."
          },
          "city": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "City or town name."
            },
            "description": "City or town name(s)."
          },
          "pincode": {
            "type": "string",
            "description": "PIN code."
          },
          "country": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Country code or name."
            },
            "description": "Country, as the codes and name given by the registry."
          },
          "addressLine": {
            "type": "string",
            "description": "The address as one line."
          }
        },
        "description": "The registered address of the voter, split into parts."
      },
      "VoterIdVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the voter ID is valid. Always present."
          },
          "status": {
            "type": "string",
            "description": "Outcome of the lookup: VALID or INVALID.",
            "enum": [
              "VALID",
              "INVALID"
            ]
          },
          "epicNumber": {
            "type": "string",
            "description": "The voter ID (EPIC) number that was looked up."
          },
          "name": {
            "type": "string",
            "description": "The voter's registered name, when the voter ID is valid."
          },
          "nameInRegionalLang": {
            "type": "string",
            "description": "The voter's name in the regional language of the roll."
          },
          "age": {
            "type": "string",
            "description": "The voter's age in years, as a string, when available."
          },
          "relationType": {
            "type": "string",
            "description": "Type of the relation named on the roll (for example FTHR for father, HUSB for husband)."
          },
          "relationName": {
            "type": "string",
            "description": "Name of the relative named on the roll."
          },
          "relationNameInRegionalLang": {
            "type": "string",
            "description": "The relative's name in the regional language of the roll."
          },
          "fatherName": {
            "type": "string",
            "description": "The voter's father's name, when the roll gives it."
          },
          "dob": {
            "type": "string",
            "description": "The voter's date of birth, ISO yyyy-mm-dd, when the roll has one.",
            "format": "date"
          },
          "gender": {
            "type": "string",
            "description": "The voter's gender, when the voter ID is valid."
          },
          "address": {
            "type": "string",
            "description": "The registered address as one line, when the voter ID is valid."
          },
          "photoUrl": {
            "type": "string",
            "description": "A link to the voter photo, when the roll has one. A link only, never image data; it can expire, so fetch it promptly.",
            "format": "uri"
          },
          "splitAddress": {
            "$ref": "#/components/schemas/VoterIdSplitAddress",
            "description": "The registered address split into parts."
          },
          "state": {
            "type": "string",
            "description": "The registered state, when the voter ID is valid."
          },
          "assemblyConstituencyNumber": {
            "type": "string",
            "description": "Assembly constituency number."
          },
          "assemblyConstituency": {
            "type": "string",
            "description": "Assembly constituency name."
          },
          "parliamentaryConstituencyNumber": {
            "type": "string",
            "description": "Parliamentary constituency number."
          },
          "parliamentaryConstituency": {
            "type": "string",
            "description": "Parliamentary constituency name."
          },
          "partNumber": {
            "type": "string",
            "description": "Part number of the electoral roll."
          },
          "partName": {
            "type": "string",
            "description": "Part name of the electoral roll."
          },
          "serialNumber": {
            "type": "string",
            "description": "Serial number of the voter within the part."
          },
          "pollingStation": {
            "type": "string",
            "description": "Name of the polling station."
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "valid"
        ],
        "description": "Result of a Voter ID verification: the full voter record. Every field except referenceId, verificationId and valid is optional."
      },
      "DrivingLicenseSplitAddress": {
        "type": "object",
        "properties": {
          "district": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "District name(s)."
          },
          "state": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "State name and code as one flat list. Can be [\"\"] when the record carries no state."
          },
          "city": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "City or locality name(s)."
          },
          "pincode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Six-digit PIN code."
          },
          "country": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Country code(s) and name."
          },
          "addressLine": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address as one line."
          }
        },
        "description": "A driving licence address split into parts. Every part can be null when the record holds none."
      },
      "DrivingLicenseAddressEntry": {
        "type": "object",
        "properties": {
          "completeAddress": {
            "type": [
              "string",
              "null"
            ],
            "description": "The complete address as one string."
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address type: permanent or temporary."
          },
          "splitAddress": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DrivingLicenseSplitAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The same address split into parts."
          }
        },
        "description": "One address on the licence record."
      },
      "DrivingLicenseBadgeDetail": {
        "type": "object",
        "properties": {
          "badgeIssueDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date the transport badge was issued, as supplied. null when the licence has no badge."
          },
          "badgeNo": {
            "type": [
              "string",
              "null"
            ],
            "description": "Transport badge number. null when the licence has no badge."
          },
          "classOfVehicle": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Classes of vehicle the licence covers, for example LMV."
          }
        },
        "description": "Transport badge details and the classes of vehicle covered."
      },
      "DrivingLicenseValidityPeriod": {
        "type": "object",
        "properties": {
          "to": {
            "type": [
              "string",
              "null"
            ],
            "description": "End of the validity period, a date string exactly as supplied (dd/mm/yyyy in the example). null when the class does not apply."
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the validity period, a date string exactly as supplied (dd/mm/yyyy in the example). null when the class does not apply."
          }
        },
        "description": "One validity period, as date strings exactly as supplied."
      },
      "DrivingLicenseValidity": {
        "type": "object",
        "properties": {
          "nonTransport": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DrivingLicenseValidityPeriod"
              },
              {
                "type": "null"
              }
            ],
            "description": "Validity of the non-transport (private vehicle) classes."
          },
          "hazardousValidTill": {
            "type": [
              "string",
              "null"
            ],
            "description": "Validity end for hazardous-goods vehicles, as supplied. null when not applicable."
          },
          "transport": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DrivingLicenseValidityPeriod"
              },
              {
                "type": "null"
              }
            ],
            "description": "Validity of the transport (commercial vehicle) classes. Both dates are null when the licence has no transport class."
          },
          "hillValidTill": {
            "type": [
              "string",
              "null"
            ],
            "description": "Validity end for hill-area driving, as supplied. null when not applicable."
          }
        },
        "description": "Validity periods of the licence by class."
      },
      "DrivingLicenseDetails": {
        "type": "object",
        "properties": {
          "dateOfIssue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date the licence was issued, a date string exactly as supplied (dd/mm/yyyy in the example)."
          },
          "dateOfLastTransaction": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date of the last transaction on the licence record, as supplied. null when there is none."
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Status text on the licence record. null when the record carries none."
          },
          "lastTransactedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Office where the last transaction was made. null when there is none."
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the licence holder."
          },
          "fatherOrHusbandName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the holder's father or husband."
          },
          "addressList": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/DrivingLicenseAddressEntry"
            },
            "description": "Addresses on record, each with its type (permanent or temporary)."
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The holder address as one string."
          },
          "photoUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "A link to the licence holder photograph (a URL, never image data). The link is temporary: download the image promptly if you need it."
          },
          "splitAddress": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DrivingLicenseSplitAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The holder address split into parts."
          },
          "covDetails": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "description": "Class-of-vehicle detail entries when the record carries any; an empty list otherwise."
          }
        },
        "description": "Details held on the licence record."
      },
      "DrivingLicenseVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the driving licence is valid. Always present."
          },
          "dlNumber": {
            "type": "string",
            "description": "The driving licence number that was looked up."
          },
          "dob": {
            "type": "string",
            "description": "The licence holder's date of birth, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "status": {
            "type": "string",
            "description": "Outcome of the lookup: VALID or INVALID.",
            "enum": [
              "VALID",
              "INVALID"
            ]
          },
          "dlStatus": {
            "type": "string",
            "description": "Same value as status. Kept so existing integrations keep working."
          },
          "name": {
            "type": "string",
            "description": "The licence holder's registered name. Same as detailsOfDrivingLicence.name. Kept for existing integrations."
          },
          "fatherOrHusbandName": {
            "type": "string",
            "description": "Name of the holder's father or husband. Same as detailsOfDrivingLicence.fatherOrHusbandName. Kept for existing integrations."
          },
          "address": {
            "type": "string",
            "description": "The registered address as one string. Same as detailsOfDrivingLicence.address. Kept for existing integrations."
          },
          "validUpto": {
            "type": "string",
            "description": "End of validity of the non-transport classes, a date string exactly as supplied (dd/mm/yyyy in the example). Same as dlValidity.nonTransport.to. Kept for existing integrations."
          },
          "badgeDetails": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/DrivingLicenseBadgeDetail"
            },
            "description": "Transport badge details and the classes of vehicle covered. null when the record carries no badge block."
          },
          "dlValidity": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DrivingLicenseValidity"
              },
              {
                "type": "null"
              }
            ],
            "description": "Validity periods of the licence by class: non-transport, transport, hazardous goods and hill area."
          },
          "detailsOfDrivingLicence": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DrivingLicenseDetails"
              },
              {
                "type": "null"
              }
            ],
            "description": "Details held on the licence record: issue date, holder names, addresses, photograph link and class-of-vehicle details."
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "valid"
        ],
        "description": "Result of a driving licence verification: the full licence record. Every field except referenceId, verificationId and valid is optional."
      },
      "PassportVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the passport application file number is valid. Always present."
          },
          "status": {
            "type": "string",
            "description": "Outcome of the lookup: VALID or INVALID.",
            "enum": [
              "VALID",
              "INVALID"
            ]
          },
          "fileNumber": {
            "type": "string",
            "description": "The passport application file number that was looked up. This is the application file number, not the passport number."
          },
          "name": {
            "type": "string",
            "description": "The applicant's name as held on the application, when valid."
          },
          "dob": {
            "type": "string",
            "description": "The applicant's date of birth, ISO yyyy-mm-dd, when valid.",
            "format": "date"
          },
          "applicationType": {
            "type": "string",
            "description": "The type of passport application (for example NORMAL), when valid."
          },
          "applicationReceivedDate": {
            "type": "string",
            "description": "Date the application was received, ISO yyyy-mm-dd, when valid.",
            "format": "date"
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "valid"
        ],
        "description": "Result of a passport verification: the application record. Every field except referenceId, verificationId and valid is optional."
      },
      "CinDirector": {
        "type": "object",
        "properties": {
          "din": {
            "type": "string",
            "description": "Director Identification Number."
          },
          "name": {
            "type": "string",
            "description": "Director's name."
          },
          "designation": {
            "type": "string",
            "description": "Designation."
          }
        },
        "required": [
          "din",
          "name",
          "designation"
        ],
        "description": "A company director."
      },
      "CinDirectorDetail": {
        "type": "object",
        "properties": {
          "din": {
            "type": "string",
            "description": "Director Identification Number (DIN)."
          },
          "name": {
            "type": "string",
            "description": "Director's name."
          },
          "dob": {
            "type": "string",
            "description": "Director's date of birth, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "designation": {
            "type": "string",
            "description": "Director's designation, for example DIRECTOR."
          },
          "address": {
            "type": "string",
            "description": "Director's address on record, as one string."
          }
        },
        "description": "A director or designated partner as the registry returns them."
      },
      "CinVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the CIN is valid. Always present. True exactly when status is VALID."
          },
          "status": {
            "type": "string",
            "description": "Registry outcome of the lookup: VALID or INVALID.",
            "enum": [
              "VALID",
              "INVALID"
            ]
          },
          "cin": {
            "type": "string",
            "description": "The CIN that was verified. Always present; on an invalid CIN it is the number you sent."
          },
          "companyName": {
            "type": "string",
            "description": "Registered company name, when the CIN is valid."
          },
          "registrationNumber": {
            "type": "integer",
            "description": "Company registration number, a number (not a string), when available."
          },
          "incorporationDate": {
            "type": "string",
            "description": "Date of incorporation, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "cinStatus": {
            "type": "string",
            "description": "Company status as recorded by the MCA, for example ACTIVE."
          },
          "email": {
            "type": "string",
            "description": "Registered email address of the company."
          },
          "incorporationCountry": {
            "type": "string",
            "description": "Country of incorporation, for example INDIA."
          },
          "directorDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CinDirectorDetail"
            },
            "description": "Directors / designated partners on record, with date of birth and address."
          },
          "companyStatus": {
            "type": "string",
            "description": "Same value as cinStatus. Kept so existing integrations keep working."
          },
          "directors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CinDirector"
            },
            "description": "Directors with name, DIN and designation only. Kept so existing integrations keep working; directorDetails has the full entries."
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "valid",
          "cin"
        ],
        "description": "Result of a company CIN verification: the full company record. Every field except referenceId, verificationId, valid and cin is optional and is omitted when the registry does not provide it."
      },
      "UdyamClassificationHistoryEntry": {
        "type": "object",
        "properties": {
          "serialNumber": {
            "type": "string",
            "description": "Position of the entry in the history."
          },
          "classificationYear": {
            "type": "string",
            "description": "Financial year of that classification."
          },
          "enterpriseType": {
            "type": "string",
            "description": "Micro, Small or Medium for that year."
          },
          "classificationDate": {
            "type": "string",
            "description": "Date of that classification, ISO yyyy-mm-dd.",
            "format": "date"
          }
        },
        "description": "One year of the enterprise's MSME classification history."
      },
      "UdyamSplitAddress": {
        "type": "object",
        "properties": {
          "flat": {
            "type": "string",
            "description": "Flat / door / floor."
          },
          "building": {
            "type": "string",
            "description": "Building or premises name / number."
          },
          "village": {
            "type": "string",
            "description": "Village or town."
          },
          "block": {
            "type": "string",
            "description": "Block."
          },
          "street": {
            "type": "string",
            "description": "Street / road."
          },
          "city": {
            "type": "string",
            "description": "City."
          },
          "district": {
            "type": "string",
            "description": "District."
          },
          "state": {
            "type": "string",
            "description": "State."
          },
          "pincode": {
            "type": "string",
            "description": "Six-digit PIN code."
          },
          "mobile": {
            "type": "string",
            "description": "Registered mobile number, already masked at source (for example 70*****210). Passed through as received, never unmasked."
          },
          "email": {
            "type": "string",
            "description": "Registered email address."
          }
        },
        "description": "Registered address of the enterprise, with the registered contact details."
      },
      "UdyamUnitLocation": {
        "type": "object",
        "properties": {
          "serialNumber": {
            "type": "string",
            "description": "Position of the unit in the list."
          },
          "unitName": {
            "type": "string",
            "description": "Name of the unit."
          },
          "flat": {
            "type": "string",
            "description": "Flat / door / floor."
          },
          "building": {
            "type": "string",
            "description": "Building or premises name / number."
          },
          "village": {
            "type": "string",
            "description": "Village or town."
          },
          "block": {
            "type": "string",
            "description": "Block."
          },
          "street": {
            "type": "string",
            "description": "Street / road."
          },
          "city": {
            "type": "string",
            "description": "City."
          },
          "district": {
            "type": "string",
            "description": "District."
          },
          "state": {
            "type": "string",
            "description": "State."
          },
          "pincode": {
            "type": "string",
            "description": "Six-digit PIN code."
          }
        },
        "description": "One unit location of the enterprise."
      },
      "UdyamNicCode": {
        "type": "object",
        "properties": {
          "serialNumber": {
            "type": "string",
            "description": "Position of the activity in the list."
          },
          "nic2Digit": {
            "type": "string",
            "description": "NIC 2-digit division code."
          },
          "nic2Description": {
            "type": "string",
            "description": "NIC 2-digit division description."
          },
          "nic4Digit": {
            "type": "string",
            "description": "NIC 4-digit class code."
          },
          "nic4Description": {
            "type": "string",
            "description": "NIC 4-digit class description."
          },
          "nic5Digit": {
            "type": "string",
            "description": "NIC 5-digit sub-class code."
          },
          "nic5Description": {
            "type": "string",
            "description": "NIC 5-digit sub-class description."
          },
          "activity": {
            "type": "string",
            "description": "Activity type: Manufacturing, Services or Trading."
          },
          "date": {
            "type": "string",
            "description": "Date the activity was added, ISO yyyy-mm-dd.",
            "format": "date"
          }
        },
        "description": "One NIC activity code the enterprise is registered under."
      },
      "UdyamVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "found": {
            "type": "boolean",
            "description": "Whether an active Udyam registration was found. Always present."
          },
          "status": {
            "type": "string",
            "description": "Outcome of the lookup: SUCCESS, UDYAM_NOT_FOUND or UDYAM_IS_CANCELLED.",
            "enum": [
              "SUCCESS",
              "UDYAM_NOT_FOUND",
              "UDYAM_IS_CANCELLED"
            ]
          },
          "udyamStatus": {
            "type": "string",
            "description": "Same value as status. Kept so existing integrations keep working."
          },
          "udyamNumber": {
            "type": "string",
            "description": "The Udyam registration number that was looked up."
          },
          "enterpriseName": {
            "type": "string",
            "description": "Registered enterprise name."
          },
          "organizationType": {
            "type": "string",
            "description": "Legal form of the organisation, for example Proprietary."
          },
          "majorActivity": {
            "type": "string",
            "description": "Major activity: Manufacturing, Services or Trading."
          },
          "socialCategory": {
            "type": "string",
            "description": "Social category of the owner, for example General."
          },
          "dateOfIncorporation": {
            "type": "string",
            "description": "Date of incorporation, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "dateOfCommencement": {
            "type": "string",
            "description": "Date business commenced, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "dateOfUdyamRegistration": {
            "type": "string",
            "description": "Date the Udyam registration was issued, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "enterpriseType": {
            "type": "string",
            "description": "Current MSME classification: Micro, Small or Medium."
          },
          "classificationYear": {
            "type": "string",
            "description": "Financial year of the current classification, for example 2024-25."
          },
          "classificationDate": {
            "type": "string",
            "description": "Date of the current classification, ISO yyyy-mm-dd.",
            "format": "date"
          },
          "certificateUrl": {
            "type": "string",
            "description": "URL of the Udyam registration certificate (PDF).",
            "format": "uri"
          },
          "classificationHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UdyamClassificationHistoryEntry"
            },
            "description": "Year-by-year classification history, most recent first."
          },
          "splitAddress": {
            "$ref": "#/components/schemas/UdyamSplitAddress",
            "description": "Registered address of the enterprise, split into parts, with the registered contact details."
          },
          "unitLocations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UdyamUnitLocation"
            },
            "description": "Locations of the enterprise units."
          },
          "nicCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UdyamNicCode"
            },
            "description": "NIC activity codes the enterprise is registered under."
          },
          "dic": {
            "type": "string",
            "description": "District Industries Centre."
          },
          "msmeDi": {
            "type": "string",
            "description": "MSME Development Institute."
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "found"
        ],
        "description": "Result of a Udyam verification: the full registration record. Every field except referenceId, verificationId and found is optional."
      },
      "PanToGstinEntry": {
        "type": "object",
        "properties": {
          "gstin": {
            "type": "string",
            "description": "A GSTIN registered against the PAN."
          },
          "state": {
            "type": "string",
            "description": "State of registration."
          },
          "status": {
            "type": "string",
            "description": "Registration status."
          }
        },
        "required": [
          "gstin",
          "state",
          "status"
        ],
        "description": "One GSTIN registered against a PAN."
      },
      "PanToGstinResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "found": {
            "type": "boolean",
            "description": "Whether any GSTIN was found for the PAN."
          },
          "gstins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PanToGstinEntry"
            },
            "description": "GSTINs registered against the PAN."
          }
        },
        "required": [
          "referenceId",
          "found",
          "gstins"
        ],
        "description": "Result of a PAN to GSTIN lookup."
      },
      "PanToUdyamResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "verificationId": {
            "type": "string",
            "description": "StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.",
            "pattern": "^VRF-[0-9A-HJKMNP-TV-Z]{12}$"
          },
          "found": {
            "type": "boolean",
            "description": "Whether an active Udyam registration was found for the PAN. Always present."
          },
          "status": {
            "type": "string",
            "description": "Outcome of the lookup: SUCCESS, UDYAM_NOT_FOUND or UDYAM_IS_CANCELLED.",
            "enum": [
              "SUCCESS",
              "UDYAM_NOT_FOUND",
              "UDYAM_IS_CANCELLED"
            ]
          },
          "pan": {
            "type": "string",
            "description": "The PAN the lookup was made for."
          },
          "udyam": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Udyam registration number linked to the PAN, at most one. null when no registration is linked."
          },
          "udyamNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Same value as udyam. Kept so existing integrations keep working."
          }
        },
        "required": [
          "referenceId",
          "verificationId",
          "found"
        ],
        "description": "Result of a PAN to Udyam lookup. Every field except referenceId, verificationId and found is optional; udyam and udyamNumber carry the same value."
      },
      "IfscDetails": {
        "type": "object",
        "properties": {
          "bank": {
            "type": "string",
            "description": "Bank name."
          },
          "ifsc": {
            "type": "string",
            "description": "IFSC code, echoed back."
          },
          "micr": {
            "type": "string",
            "description": "MICR code of the branch."
          },
          "nbin": {
            "type": "string",
            "description": "National Bank Identification Number."
          },
          "address": {
            "type": "string",
            "description": "Branch address."
          },
          "city": {
            "type": "string",
            "description": "Branch city."
          },
          "state": {
            "type": "string",
            "description": "Branch state."
          },
          "branch": {
            "type": "string",
            "description": "Branch name."
          },
          "ifscSubcode": {
            "type": "string",
            "description": "IFSC sub-code, when applicable."
          },
          "category": {
            "type": "string",
            "description": "Bank category."
          },
          "swiftCode": {
            "type": "string",
            "description": "SWIFT code of the branch, when available."
          }
        },
        "description": "Bank-branch metadata for the IFSC supplied in the request."
      },
      "BankAccountVerificationResult": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "description": "StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. Not an idempotency key."
          },
          "valid": {
            "type": "boolean",
            "description": "Whether the account is valid (true only for an active/valid account status)."
          },
          "nameAtBank": {
            "type": "string",
            "description": "Account holder's name as registered with the bank."
          },
          "bankName": {
            "type": "string",
            "description": "Bank name."
          },
          "utr": {
            "type": "string",
            "description": "UTR of the penny-drop transaction, when one was generated."
          },
          "city": {
            "type": "string",
            "description": "City of the account-holding branch."
          },
          "branch": {
            "type": "string",
            "description": "Name of the account-holding branch."
          },
          "micr": {
            "type": "string",
            "description": "MICR code of the branch."
          },
          "nameMatchScore": {
            "type": "string",
            "description": "Name similarity score (0-100, as a string). Only present when a name was supplied."
          },
          "nameMatchResult": {
            "type": "string",
            "description": "Result of cross-checking the supplied name against nameAtBank. Only present when a name was supplied."
          },
          "accountStatus": {
            "type": "string",
            "description": "Raw account status from the bank/NPCI."
          },
          "accountStatusCode": {
            "type": "string",
            "description": "Machine-readable code for accountStatus."
          },
          "ifscDetails": {
            "$ref": "#/components/schemas/IfscDetails"
          }
        },
        "required": [
          "referenceId",
          "valid"
        ],
        "description": "Result of a bank account verification. Only referenceId and valid are guaranteed."
      },
      "Service": {
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string",
            "description": "The service's unique code."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "description": "Service category."
          },
          "basePrice": {
            "type": "string",
            "description": "Base price in rupees, as a decimal string."
          },
          "currency": {
            "type": "string",
            "description": "Currency code."
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the service is active in the catalog."
          },
          "gstRatePercent": {
            "type": [
              "string",
              "null"
            ],
            "description": "GST rate in percent, as a decimal string."
          },
          "defaultGovernmentFee": {
            "type": [
              "string",
              "null"
            ],
            "description": "Default government fee, as a decimal string."
          },
          "processingTimeHours": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Typical processing time in hours."
          },
          "guestCheckoutEnabled": {
            "type": "boolean",
            "description": "Whether guest checkout is enabled."
          },
          "requiresDocuments": {
            "type": "boolean",
            "description": "Whether the service requires documents."
          },
          "uiSchema": {
            "type": [
              "object",
              "null"
            ],
            "description": "Form field definitions passed through from the catalog.",
            "properties": {
              "fields": {
                "type": "array",
                "items": {}
              }
            },
            "required": [
              "fields"
            ]
          },
          "entitled": {
            "type": "boolean",
            "const": true,
            "description": "Always true: only services your organization is entitled to are returned."
          },
          "entitlementUpdatedAt": {
            "type": "string",
            "description": "When the entitlement was last updated.",
            "format": "date-time"
          }
        },
        "required": [
          "serviceCode",
          "name",
          "category",
          "basePrice",
          "currency",
          "isActive",
          "gstRatePercent",
          "defaultGovernmentFee",
          "processingTimeHours",
          "guestCheckoutEnabled",
          "requiresDocuments",
          "uiSchema",
          "entitled",
          "entitlementUpdatedAt"
        ],
        "description": "A service your organization is entitled to."
      },
      "ServiceList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Service"
        },
        "description": "Services your organization is entitled to, sorted by serviceCode. A bare array, not wrapped in an object."
      },
      "EstampSchemaResponse": {
        "description": "e-Stamp input field (form-rendering) schema. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "EstampStatesResponse": {
        "description": "e-Stamp-eligible states. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "EstampInstrumentsResponse": {
        "description": "Instruments (articles) for a state. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "EstampArticlesResponse": {
        "description": "Articles for an instrument. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "EstampDutyCalculation": {
        "description": "Authoritative duty and charge breakdown. Never recalculate or override amounts client-side. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "EstampPartiesResponse": {
        "description": "Updated party data. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "OrderReference": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your externalOrderId for the order."
          },
          "createdAt": {
            "type": "string",
            "description": "When the order was created.",
            "format": "date-time"
          },
          "serviceCode": {
            "type": "string",
            "description": "The ordered serviceCode. Omitted when an existing order is returned for a repeated externalOrderId."
          }
        },
        "required": [
          "externalOrderId",
          "createdAt"
        ],
        "description": "A created order, or the existing order when externalOrderId was already used. Core's own order id is never exposed."
      },
      "OrderDetail": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your externalOrderId."
          },
          "order": {
            "description": "The order as currently held by the order service (upstream-owned shape)."
          }
        },
        "required": [
          "externalOrderId",
          "order"
        ],
        "description": "An order and its current state."
      },
      "OrderStatusResponse": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your externalOrderId."
          },
          "status": {
            "description": "Current fulfilment status (upstream-owned shape)."
          }
        },
        "required": [
          "externalOrderId",
          "status"
        ],
        "description": "The current lifecycle status of an order."
      },
      "OrderPaymentResponse": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your externalOrderId."
          },
          "payment": {
            "description": "Payment details for the order (upstream-owned shape)."
          }
        },
        "required": [
          "externalOrderId",
          "payment"
        ],
        "description": "The payment associated with an order."
      },
      "OrderDocumentsResponse": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string",
            "description": "Your externalOrderId."
          },
          "documents": {
            "description": "Document metadata, no download URLs (upstream-owned shape)."
          }
        },
        "required": [
          "externalOrderId",
          "documents"
        ],
        "description": "Documents generated for an order."
      },
      "DocumentDownloadUrl": {
        "type": "object",
        "properties": {
          "downloadUrl": {
            "type": "string",
            "description": "Short-lived presigned URL for the document.",
            "format": "uri"
          },
          "expiresAt": {
            "description": "When the URL expires (upstream-owned format)."
          }
        },
        "required": [
          "downloadUrl",
          "expiresAt"
        ],
        "description": "A presigned download URL for one order document."
      },
      "PaymentIntent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Payment intent id."
          },
          "externalOrderId": {
            "type": "string",
            "description": "Your reference for the order being paid."
          },
          "coreOrderId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Internal order id, once linked."
          },
          "amountMinor": {
            "type": "integer",
            "description": "Amount in minor units (paise)."
          },
          "currency": {
            "type": "string",
            "description": "Currency code."
          },
          "status": {
            "type": "string",
            "description": "Payment intent status, e.g. CREATED."
          },
          "providerIntentId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The payment provider's intent/order id."
          },
          "createdAt": {
            "type": "string",
            "description": "When the intent was created.",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "externalOrderId",
          "coreOrderId",
          "amountMinor",
          "currency",
          "status",
          "providerIntentId",
          "createdAt"
        ],
        "description": "A payment intent."
      },
      "UsageSummary": {
        "type": "object",
        "properties": {
          "currentPeriod": {
            "type": "object",
            "properties": {
              "start": {
                "type": "string",
                "description": "Period start.",
                "format": "date-time"
              },
              "end": {
                "type": "string",
                "description": "Period end (exclusive).",
                "format": "date-time"
              }
            },
            "required": [
              "start",
              "end"
            ]
          },
          "totalApiRequests": {
            "type": "integer",
            "description": "Total metered API requests in the current period."
          },
          "callsByService": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Order counts keyed by service code for the current period."
          },
          "callsByPeriod": {
            "type": "array",
            "description": "Calls per month for the last 6 months, oldest first.",
            "items": {
              "type": "object",
              "properties": {
                "period": {
                  "type": "string",
                  "description": "Month, YYYY-MM.",
                  "pattern": "^[0-9]{4}-[0-9]{2}$"
                },
                "count": {
                  "type": "integer",
                  "description": "API requests in that month."
                }
              },
              "required": [
                "period",
                "count"
              ]
            }
          },
          "callsByDay": {
            "type": "array",
            "description": "Calls per day in the current period.",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "description": "Day, YYYY-MM-DD.",
                  "format": "date"
                },
                "count": {
                  "type": "integer",
                  "description": "API requests on that day."
                }
              },
              "required": [
                "day",
                "count"
              ]
            }
          }
        },
        "required": [
          "currentPeriod",
          "totalApiRequests",
          "callsByService",
          "callsByPeriod",
          "callsByDay"
        ],
        "description": "Usage for the organization that owns the API key."
      },
      "LogEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Log entry id; also usable as the cursor."
          },
          "createdAt": {
            "type": "string",
            "description": "When the call was recorded.",
            "format": "date-time"
          },
          "actorType": {
            "type": "string",
            "description": "Who made the call, e.g. api_key."
          },
          "actorId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Id of the actor, if any."
          },
          "service": {
            "type": [
              "string",
              "null"
            ],
            "description": "Service code the call was metered against."
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Call metadata (includes a success flag)."
          }
        },
        "required": [
          "id",
          "createdAt",
          "actorType",
          "actorId",
          "service",
          "metadata"
        ],
        "description": "One request-log entry."
      },
      "LogsPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogEntry"
            },
            "description": "Log entries, newest first."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to fetch the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "description": "One page of request logs."
      },
      "WebhookEventsPage": {
        "description": "Page of your organization's webhook delivery attempts. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "WebhookReplayResponse": {
        "description": "Acknowledgement that the delivery was replayed. The backend proxies this from an upstream service and does not define a fixed shape for it, so it is intentionally left unconstrained here.",
        "x-shape": "passthrough"
      },
      "WebhookEvent": {
        "type": "object",
        "properties": {
          "coreOrderId": {
            "type": "string",
            "description": "Internal order id the event is about."
          },
          "coreEventType": {
            "type": "string",
            "enum": [
              "ORDER_CREATED",
              "PAYMENT_CONFIRMED",
              "FULFILMENT_STARTED",
              "FULFILMENT_COMPLETED",
              "ORDER_FAILED",
              "ORDER_CANCELLED",
              "REFUND_COMPLETED",
              "DOCUMENT_READY"
            ],
            "description": "The upstream event type; maps 1:1 to the webhook name (ORDER_CREATED = order.created, and so on)."
          },
          "occurredAt": {
            "type": "string",
            "description": "When the event happened.",
            "format": "date-time"
          }
        },
        "required": [
          "coreOrderId",
          "coreEventType",
          "occurredAt"
        ],
        "description": "Outbound webhook body: exactly these three fields followed by the event's own payload fields spread into the same object, so additional properties are expected and the set varies per event type.",
        "additionalProperties": true
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable code. See the document's x-error-codes."
              },
              "message": {
                "type": "string",
                "description": "Human-readable message. Never contains stack traces or internal details."
              },
              "field": {
                "type": "string",
                "description": "The input the error points at, when applicable. Only set by flows that need it."
              },
              "requestId": {
                "type": "string",
                "description": "Correlation id. Echoes your X-Request-Id request header when you send one, otherwise a generated UUID."
              }
            },
            "required": [
              "code",
              "message",
              "requestId"
            ]
          }
        },
        "required": [
          "error"
        ],
        "description": "Every error response from this API has exactly this shape."
      },
      "AccountBalance": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "description": "When this snapshot was computed (cached up to 5 seconds).",
            "format": "date-time"
          },
          "environment": {
            "type": "string",
            "enum": [
              "LIVE",
              "SANDBOX"
            ],
            "description": "Environment of the API key."
          },
          "sandbox": {
            "type": "boolean",
            "description": "True for an sk_test_ key: no real balance is ever returned."
          },
          "notice": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sandbox notice; null for a live key."
          },
          "currency": {
            "type": "string",
            "description": "Always INR.",
            "enum": [
              "INR"
            ]
          },
          "balance": {
            "type": "object",
            "properties": {
              "paise": {
                "type": "integer",
                "description": "Amount in paise (integer)."
              },
              "rupees": {
                "type": "number",
                "description": "Amount in rupees (paise / 100)."
              }
            },
            "required": [
              "paise",
              "rupees"
            ],
            "description": "Wallet cash balance (includes any leftover signup credit). Zero for a sandbox key."
          },
          "available": {
            "type": "object",
            "properties": {
              "paise": {
                "type": "integer",
                "description": "Amount in paise (integer)."
              },
              "rupees": {
                "type": "number",
                "description": "Amount in rupees (paise / 100)."
              }
            },
            "required": [
              "paise",
              "rupees"
            ],
            "description": "What a call can spend now: cash plus eligible promo credit."
          },
          "state": {
            "type": "string",
            "enum": [
              "OK",
              "LOW_BALANCE",
              "FINISHED"
            ],
            "description": "OK; LOW_BALANCE below the threshold; FINISHED at zero or below the cheapest call (live calls then answer 402)."
          },
          "lowBalance": {
            "type": "boolean",
            "description": "True when state is not OK."
          },
          "lowBalanceThreshold": {
            "type": "object",
            "properties": {
              "paise": {
                "type": "integer",
                "description": "Amount in paise (integer)."
              },
              "rupees": {
                "type": "number",
                "description": "Amount in rupees (paise / 100)."
              }
            },
            "required": [
              "paise",
              "rupees"
            ],
            "description": "Low-balance threshold (Rs 500 by default)."
          },
          "estimatedCallsRemaining": {
            "type": "object",
            "properties": {
              "atCheapestPrice": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "available / cheapest approved product price; null when none."
              },
              "cheapestProduct": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The cheapest approved, priced product.",
                "properties": {
                  "serviceCode": {
                    "type": "string",
                    "description": "Service code."
                  },
                  "name": {
                    "type": "string",
                    "description": "Product name."
                  },
                  "price": {
                    "type": "object",
                    "properties": {
                      "paise": {
                        "type": "integer",
                        "description": "Amount in paise (integer)."
                      },
                      "rupees": {
                        "type": "number",
                        "description": "Amount in rupees (paise / 100)."
                      }
                    },
                    "required": [
                      "paise",
                      "rupees"
                    ],
                    "description": "Price per call before GST."
                  }
                },
                "required": [
                  "serviceCode",
                  "name",
                  "price"
                ]
              },
              "atSevenDayAverage": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "available / your average billed price over the last 7 days; null without billed calls."
              },
              "sevenDayAverageCost": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Average billed price per call over the last 7 days."
              }
            },
            "required": [
              "atCheapestPrice",
              "cheapestProduct",
              "atSevenDayAverage",
              "sevenDayAverageCost"
            ]
          },
          "lastTopUp": {
            "type": [
              "object",
              "null"
            ],
            "description": "Newest top-up, base amount credited (GST excluded); null when never topped up.",
            "properties": {
              "amount": {
                "type": "object",
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Base amount credited."
              },
              "at": {
                "type": "string",
                "description": "When it was credited.",
                "format": "date-time"
              }
            },
            "required": [
              "amount",
              "at"
            ]
          },
          "signupCredit": {
            "type": "object",
            "properties": {
              "granted": {
                "type": "object",
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Signup credit granted (zero when never)."
              },
              "left": {
                "type": "object",
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Part of it still left in the balance."
              }
            },
            "required": [
              "granted",
              "left"
            ]
          }
        },
        "required": [
          "generatedAt",
          "environment",
          "sandbox",
          "notice",
          "currency",
          "balance",
          "available",
          "state",
          "lowBalance",
          "lowBalanceThreshold",
          "estimatedCallsRemaining",
          "lastTopUp",
          "signupCredit"
        ],
        "description": "Wallet balance and low-balance state of the organization that owns the API key."
      },
      "AccountUsage": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "description": "When this snapshot was computed (cached up to 30 seconds).",
            "format": "date-time"
          },
          "environment": {
            "type": "string",
            "enum": [
              "LIVE",
              "SANDBOX"
            ],
            "description": "Environment of the API key; only that environment's calls are counted."
          },
          "sandbox": {
            "type": "boolean",
            "description": "True for an sk_test_ key."
          },
          "notice": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sandbox notice; null for a live key."
          },
          "timezone": {
            "type": "string",
            "description": "Day and month boundaries use this zone.",
            "enum": [
              "Asia/Kolkata"
            ]
          },
          "currentMonth": {
            "type": "object",
            "properties": {
              "month": {
                "type": "string",
                "description": "IST calendar month, YYYY-MM.",
                "pattern": "^[0-9]{4}-[0-9]{2}$"
              },
              "from": {
                "type": "string",
                "description": "Start of the month, 00:00 IST, as a UTC instant.",
                "format": "date-time"
              },
              "to": {
                "type": "string",
                "description": "End of the covered period (now for the current month, the last millisecond of the month for the previous one).",
                "format": "date-time"
              },
              "gstIncluded": {
                "type": "boolean",
                "const": false,
                "description": "Always false: spend is the price-book price before GST."
              },
              "requests": {
                "type": "integer",
                "description": "Calls recorded on the metered product routes (/v1/verify, /v1/estamp, /v1/esign), including calls stopped before the provider (402, 429)."
              },
              "billedRequests": {
                "type": "integer",
                "description": "Calls that were billed."
              },
              "failedNotBilled": {
                "type": "integer",
                "description": "Calls with HTTP status 400 or above that were not billed."
              },
              "successNotBilled": {
                "type": "integer",
                "description": "Calls with HTTP status below 400 that were not billed (sandbox calls, unpriced products)."
              },
              "pendingBilling": {
                "type": "integer",
                "description": "Calls whose debit is waiting to be applied; their amount is not in spend yet."
              },
              "spend": {
                "type": "object",
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Spend on the billed calls, BEFORE GST."
              },
              "byProduct": {
                "type": "array",
                "description": "Per product, most requests first.",
                "items": {
                  "type": "object",
                  "properties": {
                    "serviceCode": {
                      "type": "string",
                      "description": "Service code, e.g. pan.verify."
                    },
                    "name": {
                      "type": "string",
                      "description": "Product name."
                    },
                    "requests": {
                      "type": "integer",
                      "description": "Calls recorded on the metered product routes (/v1/verify, /v1/estamp, /v1/esign), including calls stopped before the provider (402, 429)."
                    },
                    "billedRequests": {
                      "type": "integer",
                      "description": "Calls that were billed."
                    },
                    "failedNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status 400 or above that were not billed."
                    },
                    "successNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status below 400 that were not billed (sandbox calls, unpriced products)."
                    },
                    "pendingBilling": {
                      "type": "integer",
                      "description": "Calls whose debit is waiting to be applied; their amount is not in spend yet."
                    },
                    "spend": {
                      "type": "object",
                      "properties": {
                        "paise": {
                          "type": "integer",
                          "description": "Amount in paise (integer)."
                        },
                        "rupees": {
                          "type": "number",
                          "description": "Amount in rupees (paise / 100)."
                        }
                      },
                      "required": [
                        "paise",
                        "rupees"
                      ],
                      "description": "Spend on the billed calls, BEFORE GST."
                    }
                  },
                  "required": [
                    "serviceCode",
                    "name",
                    "requests",
                    "billedRequests",
                    "failedNotBilled",
                    "successNotBilled",
                    "pendingBilling",
                    "spend"
                  ]
                }
              },
              "daily": {
                "type": "array",
                "description": "One entry per IST day, zero-filled: day 1 up to today for the current month, the whole previous month.",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "description": "IST day, YYYY-MM-DD.",
                      "format": "date"
                    },
                    "requests": {
                      "type": "integer",
                      "description": "Calls recorded on the metered product routes (/v1/verify, /v1/estamp, /v1/esign), including calls stopped before the provider (402, 429)."
                    },
                    "billedRequests": {
                      "type": "integer",
                      "description": "Calls that were billed."
                    },
                    "failedNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status 400 or above that were not billed."
                    },
                    "successNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status below 400 that were not billed (sandbox calls, unpriced products)."
                    },
                    "pendingBilling": {
                      "type": "integer",
                      "description": "Calls whose debit is waiting to be applied; their amount is not in spend yet."
                    },
                    "spend": {
                      "type": "object",
                      "properties": {
                        "paise": {
                          "type": "integer",
                          "description": "Amount in paise (integer)."
                        },
                        "rupees": {
                          "type": "number",
                          "description": "Amount in rupees (paise / 100)."
                        }
                      },
                      "required": [
                        "paise",
                        "rupees"
                      ],
                      "description": "Spend on the billed calls, BEFORE GST."
                    }
                  },
                  "required": [
                    "date",
                    "requests",
                    "billedRequests",
                    "failedNotBilled",
                    "successNotBilled",
                    "pendingBilling",
                    "spend"
                  ]
                }
              }
            },
            "required": [
              "month",
              "from",
              "to",
              "gstIncluded",
              "requests",
              "billedRequests",
              "failedNotBilled",
              "successNotBilled",
              "pendingBilling",
              "spend",
              "byProduct",
              "daily"
            ]
          },
          "previousMonth": {
            "type": "object",
            "properties": {
              "month": {
                "type": "string",
                "description": "IST calendar month, YYYY-MM.",
                "pattern": "^[0-9]{4}-[0-9]{2}$"
              },
              "from": {
                "type": "string",
                "description": "Start of the month, 00:00 IST, as a UTC instant.",
                "format": "date-time"
              },
              "to": {
                "type": "string",
                "description": "End of the covered period (now for the current month, the last millisecond of the month for the previous one).",
                "format": "date-time"
              },
              "gstIncluded": {
                "type": "boolean",
                "const": false,
                "description": "Always false: spend is the price-book price before GST."
              },
              "requests": {
                "type": "integer",
                "description": "Calls recorded on the metered product routes (/v1/verify, /v1/estamp, /v1/esign), including calls stopped before the provider (402, 429)."
              },
              "billedRequests": {
                "type": "integer",
                "description": "Calls that were billed."
              },
              "failedNotBilled": {
                "type": "integer",
                "description": "Calls with HTTP status 400 or above that were not billed."
              },
              "successNotBilled": {
                "type": "integer",
                "description": "Calls with HTTP status below 400 that were not billed (sandbox calls, unpriced products)."
              },
              "pendingBilling": {
                "type": "integer",
                "description": "Calls whose debit is waiting to be applied; their amount is not in spend yet."
              },
              "spend": {
                "type": "object",
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Spend on the billed calls, BEFORE GST."
              },
              "byProduct": {
                "type": "array",
                "description": "Per product, most requests first.",
                "items": {
                  "type": "object",
                  "properties": {
                    "serviceCode": {
                      "type": "string",
                      "description": "Service code, e.g. pan.verify."
                    },
                    "name": {
                      "type": "string",
                      "description": "Product name."
                    },
                    "requests": {
                      "type": "integer",
                      "description": "Calls recorded on the metered product routes (/v1/verify, /v1/estamp, /v1/esign), including calls stopped before the provider (402, 429)."
                    },
                    "billedRequests": {
                      "type": "integer",
                      "description": "Calls that were billed."
                    },
                    "failedNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status 400 or above that were not billed."
                    },
                    "successNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status below 400 that were not billed (sandbox calls, unpriced products)."
                    },
                    "pendingBilling": {
                      "type": "integer",
                      "description": "Calls whose debit is waiting to be applied; their amount is not in spend yet."
                    },
                    "spend": {
                      "type": "object",
                      "properties": {
                        "paise": {
                          "type": "integer",
                          "description": "Amount in paise (integer)."
                        },
                        "rupees": {
                          "type": "number",
                          "description": "Amount in rupees (paise / 100)."
                        }
                      },
                      "required": [
                        "paise",
                        "rupees"
                      ],
                      "description": "Spend on the billed calls, BEFORE GST."
                    }
                  },
                  "required": [
                    "serviceCode",
                    "name",
                    "requests",
                    "billedRequests",
                    "failedNotBilled",
                    "successNotBilled",
                    "pendingBilling",
                    "spend"
                  ]
                }
              },
              "daily": {
                "type": "array",
                "description": "One entry per IST day, zero-filled: day 1 up to today for the current month, the whole previous month.",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "description": "IST day, YYYY-MM-DD.",
                      "format": "date"
                    },
                    "requests": {
                      "type": "integer",
                      "description": "Calls recorded on the metered product routes (/v1/verify, /v1/estamp, /v1/esign), including calls stopped before the provider (402, 429)."
                    },
                    "billedRequests": {
                      "type": "integer",
                      "description": "Calls that were billed."
                    },
                    "failedNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status 400 or above that were not billed."
                    },
                    "successNotBilled": {
                      "type": "integer",
                      "description": "Calls with HTTP status below 400 that were not billed (sandbox calls, unpriced products)."
                    },
                    "pendingBilling": {
                      "type": "integer",
                      "description": "Calls whose debit is waiting to be applied; their amount is not in spend yet."
                    },
                    "spend": {
                      "type": "object",
                      "properties": {
                        "paise": {
                          "type": "integer",
                          "description": "Amount in paise (integer)."
                        },
                        "rupees": {
                          "type": "number",
                          "description": "Amount in rupees (paise / 100)."
                        }
                      },
                      "required": [
                        "paise",
                        "rupees"
                      ],
                      "description": "Spend on the billed calls, BEFORE GST."
                    }
                  },
                  "required": [
                    "date",
                    "requests",
                    "billedRequests",
                    "failedNotBilled",
                    "successNotBilled",
                    "pendingBilling",
                    "spend"
                  ]
                }
              }
            },
            "required": [
              "month",
              "from",
              "to",
              "gstIncluded",
              "requests",
              "billedRequests",
              "failedNotBilled",
              "successNotBilled",
              "pendingBilling",
              "spend",
              "byProduct",
              "daily"
            ]
          },
          "today": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "description": "Today in IST, YYYY-MM-DD.",
                "format": "date"
              },
              "requests": {
                "type": "integer",
                "description": "Calls today."
              },
              "billedRequests": {
                "type": "integer",
                "description": "Billed calls today."
              },
              "failedNotBilled": {
                "type": "integer",
                "description": "Failed, not billed calls today."
              },
              "spend": {
                "type": "object",
                "properties": {
                  "paise": {
                    "type": "integer",
                    "description": "Amount in paise (integer)."
                  },
                  "rupees": {
                    "type": "number",
                    "description": "Amount in rupees (paise / 100)."
                  }
                },
                "required": [
                  "paise",
                  "rupees"
                ],
                "description": "Spend today before GST."
              },
              "requestsPerDay": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Per-day request cap; null = none enforced."
                  },
                  "used": {
                    "type": "integer",
                    "description": "Calls today."
                  },
                  "remaining": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "limit - used; null when there is no cap."
                  }
                },
                "required": [
                  "limit",
                  "used",
                  "remaining"
                ]
              }
            },
            "required": [
              "date",
              "requests",
              "billedRequests",
              "failedNotBilled",
              "spend",
              "requestsPerDay"
            ]
          },
          "limits": {
            "type": "object",
            "properties": {
              "requestsPerMinute": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Requests per minute (the X-RateLimit-Limit of verification routes); null = no cap."
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "PLAN",
                      "LIVE_RAMP",
                      "SANDBOX",
                      "NONE"
                    ]
                  }
                },
                "required": [
                  "limit",
                  "source"
                ]
              },
              "requestsPerDay": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Per-day request cap; null = none enforced."
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "PROVISIONAL",
                      "NONE"
                    ]
                  }
                },
                "required": [
                  "limit",
                  "source"
                ]
              }
            },
            "required": [
              "requestsPerMinute",
              "requestsPerDay"
            ]
          }
        },
        "required": [
          "generatedAt",
          "environment",
          "sandbox",
          "notice",
          "timezone",
          "currentMonth",
          "previousMonth",
          "today",
          "limits"
        ],
        "description": "Usage of the organization that owns the API key: current and previous IST month, today, and the limits."
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "Optional client-generated key (1 to 255 printable characters) that makes a retried POST safe. A key is scoped to your organization, the route and the environment (a sandbox key never matches a live one) and is kept for 24 hours. Retrying with the same key and the same request replays the original response (same status and body) without repeating the work or billing again. The same key with a different request returns 422 IDEMPOTENCY_KEY_REUSED. The same key while the first request is still being processed returns 409 IDEMPOTENCY_IN_PROGRESS with a Retry-After header. Routes that require the key (POST /v1/estamp/orders, POST /v1/batches) answer 400 IDEMPOTENCY_KEY_REQUIRED without it.",
        "schema": {
          "type": "string",
          "minLength": 1
        }
      },
      "WebhookSignature": {
        "name": "X-Webhook-Signature",
        "in": "header",
        "required": true,
        "description": "Hex-encoded HMAC-SHA256(secret, `${timestamp}.${JSON.stringify(payload)}`), where timestamp is the X-Webhook-Timestamp value.",
        "schema": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        }
      },
      "WebhookTimestamp": {
        "name": "X-Webhook-Timestamp",
        "in": "header",
        "required": true,
        "description": "Unix time in seconds at which this delivery attempt was signed.",
        "schema": {
          "type": "string",
          "pattern": "^[0-9]+$"
        }
      },
      "WebhookEventId": {
        "name": "X-Webhook-Event-Id",
        "in": "header",
        "required": true,
        "description": "Id of this delivery's event; stable across retries, so use it to de-duplicate.",
        "schema": {
          "type": "string"
        }
      }
    },
    "headers": {
      "RateLimitLimit": {
        "description": "Requests allowed in the current per-minute window (sent on routes that use the rate limiter).",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimitRemaining": {
        "description": "Requests left in the current window after this one.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "RateLimitReset": {
        "description": "Whole seconds until the window ends and the counter resets.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "WalletState": {
        "description": "Live keys only: OK, LOW_BALANCE or FINISHED. Optional: clients must tolerate its absence. Never carries the amount.",
        "schema": {
          "type": "string",
          "enum": [
            "OK",
            "LOW_BALANCE",
            "FINISHED"
          ]
        }
      },
      "WalletBalanceLow": {
        "description": "Live keys only, sent as true only when the wallet is low (LOW_BALANCE or FINISHED).",
        "schema": {
          "type": "string",
          "enum": [
            "true"
          ]
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Request failed validation, or the organization is not entitled to the service.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "BAD_REQUEST",
                "message": "pan must match the format ABCDE1234F",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing or invalid API key, or the key lacks the scope this endpoint requires (x-required-scope).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "UNAUTHORIZED",
                "message": "Missing or invalid API key.",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "Insufficient fulfilment wallet balance to cover this metered call.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "PAYMENT_REQUIRED",
                "message": "Insufficient fulfilment wallet balance to cover this call.",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Valid key, but the request is not allowed: the caller's IP is not on the key's allowlist, or the plan/entitlement is not enabled or its limit is reached.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "FORBIDDEN",
                "message": "IP not authorized for this API key",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "The requested resource does not exist for your organization.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "NOT_FOUND",
                "message": "The requested resource was not found.",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "Conflict": {
        "description": "IDEMPOTENCY_IN_PROGRESS: a request with this Idempotency-Key is still being processed (retry with the same key after the Retry-After delay), or the resource is in a state that does not allow the action.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "IDEMPOTENCY_IN_PROGRESS",
                "message": "A request with this Idempotency-Key is being processed; retry shortly with the same key",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "UnprocessableEntity": {
        "description": "IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was already used with a different request. The first request is unchanged and nothing was run or charged for this one. Use a new key for a different request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "IDEMPOTENCY_KEY_REUSED",
                "message": "This Idempotency-Key was already used with a different request",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit exceeded for this endpoint (fixed window, per API key; sandbox keys get 20% of the production limit, minimum 1). The response carries a Retry-After header (seconds): wait that long before retrying.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "TOO_MANY_REQUESTS",
                "message": "Rate limit exceeded",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "BadGateway": {
        "description": "The upstream service is unreachable or returned an unexpected error. Safe to retry (with the same Idempotency-Key where supported).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "INTERNAL_ERROR",
                "message": "Unable to reach the order/customer service right now",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      },
      "ServiceUnavailable": {
        "description": "A dependency is temporarily unavailable (for example the service catalog, or document downloads for an order). Retry later: the response carries a Retry-After header (seconds).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "INTERNAL_ERROR",
                "message": "Service catalog is temporarily unavailable",
                "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
              }
            }
          }
        }
      }
    }
  }
}