{
  "slug": "flutterflow-salesforce-stripe-one-endpoint",
  "title": "Flutterflow call salesforce and stripe one endpoint",
  "metaTitle": "Flutterflow call salesforce and - RealComposer",
  "metaDescription": "Flutterflow call salesforce and stripe one endpoint. FlutterFlow CORS fix for Salesforce and Stripe via RealComposer OPTIONS plus vault headers.",
  "headline": "Account screen with CRM and billing",
  "category": "ecosystem",
  "categoryLabel": "Platforms & Frameworks",
  "urgency": 9,
  "clientPlatform": "FlutterFlow",
  "upstreamServices": [
    "Salesforce",
    "Stripe"
  ],
  "searchIntentQuery": "flutterflow call salesforce and stripe one endpoint",
  "directAnswerSummary": "Replaces two FlutterFlow API calls with one composed edge URL. For \"flutterflow call salesforce and stripe one endpoint\", store SALESFORCE_ACCESS_TOKEN, STRIPE_SECRET_KEY in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let FlutterFlow hit only https://realcomposer.com/v1/workspace/flutterflow-salesforce-stripe-one-endpoint with an rc_live_ client token.",
  "problem": {
    "title": "CORS blocks Salesforce and Stripe in FlutterFlow",
    "explanation": "Low-code FlutterFlow tools expose connector tokens in shared workspaces, so Salesforce and Stripe credentials leak to every editor.",
    "risks": [
      "Browser console CORS errors blocking launches",
      "Editors pasting secrets into reusable components",
      "Inability to test locally without disabling security"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Store upstream credentials in Secret Vault",
      "description": "Add SALESFORCE_ACCESS_TOKEN, STRIPE_SECRET_KEY to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "Point step salesforce at https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} with GET. Add output mapping fields that mirror the JSON contract your screen already expects. 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": "Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.",
      "codeSnippet": "// FlutterFlow API Call\nURL: https://realcomposer.com/v1/workspace/flutterflow-salesforce-stripe-one-endpoint\nHeader Authorization: Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Flutterflow call salesforce and stripe one endpoint",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "salesforce",
        "upstreamUrlTemplate": "https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.SALESFORCE_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      },
      {
        "stepKey": "stripe",
        "upstreamUrlTemplate": "https://api.stripe.com/v1/customers/{{query.customerId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.STRIPE_SECRET_KEY}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "salesforce.contactId",
          "sourcePath": "Id",
          "type": "string",
          "sourceStep": "salesforce"
        },
        {
          "targetPath": "salesforce.email",
          "sourcePath": "Email",
          "type": "string",
          "sourceStep": "salesforce"
        },
        {
          "targetPath": "stripe.customerId",
          "sourcePath": "id",
          "type": "string",
          "sourceStep": "stripe"
        },
        {
          "targetPath": "stripe.email",
          "sourcePath": "email",
          "type": "string",
          "sourceStep": "stripe"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_flutterf",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "flutterflow-salesforce-stripe-one-endpoint"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "salesforce_contactId": "sample",
    "salesforce_email": "sample",
    "stripe_customerId": "sample",
    "stripe_email": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/flutterflow-salesforce-stripe-one-endpoint\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "What should FlutterFlow store instead of Salesforce secrets?",
      "answer": "Yes for flutterflow-salesforce-stripe-one-endpoint. Ship only an rc_live_ client token in FlutterFlow; RealComposer injects SALESFORCE_ACCESS_TOKEN on https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}}."
    },
    {
      "question": "Will Anthropic or Linear prompt bodies be rewritten?",
      "answer": "Cache key for flutterflow-salesforce-stripe-one-endpoint: internal edge-cache path plus sorted query. Identical params hit; vary userId per user."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Upstream steps in flutterflow-salesforce-stripe-one-endpoint honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "flutterflow-multiple-apis-page-load",
    "merge-salesforce-opportunities-stripe-mrr"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/flutterflow-salesforce-stripe-one-endpoint",
    "markdown": "https://realcomposer.com/recipes/flutterflow-salesforce-stripe-one-endpoint.md",
    "json": "https://realcomposer.com/recipes/flutterflow-salesforce-stripe-one-endpoint.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=flutterflow-salesforce-stripe-one-endpoint&via=agent"
  }
}