1. Embedded Journey (Marketplace API)
marketplace-doc
  • Data Ingestion
  • Errors
  • Introduction
  • Loan API & Deduction Lifecycle
  • Getting Started
  • OAuth
  • Webhooks
  • Embedded Journey
  • OpenSylo Marketplace Integration API
    • OAuth 2.0
      • Start OAuth authorization
      • Exchange authorization code or refresh token
      • Revoke a token
      • Discover OAuth capabilities
    • Data Ingestion
      • Submit single merchant data
      • Submit bulk merchant data
      • Poll batch processing status
      • Get merchant credit score
      • Data ingestion health check
    • Sales & Events
      • Submit a sales event
      • Submit a repayment event
      • Submit an account flag
    • Loan API
      • Get active loans for a merchant
      • Get loan status
      • Validate deduction amounts
      • Bulk loan status
    • Inbound Webhooks
      • Repayment events
      • Settlement events
    • Outbound Webhooks
      • loan.approved
      • loan.disbursed
      • loan.repayment_updated
      • loan.nearly_complete
      • loan.completed
      • loan.defaulted
      • merchant.created
      • kyc.submitted
      • kyc.approved
      • kyc.rejected
      • funding_request.created
      • funding_request.fulfilled
      • funding_request.rejected
    • Embedded Journey (Marketplace API)
      • Create (or fetch) a merchant
        POST
      • Get merchant status (KYC, credit score, funding requests)
        GET
      • Update business KYC information
        PUT
      • Add directors (bulk)
        POST
      • Attach a KYC document
        POST
      • Submit KYC for review
        POST
      • Submit sales data for credit scoring
        POST
      • Create a funding request
        POST
      • Mint an embed token for the hosted journey
        POST
  • OpenSylo Marketplace API
    • OAuth 2.0
      • Start OAuth authorization
      • Exchange code or refresh token
      • Revoke a token
      • OAuth discovery / client metadata
    • Data Ingestion
      • Submit single merchant data
      • Submit bulk merchant data
      • Get merchant credit score
      • Integration health check
    • Loan API
      • Get active loans for a merchant
      • Get loan status
      • Validate deduction amounts
      • Bulk loan status check
    • Inbound Webhooks
      • Send repayment webhook
      • Send settlement webhook
  1. Embedded Journey (Marketplace API)

Attach a KYC document

POST
/api/v1/marketplace-api/merchants/{ref}/documents
Attaches an already-uploaded file (by fileKey from the presigned
upload flow) to the merchant's KYC record. Most partners let merchants
upload documents inside the embedded journey instead, which handles the
full presign/upload/confirm/attach flow automatically.

Request

Authorization
API Key
Add parameter in header
X-OpenSylo-Secret-Key
Example:
X-OpenSylo-Secret-Key: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
Document attached to the merchant's KYC.
This response does not have a body.
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.opensylo.com/api/v1/marketplace-api/merchants/mkt_merchant_8421/documents' \
--header 'X-OpenSylo-Secret-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "documentType": "CAC_CERTIFICATE",
    "fileName": "cac_certificate.pdf",
    "fileKey": "string",
    "fileSize": "524288",
    "mimeType": "application/pdf"
}'
Response Response Example
{
    "statusCode": 400,
    "message": "string",
    "error": "Bad Request"
}
Modified at 2026-06-10 14:59:36
Previous
Add directors (bulk)
Next
Submit KYC for review
Built with