Skip to documentation
SparkGlimSparkGlim Developer
Search all documentation

Try a topic in your language or an exact API path.

    API reference

    Configure payout rule

    Creates or updates an account-scoped payout rule after withdrawals:approve authorization and the existing financial policy checks.

    POSThttps://api.sparkglim.net/api/white-label/portal/reseller/payout-rules

    Access model

    Access model
    SparkGlim session and member permissions
    Required scope
    withdrawals:approve
    Documented availability
    Implemented in source

    Availability is verified from source, not a live production guarantee.

    Use the creator-team member workflow. Reseller access never grants unrestricted database or administrator access.

    Headers

    NameTypeValidation
    AuthorizationRequired

    Existing SparkGlim bearer session; server account membership and assigned capabilities still authorize each operation.

    stringValidation: Bearer existing authenticated session token.

    Request

    NameTypeValidation
    ownerMemberIdOptional

    Existing account-scoped relationship or review record; ownership and required capabilities are checked on the server.

    string|nullValidation: UUID.
    ownerCreatorIdOptional

    Existing account-scoped relationship or review record; ownership and required capabilities are checked on the server.

    string|nullValidation: UUID.
    statusOptional

    Requested supported lifecycle state; account and campaign approval rules still control publication and access.

    enumValidation: active | paused | revoked.
    currencyOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    stringValidation: ISO3.
    resellerFeeRateOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    numberValidation: >=0.
    sparkglimFeeRateOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    numberValidation: >=0.
    payoutHoldHoursOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    integerValidation: >=0.
    minWithdrawalAmountOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    numberValidation: >=0.
    maxWithdrawalAmountOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    number|nullValidation: >=0.
    autoEscalateAboveAmountOptional

    Account-scoped payout policy value; the server retains authority over balances, fees, approvals and settlement.

    number|nullValidation: >=0.
    metadataOptional

    Additional JSON metadata accepted by the documented schema; it never overrides authorization, prices or account ownership.

    objectValidation: JSON object.

    Request

    Examples describe the contract and are not executed. Use authorized test records; never paste a real secret into these pages.

    POST /api/white-label/portal/reseller/payout-rules
    http
    POST /api/white-label/portal/reseller/payout-rules HTTP/1.1
    Host: api.sparkglim.net
    Authorization: Bearer <EXISTING_SESSION_TOKEN>
    Content-Type: application/json
    
    {
      "currency": "GHS",
      "payoutHoldHours": 24,
      "minWithdrawalAmount": 0
    }

    Response

    Success response · HTTP 201
    json
    {
      "success": true,
      "data": {
        "id": "11111111-1111-4111-8111-111111111111",
        "status": "pending"
      }
    }
    Error response · HTTP 400
    json
    {
      "success": false,
      "error": "<ERROR_MESSAGE>"
    }

    Validation, permissions, unavailable records and temporary service failures use the handler’s HTTP status and error payload.

    Limits & retries

    Default Server limit: 100 requests per IP per 60 seconds. Resource-specific controls also apply.

    Source compatibility

    Authorized operations require account-specific testing.

    • server/src/api/router.ts
    • server/src/api/routes/white-label.ts
    • server/src/white-label/reseller-service.ts
    • server/src/white-label/schemas.ts