ProfitFlow
    • Account
      • Authentication
        • Login
        • Register new user
        • Get current user
        • Logout
        • Refresh token
      • Password
        • Request password reset
        • Reset password
        • Change password
      • Profile
        • Update current user
      • Delete account
    • Categories
      • List categories
      • Get category
    • Units
      • List available units
      • Get unit details
    • Investors
      • List investors
      • Get investor details
      • Get investor portfolio
    • Investment Requests
      • Create investment request
      • List investment requests
    • Portfolio
      • Get portfolio performance
      • Get transaction details
      • List transactions
    • KYC
      • List uploaded documents
      • Upload identity document
      • Get KYC status
    • Dashboard
      • Get investment marketplace
    • Distributions
      • List distributions
      • Get distribution details
      • List payouts
      • Get payout details
    • Statements
      • Download profit statement
      • Download tax records
      • Download portfolio summary
    • Notifications
      • List notifications
      • Get notification
      • Mark notification as read
      • Mark all as read
      • Register FCM token
      • Clear FCM token
    • Settings
      • Get app settings
      • Update app settings
    • Legal
      • Get privacy policy
      • Get terms of service
      • Get investment disclaimer
    • Marketplace
      • Get app configuration
    • Withdrawal Requests
      • Create withdrawal request
      • List withdrawal requests
    • Category Memberships
      • List memberships
      • Create membership
      • Available categories for enrollment
      • Get membership details
    • Public
      • Browse investment units (guest)
      • View unit details (guest)
      • Browse investment categories (guest)
      • View category details (guest)
    • Schemas
      • User
      • Category
      • Error
      • Unit
      • Investor
      • ValidationError
      • Portfolio
      • PaginationLinks
      • PaginationMeta
      • UnitDetail
      • InvestmentRequest
      • PublicUnit
      • InvestmentRequestWithUnit
      • Notification
      • WithdrawalRequest
      • CategoryMembership
      • Transaction
      • NotificationDataPayloads
      • WithdrawalRequestWithUnit
      • TransactionDetail
      • RegisterFcmTokenRequest
      • PortfolioPerformance
      • KycDocument
      • KycStatus
      • Dashboard
      • DashboardTrend
      • DashboardActivity
      • Marketplace
      • Distribution
      • FeaturedCategory
      • Payout
      • SimpleCategory
      • Settings
      • TopGainerUnit
      • NotificationSettings
      • NewListingUnit
      • LegalContent
      • AppConfig
      • IconOption
      • BadgeOption
      • ColorOption
      • PublicCategory

    NotificationDataPayloads

    Data payload structures per notification type. Use as reference for handling each type.

    {
        "investment_approved": {
            "investment_request_id": 0,
            "unit_id": 0,
            "amount": 0
        },
        "investment_rejected": {
            "investment_request_id": 0,
            "unit_id": 0,
            "amount": 0,
            "reason": "string"
        },
        "distribution_received": {
            "distribution_id": 0,
            "payout_id": 0,
            "unit_id": 0,
            "gross_amount": 0,
            "net_amount": 0
        },
        "payout_processed": {
            "payout_id": 0,
            "distribution_id": 0,
            "net_amount": 0
        },
        "kyc_approved": {
            "kyc_status": "verified"
        },
        "kyc_rejected": {
            "kyc_status": "rejected",
            "reason": "string"
        },
        "unit_update": {
            "unit_id": 0,
            "update_type": "price_change"
        },
        "system_announcement": {
            "property1": "string",
            "property2": "string"
        }
    }
    Built with