{
  "slug": "combine-paddle-with-supabase-billing",
  "title": "Combine paddle and supabase billing dashboard",
  "metaDescription": "Combine paddle and supabase billing dashboard. Supabase user row and Paddle subscription merged for ac. Merge Paddle and Supabase in one FlutterFlow.",
  "headline": "Low-code billing portal endpoint",
  "category": "aggregation",
  "categoryLabel": "Multi-API Aggregation",
  "urgency": 9,
  "clientPlatform": "FlutterFlow",
  "upstreamServices": [
    "Paddle",
    "Supabase"
  ],
  "searchIntentQuery": "combine paddle and supabase billing dashboard",
  "directAnswerSummary": "Supabase user row and Paddle subscription merged for account screens. For \"combine paddle and supabase billing dashboard\", store PADDLE_API_KEY, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let FlutterFlow hit only https://realcomposer.com/v1/workspace/combine-paddle-with-supabase-billing with an rc_live_ client token.",
  "problem": {
    "title": "Waterfall latency from multiple Paddle and Supabase requests",
    "explanation": "FlutterFlow widgets often await Paddle and Supabase sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.",
    "risks": [
      "Race conditions between parallel manual fetches",
      "Higher mobile data usage from redundant JSON",
      "Timeouts when any upstream exceeds cellular RTT"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Store PADDLE_API_KEY, SUPABASE_SERVICE_ROLE_KEY in the vault. FlutterFlow never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Use GET against https://api.paddle.com/subscriptions/{{query.subscriptionId}}. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache)."
    },
    {
      "stepNumber": 3,
      "title": "Wire the FlutterFlow API Call",
      "description": "Call https://realcomposer.com/v1/workspace/combine-paddle-with-supabase-billing with a restricted rc_live_ client token. FlutterFlow never sends upstream secrets.",
      "codeSnippet": "// FlutterFlow API Call\nURL: https://realcomposer.com/v1/workspace/combine-paddle-with-supabase-billing\nHeader Authorization: Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Combine paddle and supabase billing dashboard",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "paddle",
        "upstreamUrlTemplate": "https://api.paddle.com/subscriptions/{{query.subscriptionId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.PADDLE_API_KEY}}"
        },
        "timeoutMs": 3000
      },
      {
        "stepKey": "supabase",
        "upstreamUrlTemplate": "https://{{secrets.SUPABASE_PROJECT_REF}}.supabase.co/rest/v1/{{query.table}}?{{query.filter}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "apikey": "{{secrets.SUPABASE_SERVICE_ROLE_KEY}}",
          "Authorization": "Bearer {{secrets.SUPABASE_SERVICE_ROLE_KEY}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "paddle.subscriptionId",
          "sourcePath": "data.id",
          "type": "string",
          "sourceStep": "paddle"
        },
        {
          "targetPath": "paddle.status",
          "sourcePath": "data.status",
          "type": "string",
          "sourceStep": "paddle"
        },
        {
          "targetPath": "supabase.rowId",
          "sourcePath": "0.id",
          "type": "string",
          "sourceStep": "supabase"
        },
        {
          "targetPath": "supabase.email",
          "sourcePath": "0.email",
          "type": "string",
          "sourceStep": "supabase"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_combine-",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "combine-paddle-with-supabase-billing"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "paddle_subscriptionId": "sample",
    "paddle_status": "sample",
    "supabase_rowId": "sample",
    "supabase_email": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/combine-paddle-with-supabase-billing\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Paddle credential belongs in the vault for this pipeline?",
      "answer": "Store PADDLE_API_KEY, SUPABASE_SERVICE_ROLE_KEY for combine-paddle-with-supabase-billing. FlutterFlow never sees decrypted values."
    },
    {
      "question": "Does POST traffic get cached?",
      "answer": "combine-paddle-with-supabase-billing vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Upstream steps in combine-paddle-with-supabase-billing honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "merge-paddle-with-stripe-billing-api",
    "combine-supabase-user-with-billing-api"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/combine-paddle-with-supabase-billing",
    "markdown": "https://realcomposer.com/recipes/combine-paddle-with-supabase-billing.md",
    "json": "https://realcomposer.com/recipes/combine-paddle-with-supabase-billing.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=combine-paddle-with-supabase-billing&via=agent"
  }
}