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

docs(openapi): update /relay request example (#6942)

Shankar Singh Cd849403460f3
diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json
index 3c80fd8c46..186aa6dc9c 100644
--- a/api-reference/openapi_spec.json
+++ b/api-reference/openapi_spec.json
@@ -990,8 +990,10 @@
"connector_id": "mca_5apGeP94tMts6rg3U3kR",
"connector_resource_id": "7256228702616471803954",
"data": {
- "amount": 6540,
- "currency": "USD"
+ "refund": {
+ "amount": 6540,
+ "currency": "USD"
+ }
},
"type": "refund"
}
diff --git a/crates/openapi/src/routes/relay.rs b/crates/openapi/src/routes/relay.rs
index 9100bf47f7..180fed6649 100644
--- a/crates/openapi/src/routes/relay.rs
+++ b/crates/openapi/src/routes/relay.rs
@@ -13,8 +13,10 @@
"connector_id": "mca_5apGeP94tMts6rg3U3kR",
"type": "refund",
"data": {
- "amount": 6540,
- "currency": "USD"
+ "refund": {
+ "amount": 6540,
+ "currency": "USD"
+ }
}
})
)