feat(refunds_v2): Add refunds list flow in v2 apis (#7966)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Amey Wale
2025-05-12 19:27:05 +05:30
committed by GitHub
parent 28b62e2693
commit 839eb2e8fb
14 changed files with 716 additions and 17 deletions

View File

@ -3306,6 +3306,43 @@
]
}
},
"/v2/refunds/list": {
"get": {
"tags": [
"Refunds"
],
"summary": "Refunds - List",
"description": "To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided",
"operationId": "List all Refunds",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RefundListRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "List of refunds",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RefundListResponse"
}
}
}
}
},
"security": [
{
"api_key": []
}
]
}
},
"/v2/process_tracker/revenue_recovery_workflow/{revenue_recovery_id}": {
"get": {
"tags": [
@ -20502,13 +20539,11 @@
"nullable": true
},
"refund_id": {
"type": "string",
"description": "The identifier for the refund",
"nullable": true
},
"profile_id": {
"type": "string",
"description": "The identifier for business profile",
"allOf": [
{
"$ref": "#/components/schemas/common_utils.id_type.GlobalRefundId"
}
],
"nullable": true
},
"limit": {
@ -20539,7 +20574,7 @@
"description": "The list of connectors to filter refunds list",
"nullable": true
},
"merchant_connector_id": {
"connector_id_list": {
"type": "array",
"items": {
"type": "string"