OpenSylo Backend API
  1. Marketplace Connections
OpenSylo Backend API
  • API Info
    • API Information
      GET
  • Health
    • HealthController_checkHealth
      GET
    • HealthController_ping
      GET
  • Marketplace Connections
    • Get available marketplaces
      GET
    • Get marketplace catalog
      GET
    • Get marketplace details
      GET
    • Initiate marketplace connection
      POST
    • Disconnect from marketplace
      POST
    • Get connection status
      GET
    • Update marketplace credentials
      POST
    • Handle OAuth callback
      POST
  • Merchant Authentication
    • Register a new merchant account
      POST
    • Authenticate merchant
      POST
    • Verify email address
      POST
    • Resend verification email
      POST
    • Request password reset
      POST
    • Reset password
      POST
    • Change password
      POST
    • Refresh access token
      POST
    • Logout
      POST
    • Get current user profile
      GET
  • MerchantKyc
    • MerchantKycController_getOnboardingStatus
      GET
    • MerchantKycController_getKycProgress
      GET
    • MerchantKycController_sendOtp
      POST
    • MerchantKycController_verifyOtp
      POST
    • MerchantKycController_updateBusinessInfo
      PUT
    • MerchantKycController_addDirector
      POST
    • MerchantKycController_addBulkDirectors
      POST
    • MerchantKycController_uploadDocument
      POST
    • MerchantKycController_submitKyc
      POST
    • MerchantKycController_searchBusinessTypes
      GET
    • MerchantKycController_getBusinessCategories
      GET
    • MerchantKycController_getDocumentTypes
      GET
  • Merchants
    • Create a new merchant
    • Get all merchants
    • Get a merchant by ID
    • Update a merchant
    • Delete a merchant
  • Marketplace Data Ingestion
    • Submit Merchant Data
    • Submit Bulk Merchant Data
    • Get Merchant Credit Score
    • Health Check
  • Marketplace Dashboard
    • Complete Marketplace Registration
    • Marketplace Dashboard Login
    • Get OAuth Credentials
    • Regenerate Client Secret
    • Get Current User
    • Invite Marketplace (Admin)
  • OAuth 2.0
    • OAuth Authorization Endpoint
    • Process Authorization Decision
    • Token Endpoint
    • Revoke Token
    • Client Metadata
  • OAuth Authentication
    • Login Page
    • Login Submit
    • Signup Page
    • Signup Submit
    • Logout
  • Lenders
    • Create a new lender
    • Get all lenders
    • Get a lender by ID
    • Update a lender
    • Delete a lender
  • Schemas
    • PlatformDto
    • PlatformConnectionMetadataDto
    • PlatformConnectionInfoDto
    • PlatformListResponseDto
    • ConnectionInitResponseDto
    • ConnectionMetricsDto
    • ConnectionStatusResponseDto
    • DisconnectResponseDto
    • PlatformCatalogResponseDto
    • ConnectPlatformDto
    • DisconnectPlatformDto
    • PlatformCredentialsDto
    • MerchantSignupDto
    • SignupResponseDto
    • MerchantLoginDto
    • LoginResponseDto
    • MerchantVerifyEmailDto
    • EmailVerificationResponseDto
    • MerchantResendVerificationDto
    • GenericSuccessResponseDto
    • MerchantForgotPasswordDto
    • MerchantResetPasswordDto
    • MerchantChangePasswordDto
    • RefreshTokenDto
    • UserProfileResponseDto
    • OtpVerificationDto
    • BusinessKycDto
    • DirectorInfoDto
    • BulkDirectorInfoDto
    • DocumentUploadDto
    • CreateMerchantDto
    • UpdateMerchantDto
    • MarketplaceDataCaptureDto
    • BulkMarketplaceDataCaptureDto
    • CompleteMarketplaceRegistrationDto
    • MarketplaceLoginResponseDto
    • MarketplaceLoginDto
    • MarketplaceCredentialsResponseDto
    • RegenerateSecretResponseDto
    • InviteMarketplaceDto
    • MarketplaceInvitationResponseDto
    • CreateLenderDto
    • UpdateLenderDto
  1. Marketplace Connections

Initiate marketplace connection

POST
/api/merchants/platforms/{platformId}/connect
Starts the OAuth authorization flow to connect the merchant to the specified marketplace.
OAuth Flow:
1.
Call this endpoint to initiate connection
2.
Receive an authorizationUrl in the response
3.
Redirect the user to the authorization URL
4.
User grants consent on the marketplace's OAuth page
5.
User is redirected back to your callbackUrl with authorization code
6.
Call the callback endpoint to complete the connection
Data Consent:
By connecting, the merchant consents to share their sales data with OpenSylo for credit scoring purposes.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/json

Examples

Responses

🟢200
application/json
Connection initiated successfully. Redirect user to authorizationUrl.
Body

🟠400
🟠401
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.dev.opensylo.com/api/merchants/platforms//connect' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Response Response Example
{
    "success": true,
    "platformId": "chowdeck",
    "authorizationUrl": "https://api.opensylo.com/oauth/authorize?client_id=xxx&redirect_uri=xxx&scope=sales.read",
    "connectionId": "conn_xyz789",
    "message": "Redirecting to Chowdeck for authorization",
    "expiresIn": 300
}
Modified at 2025-12-30 08:04:15
Previous
Get marketplace details
Next
Disconnect from marketplace
Built with