diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 5f5181693f..2e337c1f56 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3365,7 +3365,7 @@ } }, "/v2/refunds/list": { - "get": { + "post": { "tags": [ "Refunds" ], diff --git a/crates/openapi/src/routes/refunds.rs b/crates/openapi/src/routes/refunds.rs index 6628d43220..f33369d388 100644 --- a/crates/openapi/src/routes/refunds.rs +++ b/crates/openapi/src/routes/refunds.rs @@ -272,7 +272,7 @@ pub async fn refunds_retrieve() {} /// /// To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided #[utoipa::path( - get, + post, path = "/v2/refunds/list", request_body=RefundListRequest, responses( diff --git a/crates/router/src/routes/app.rs b/crates/router/src/routes/app.rs index 3d2a6e9170..0a6c39447f 100644 --- a/crates/router/src/routes/app.rs +++ b/crates/router/src/routes/app.rs @@ -1215,7 +1215,7 @@ impl Refunds { #[cfg(feature = "olap")] { route = - route.service(web::resource("/list").route(web::get().to(refunds::refunds_list))); + route.service(web::resource("/list").route(web::post().to(refunds::refunds_list))); } #[cfg(feature = "oltp")] {