Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(docs): incorrect description for refund api (#6443)

Shashank Kumar8954e8a2180d
diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json
index 3f3ffc17a1..2dced0998e 100644
--- a/api-reference/openapi_spec.json
+++ b/api-reference/openapi_spec.json
@@ -1116,7 +1116,7 @@
"Refunds"
],
"summary": "Refunds - List",
- "description": "Lists all the refunds associated with the merchant or a payment_id if payment_id is not provided",
+ "description": "Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided",
"operationId": "List all Refunds",
"requestBody": {
"content": {
diff --git a/crates/openapi/src/routes/refunds.rs b/crates/openapi/src/routes/refunds.rs
index 4e096e243a..0ff0891ee5 100644
--- a/crates/openapi/src/routes/refunds.rs
+++ b/crates/openapi/src/routes/refunds.rs
@@ -115,7 +115,7 @@ pub async fn refunds_update() {}
/// Refunds - List
///
-/// Lists all the refunds associated with the merchant or a payment_id if payment_id is not provided
+/// Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided
#[utoipa::path(
post,
path = "/refunds/list",