chore: updated open api spec documentation for create platform account (#8692)

Co-authored-by: Gitanjli Chopra <gitanjli.chopra@Gitanjli-Chopra-DC62KJQFX6.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Sandeep Kumar <83278309+tsdk02@users.noreply.github.com>
This commit is contained in:
Gitanjli
2025-07-28 15:07:10 +05:30
committed by GitHub
parent 96de9f2954
commit 3bf4c49056
8 changed files with 145 additions and 5 deletions

View File

@ -213,6 +213,9 @@ Never share your secret api keys. Keep them guarded and secure.
// Routes for authentication
routes::authentication::authentication_create,
// Routes for platform account
routes::platform::create_platform_account,
),
components(schemas(
common_utils::types::MinorUnit,
@ -362,8 +365,8 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::enums::MerchantProductType,
api_models::enums::CtpServiceProvider,
api_models::enums::PaymentLinkSdkLabelType,
api_models::enums::PaymentLinkShowSdkTerms,
api_models::enums::OrganizationType,
api_models::enums::PaymentLinkShowSdkTerms,
api_models::admin::MerchantConnectorCreate,
api_models::admin::AdditionalMerchantData,
api_models::admin::ConnectorWalletDetails,
@ -806,6 +809,8 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::authentication::ThreeDsData,
api_models::authentication::AuthenticationEligibilityRequest,
api_models::authentication::AuthenticationEligibilityResponse,
api_models::user::PlatformAccountCreateRequest,
api_models::user::PlatformAccountCreateResponse,
)),
modifiers(&SecurityAddon)
)]

View File

@ -14,6 +14,7 @@ pub mod payment_link;
pub mod payment_method;
pub mod payments;
pub mod payouts;
pub mod platform;
pub mod poll;
pub mod profile;
pub mod profile_acquirer;

View File

@ -0,0 +1,26 @@
#[cfg(feature = "v1")]
/// Platform - Create
///
/// Create a new platform account
#[utoipa::path(
post,
path = "/create_platform",
request_body(
content = PlatformAccountCreateRequest,
examples(
(
"Create a platform account with organization_name" = (
value = json!({"organization_name": "organization_abc"})
)
),
)
),
responses(
(status = 200, description = "Platform Account Created", body = PlatformAccountCreateResponse),
(status = 400, description = "Invalid data")
),
tag = "Platform",
operation_id = "Create a Platform Account",
security(("jwt_key" = []))
)]
pub async fn create_platform_account() {}