Paytm Payments API

The Payments API from Paytm — 2 operation(s) for payments.

Operations 2

POST /theia/api/v1/initiateTransaction Initiate transaction #
POST /theia/api/v1/processTransaction Process transaction #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/paytm-payments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

paytm-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Paytm Payment Gateway Payments API
  description: Server-to-server REST APIs for Paytm Payment Gateway integrations. Covers transaction initiation (returning a txnToken used by checkout SDKs), transaction processing for selected payment modes, and refund initiation. Requests are signed via Paytm's checksum logic and the signature is sent in the request head.
  version: '1.0'
  contact:
    name: Paytm for Business
    url: https://business.paytm.com/docs/api/
servers:
- url: https://securegw.paytm.in
  description: Production
- url: https://securegw-stage.paytm.in
  description: Staging
- url: https://secure.paytmpayments.com
  description: Production (paytmpayments.com host)
- url: https://securestage.paytmpayments.com
  description: Staging (paytmpayments.com host)
security: []
tags:
- name: Payments
paths:
  /theia/api/v1/initiateTransaction:
    post:
      tags:
      - Payments
      summary: Initiate transaction
      description: Creates a transaction at Paytm and returns a txnToken (valid 15 minutes) that the merchant uses to invoke the checkout SDK or call processTransaction.
      operationId: initiateTransaction
      parameters:
      - name: mid
        in: query
        required: true
        schema:
          type: string
        description: Merchant ID issued by Paytm.
      - name: orderId
        in: query
        required: true
        schema:
          type: string
        description: Merchant-generated unique order id (max 50 chars).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                head:
                  type: object
                  properties:
                    signature:
                      type: string
                      description: Checksum generated from the request body.
                body:
                  type: object
                  properties:
                    requestType:
                      type: string
                      example: Payment
                    mid:
                      type: string
                    orderId:
                      type: string
                    txnAmount:
                      type: object
                      properties:
                        value:
                          type: string
                        currency:
                          type: string
                          example: INR
                    userInfo:
                      type: object
                      properties:
                        custId:
                          type: string
                    websiteName:
                      type: string
                    callbackUrl:
                      type: string
      responses:
        '200':
          description: Transaction initiated; response contains body.txnToken.
  /theia/api/v1/processTransaction:
    post:
      tags:
      - Payments
      summary: Process transaction
      description: Processes a transaction for the selected payment mode. Requires the txnToken from initiateTransaction in the request header.
      operationId: processTransaction
      parameters:
      - name: mid
        in: query
        required: true
        schema:
          type: string
      - name: orderId
        in: query
        required: true
        schema:
          type: string
      - name: txnToken
        in: header
        required: true
        schema:
          type: string
        description: 15-minute-lived txnToken from initiateTransaction.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                head:
                  type: object
                  properties:
                    signature:
                      type: string
                body:
                  type: object
                  properties:
                    mid:
                      type: string
                    orderId:
                      type: string
                    paymentMode:
                      type: string
                      description: BALANCE, CREDIT_CARD, DEBIT_CARD, NET_BANKING, UPI, etc.
      responses:
        '200':
          description: Returns either a redirect/bank form or an immediate payment result.
components:
  securitySchemes:
    paytmChecksum:
      type: apiKey
      in: header
      name: signature
      description: Checksum signature computed over the request body using Paytm's merchant key. Carried in the request head.signature property and/or as a request header per endpoint guidance.