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
fix(openapi): update create_platform endpoint in api-reference docs (#8782)
Sandeep Kumar8dc4061f9edb
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.jsonindex fc8d782a82..11e15b3737 100644--- a/api-reference/v1/openapi_spec_v1.json+++ b/api-reference/v1/openapi_spec_v1.json@@ -6638,7 +6638,7 @@]}},- "/create_platform": {+ "/user/create_platform": {"post": {"tags": ["Platform"@@ -6647,6 +6647,7 @@"description": "Create a new platform account","operationId": "Create a Platform Account","requestBody": {+ "description": "Create a platform account with organization_name","content": {"application/json": {"schema": {@@ -6670,6 +6671,18 @@"application/json": {"schema": {"$ref": "#/components/schemas/PlatformAccountCreateResponse"+ },+ "examples": {+ "Successful Platform Account Creation": {+ "description": "Return values for a successfully created platform account",+ "value": {+ "merchant_account_type": "platform",+ "merchant_id": "merchant_abc",+ "org_id": "org_abc",+ "org_name": "organization_abc",+ "org_type": "platform"+ }+ }}}}diff --git a/api-reference/v1/platform/platform--create.mdx b/api-reference/v1/platform/platform--create.mdxindex 61a12fdc6d..e1cd3491db 100644--- a/api-reference/v1/platform/platform--create.mdx+++ b/api-reference/v1/platform/platform--create.mdx@@ -1,3 +1,3 @@----openapi: post /create_platform+openapi: post /user/create_platform---\ No newline at end of filediff --git a/crates/openapi/src/routes/platform.rs b/crates/openapi/src/routes/platform.rsindex 6dc04076e5..c015a4d709 100644--- a/crates/openapi/src/routes/platform.rs+++ b/crates/openapi/src/routes/platform.rs@@ -4,19 +4,38 @@/// Create a new platform account#[utoipa::path(post,- path = "/create_platform",+ path = "/user/create_platform",request_body(content = PlatformAccountCreateRequest,+ description = "Create a platform account with organization_name",examples(("Create a platform account with organization_name" = (value = json!({"organization_name": "organization_abc"}))- ),+ ))),responses(- (status = 200, description = "Platform Account Created", body = PlatformAccountCreateResponse),+ (+ status = 200,+ description = "Platform Account Created",+ body = PlatformAccountCreateResponse,+ examples(+ (+ "Successful Platform Account Creation" = (+ description = "Return values for a successfully created platform account",+ value = json!({+ "org_id": "org_abc",+ "org_name": "organization_abc",+ "org_type": "platform",+ "merchant_id": "merchant_abc",+ "merchant_account_type": "platform"+ })+ )+ )+ )+ ),(status = 400, description = "Invalid data")),tag = "Platform",