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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/phonepe-refunds-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
openapi: 3.2.0
info:
title: PhonePe Payment Gateway Checkout Refunds API
description: 'Server-to-server PhonePe Payment Gateway (PG) REST API for creating
checkout orders, retrieving order status, and processing refunds across
UPI, cards, netbanking, and wallets.
Requests are authenticated with a merchant auth token issued by PhonePe
and sent in the `Authorization: O-Bearer <merchant-auth-token>` header.
Partner integrations also include the `X-MERCHANT-ID` header naming the
end merchant.
Only a representative subset of the PhonePe PG surface (checkout,
order status, refund initiation, refund status) is modeled here. See
the PhonePe developer documentation linked under externalDocs for
the full catalog.
'
version: 2.0.0
contact:
name: PhonePe Developer Documentation
url: https://developer.phonepe.com/
license:
name: PhonePe Proprietary
servers:
- url: https://api.phonepe.com/apis/pg
description: PhonePe PG production base URL.
- url: https://api-preprod.phonepe.com/apis/pg-sandbox
description: PhonePe PG sandbox base URL.
security:
- merchantToken: []
tags:
- name: Refunds
description: Initiate and track refunds.
paths:
/payments/v2/refund:
post:
tags:
- Refunds
summary: Initiate a refund
description: 'Initiates a refund (partial or full) against a completed PhonePe
transaction.
'
operationId: createRefund
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RefundRequest'
responses:
'200':
description: Refund accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/RefundResponse'
/payments/v2/refund/{merchantRefundId}/status:
get:
tags:
- Refunds
summary: Get refund status
description: 'Returns the latest status of a previously initiated refund, keyed by
the merchant-assigned refund ID.
'
operationId: getRefundStatus
parameters:
- in: path
name: merchantRefundId
required: true
schema:
type: string
responses:
'200':
description: Current refund status.
content:
application/json:
schema:
$ref: '#/components/schemas/RefundStatusResponse'
components:
schemas:
RefundStatusResponse:
type: object
properties:
refundId:
type: string
merchantRefundId:
type: string
originalMerchantOrderId:
type: string
amount:
type: integer
state:
type: string
RefundResponse:
type: object
properties:
refundId:
type: string
merchantRefundId:
type: string
state:
type: string
amount:
type: integer
RefundRequest:
type: object
required:
- merchantRefundId
- originalMerchantOrderId
- amount
properties:
merchantRefundId:
type: string
originalMerchantOrderId:
type: string
amount:
type: integer
description: Refund amount in paise.
securitySchemes:
merchantToken:
type: apiKey
in: header
name: Authorization
description: 'Bearer-style merchant auth token issued by PhonePe. Sent as
`Authorization: O-Bearer <merchant-auth-token>`. Partner integrations
also include `X-MERCHANT-ID: <end-merchant-id>`.
'
externalDocs:
description: PhonePe developer documentation
url: https://developer.phonepe.com/v1/docs/intro