Funding and workspace improvements

Funding Invoice Status

  • All funding endpoints now include a status field indicating the current state of the funding invoice
  • Possible values: opened, processing, funded, canceled
  • Automatically updated by the system as transfers are processed

Workspace Fee Configuration

  • Workspace endpoints now expose funding fee configuration:
    • funding_fee_percent - The fee percentage charged for funding operations
    • additive_funding_fee - Whether the fee is added to or deducted from the funding amount

Cancel Funding Invoice

  • New Endpoint: POST /api/rest/funding/{id}/cancel
  • Allows canceling a funding invoice via the REST API
  • Returns the updated funding object with status: "canceled"

Funding Invoice PDF URL

  • New Endpoint: GET /api/rest/funding/{id}/pdf-url
  • Generates and returns a URL to download the funding invoice PDF
  • Returns: { "url": "https://..." }