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(openapi): Fix broken mintlify pages (v2) (#8382)

Anurag Thakur9319c7a60cad
diff --git a/api-reference/docs.json b/api-reference/docs.json
index ecdf944452..9688afc324 100644
--- a/api-reference/docs.json
+++ b/api-reference/docs.json
@@ -265,11 +265,11 @@
"pages": [
"v2/payment-methods/payment-method--create",
"v2/payment-methods/payment-method--create-intent",
- "v2/payment-methods/payment-method--payment-methods-list",
"v2/payment-methods/payment-method--confirm-intent",
"v2/payment-methods/payment-method--update",
"v2/payment-methods/payment-method--retrieve",
"v2/payment-methods/payment-method--delete",
+ "v2/payment-methods/payment-method--list-customer-saved-payment-methods",
"v2/payment-methods/list-saved-payment-methods-for-a-customer"
]
},
@@ -291,13 +291,17 @@
"v2/customers/customers--retrieve",
"v2/customers/customers--update",
"v2/customers/customers--delete",
- "v2/customers/customers--list",
- "v2/customers/customers--list-saved-payment-methods"
+ "v2/customers/customers--list"
]
},
{
"group": "Refunds",
- "pages": ["v2/refunds/refunds--create"]
+ "pages": [
+ "v2/refunds/refunds--create",
+ "v2/refunds/refunds--metadata-update",
+ "v2/refunds/refunds--retrieve",
+ "v2/refunds/refunds--list"
+ ]
}
]
},
@@ -373,6 +377,10 @@
{
"group": "Tokenization",
"pages": ["v2/tokenization/tokenization--create"]
+ },
+ {
+ "group": "Revenue Recovery",
+ "pages": ["v2/revenue-recovery/revenue-recovery--retrieve"]
}
]
}
diff --git a/api-reference/v2/customers/customers--update.mdx b/api-reference/v2/customers/customers--update.mdx
index 8d4bed86c9..c3e10b6256 100644
--- a/api-reference/v2/customers/customers--update.mdx
+++ b/api-reference/v2/customers/customers--update.mdx
@@ -1,3 +1,3 @@
---
-openapi: put /v2/customers/{id}
+openapi: post /v2/customers/{id}
---
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index b91ec81b08..65d1b847f3 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -1958,18 +1958,6 @@
"type": "string"
},
"example": "pro_abcdefghijklmnop"
- },
- {
- "name": "X-Client-Secret",
- "in": "header",
- "description": "Client Secret Associated with the payment intent",
- "required": true,
- "schema": {
- "type": "string"
- },
- "example": {
- "X-Client-Secret": "12345_pay_0193e41106e07e518940f8b51b9c8121_secret_0193e41107027a928d61d292e6a5dba9"
- }
}
],
"requestBody": {
@@ -2222,18 +2210,6 @@
"type": "string"
},
"example": "pro_abcdefghijklmnop"
- },
- {
- "name": "X-Client-Secret",
- "in": "header",
- "description": "Client Secret Associated with the payment intent",
- "required": true,
- "schema": {
- "type": "string"
- },
- "example": {
- "X-Client-Secret": "12345_pay_0193e41106e07e518940f8b51b9c8121_secret_0193e41107027a928d61d292e6a5dba9"
- }
}
],
"responses": {
@@ -3538,6 +3514,8 @@
"tags": [
"Tokenization"
],
+ "summary": "Tokenization - Create",
+ "description": "Create a token with customer_id",
"operationId": "create_token_vault_api",
"requestBody": {
"content": {
diff --git a/api-reference/v2/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx b/api-reference/v2/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx
index d115fc7237..ed9cec389d 100644
--- a/api-reference/v2/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx
+++ b/api-reference/v2/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx
@@ -1,3 +1,3 @@
---
-openapi: post /v2/payment-method-session/:id/confirm
+openapi: post /v2/payment-method-session/{id}/confirm
---
\ No newline at end of file
diff --git a/api-reference/v2/payment-method-session/payment-method-session--delete-a-saved-payment-method.mdx b/api-reference/v2/payment-method-session/payment-method-session--delete-a-saved-payment-method.mdx
index 2f9e800ebe..a4bcd483c6 100644
--- a/api-reference/v2/payment-method-session/payment-method-session--delete-a-saved-payment-method.mdx
+++ b/api-reference/v2/payment-method-session/payment-method-session--delete-a-saved-payment-method.mdx
@@ -1,3 +1,3 @@
---
-openapi: delete /v2/payment-method-session/:id
+openapi: delete /v2/payment-method-session/{id}
---
diff --git a/api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx b/api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx
index bbbaf01c29..1dc6cc5eb3 100644
--- a/api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx
+++ b/api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx
@@ -1,3 +1,3 @@
---
-openapi: get /v2/payment-method-session/:id/list-payment-methods
+openapi: get /v2/payment-method-session/{id}/list-payment-methods
---
\ No newline at end of file
diff --git a/api-reference/v2/payment-method-session/payment-method-session--retrieve.mdx b/api-reference/v2/payment-method-session/payment-method-session--retrieve.mdx
index 3f0ab4a746..4e504390a4 100644
--- a/api-reference/v2/payment-method-session/payment-method-session--retrieve.mdx
+++ b/api-reference/v2/payment-method-session/payment-method-session--retrieve.mdx
@@ -1,3 +1,3 @@
---
-openapi: get /v2/payment-method-session/:id
+openapi: get /v2/payment-method-session/{id}
---
\ No newline at end of file
diff --git a/api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx b/api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx
index fab85e2a41..f7e887dbb9 100644
--- a/api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx
+++ b/api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx
@@ -1,3 +1,3 @@
---
-openapi: put /v2/payment-method-session/:id/update-saved-payment-method
+openapi: put /v2/payment-method-session/{id}/update-saved-payment-method
---
diff --git a/api-reference/v2/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx b/api-reference/v2/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx
deleted file mode 100644
index 7809830b82..0000000000
--- a/api-reference/v2/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx
+++ /dev/null
@@ -1,3 +0,0 @@
----
-openapi: get /v2/payments/{id}/saved-payment-methods
----
\ No newline at end of file
diff --git a/api-reference/v2/payment-methods/list-payment-methods-for-a-customer.mdx b/api-reference/v2/payment-methods/list-payment-methods-for-a-customer.mdx
deleted file mode 100644
index ef5a27f960..0000000000
--- a/api-reference/v2/payment-methods/list-payment-methods-for-a-customer.mdx
+++ /dev/null
@@ -1,3 +0,0 @@
----
-openapi: get /v2/customers/{id}/saved-payment-methods
----
\ No newline at end of file
diff --git a/api-reference/v2/payment-methods/list-saved-payment-methods-for-a-customer.mdx b/api-reference/v2/payment-methods/list-saved-payment-methods-for-a-customer.mdx
deleted file mode 100644
index ef5a27f960..0000000000
--- a/api-reference/v2/payment-methods/list-saved-payment-methods-for-a-customer.mdx
+++ /dev/null
@@ -1,3 +0,0 @@
----
-openapi: get /v2/customers/{id}/saved-payment-methods
----
\ No newline at end of file
diff --git a/api-reference/v2/customers/customers--list-saved-payment-methods.mdx b/api-reference/v2/payment-methods/payment-method--list-customer-saved-payment-methods.mdx
similarity index 100%
rename from api-reference/v2/customers/customers--list-saved-payment-methods.mdx
rename to api-reference/v2/payment-methods/payment-method--list-customer-saved-payment-methods.mdx
diff --git a/api-reference/v2/refunds/refunds--list.mdx b/api-reference/v2/refunds/refunds--list.mdx
new file mode 100644
index 0000000000..1816798970
--- /dev/null
+++ b/api-reference/v2/refunds/refunds--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /v2/refunds/list
+---
\ No newline at end of file
diff --git a/api-reference/v2/refunds/refunds--metadata-update.mdx b/api-reference/v2/refunds/refunds--metadata-update.mdx
new file mode 100644
index 0000000000..52695bf10f
--- /dev/null
+++ b/api-reference/v2/refunds/refunds--metadata-update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: put /v2/refunds/{id}/update_metadata
+---
\ No newline at end of file
diff --git a/api-reference/v2/refunds/refunds--retrieve.mdx b/api-reference/v2/refunds/refunds--retrieve.mdx
new file mode 100644
index 0000000000..bd73db1a72
--- /dev/null
+++ b/api-reference/v2/refunds/refunds--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /v2/refunds/{id}
+---
\ No newline at end of file
diff --git a/api-reference/v2/revenue-recovery/revenue-recovery--retrieve.mdx b/api-reference/v2/revenue-recovery/revenue-recovery--retrieve.mdx
new file mode 100644
index 0000000000..119f750a7a
--- /dev/null
+++ b/api-reference/v2/revenue-recovery/revenue-recovery--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /v2/process_tracker/revenue_recovery_workflow/{revenue_recovery_id}
+---
\ No newline at end of file
diff --git a/crates/openapi/src/routes/payments.rs b/crates/openapi/src/routes/payments.rs
index 66774a283b..cf2a61ac85 100644
--- a/crates/openapi/src/routes/payments.rs
+++ b/crates/openapi/src/routes/payments.rs
@@ -923,12 +923,7 @@ pub fn payments_update_intent() {}
"X-Profile-Id" = String, Header,
description = "Profile ID associated to the payment intent",
example = "pro_abcdefghijklmnop"
- ),
- (
- "X-Client-Secret" = String, Header,
- description = "Client Secret Associated with the payment intent",
- example = json!({"X-Client-Secret": "12345_pay_0193e41106e07e518940f8b51b9c8121_secret_0193e41107027a928d61d292e6a5dba9"})
- ),
+ )
),
request_body(
content = PaymentsConfirmIntentRequest,
@@ -1058,11 +1053,6 @@ pub(crate) enum ForceSync {
description = "Profile ID associated to the payment intent",
example = "pro_abcdefghijklmnop"
),
- (
- "X-Client-Secret" = String, Header,
- description = "Client Secret Associated with the payment intent",
- example = json!({"X-Client-Secret": "12345_pay_0193e41106e07e518940f8b51b9c8121_secret_0193e41107027a928d61d292e6a5dba9"})
- ),
),
responses(
(status = 200, description = "Get the payment methods", body = PaymentMethodListResponseForPayments),
diff --git a/crates/openapi/src/routes/tokenization.rs b/crates/openapi/src/routes/tokenization.rs
index 22f1227a9c..d69008911c 100644
--- a/crates/openapi/src/routes/tokenization.rs
+++ b/crates/openapi/src/routes/tokenization.rs
@@ -1,6 +1,9 @@
use serde_json::json;
use utoipa::OpenApi;
+/// Tokenization - Create
+///
+/// Create a token with customer_id
#[cfg(feature = "v2")]
#[utoipa::path(
post,