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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(refunds_v2): Change refunds v2 list request verb from GET to POST (#8289)
Amey Wale6ea2e2a6f4f7
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.jsonindex 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.rsindex 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.rsindex 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")]{