Connectors

Stripe with Boomi: API Keys, Useful APIs and Verified Webhooks

  • Chirag Kumar DeoChirag Kumar Deo
  • 18 Oct 2026
Stripe with Boomi: API Keys, Useful APIs and Verified Webhooks

Stripe handles the payments; your ERP, CRM and data warehouse need to know about them. Boomi is a natural place to connect the two: it can call Stripe’s API on a schedule, receive Stripe’s webhooks in real time, and map everything into NetSuite, Salesforce or any other system you run.

This guide covers what you need to build that properly: how Stripe’s API is shaped, which keys to create and where to keep them, the APIs that matter most for integrations, how to call them from Boomi, and how to receive and verify Stripe webhooks, with two tested Groovy scripts you can paste into a Data Process shape.

How Stripe’s API works, in one minute

Everything lives under one base URL, https://api.stripe.com, and a few rules apply everywhere:

TopicHow it works
Base URLhttps://api.stripe.com/v1/… (newer features also use /v2/…)
AuthenticationYour API key as a Bearer token (Authorization: Bearer rk_live_…), or as the user name in HTTP Basic auth with an empty password
Request bodiesapplication/x-www-form-urlencoded for v1 POSTs, with brackets for nesting: metadata[netsuite_id]=1042
ResponsesJSON, every object with an id and an object type
AmountsIntegers in the smallest currency unit: 1999 means 19.99 USD
IDsPrefixed by type: cus_ customer, pi_ payment intent, ch_ charge, re_ refund, dp_ dispute, in_ invoice, po_ payout, txn_ balance transaction, evt_ event
VersionsYour account has a default API version; pin one per request with the Stripe-Version header (for example 2026-09-30.endive)
Anatomy of a Stripe API request from Boomi: method and URL, Authorization header, Stripe-Version and Idempotency-Key headers, a form-encoded body and the JSON response
Illustration: the parts of a Stripe request and response

Note: Stripe’s v1 API takes form-encoded bodies, not JSON. Sending JSON to a v1 endpoint is the most common first error in a Boomi build. The Groovy script later in this guide does the conversion for you.

Step 1: Create the right API key

Stripe has four kinds of keys, and an integration needs the right one:

KeyPrefixUse it for
Publishable keypk_test_ / pk_live_Browsers and mobile apps only (Stripe.js). Never for Boomi.
Restricted keyrk_test_ / rk_live_Integrations like Boomi. Only the permissions you choose.
Secret keysk_test_ / sk_live_Full access to everything. Stripe now recommends restricted keys instead.
Organisation keysk_org_Managing several Stripe accounts in one organisation.

Every Stripe account has a sandbox (test) and live mode, each with its own keys and its own data. Build and test with sandbox keys; switch to live keys only when you go live.

Create a restricted key (recommended)

  1. In the Stripe Dashboard, open the API keys page (dashboard.stripe.com/apikeys). Start in your sandbox.
  2. Click Create restricted key.
  3. Give it a clear name, for example boomi-netsuite-sync.
  4. For each resource, choose None, Read or Write. Give only what the process needs: a payment-to-ERP sync typically needs Read on Customers, Charges, Payment Intents, Refunds, Disputes, Payouts and Balance transactions, and nothing else.
  5. Click Create key and complete the two-step verification Stripe sends you.
  6. Copy the key value straight into Boomi (see below). In live mode you can’t see it again after closing the dialog.
  7. In Add a note, write where the key is stored (for example “Boomi environment extension, Production”), then click Done.
Illustration of a restricted key's permissions: Read on customers, charges, refunds, disputes, payouts and balance transactions, None on everything else
Illustration: a read-only restricted key for a payments-to-ERP sync

Or create a secret key

Only if the integration truly needs everything: on the same page click Create secret key, enter the verification code, name the key, click Create, then copy it. The same rule applies: a live key you create yourself is shown once.

Keep the key safe in Boomi

  • Never type the key into a process or a map. Put it in a connection field or a process property with the Password type, and set the real value per environment through environment extensions. Sandbox and live keys then never mix.
  • Lock the key to Boomi’s addresses. In Stripe, API keys → ⋯ → Manage access policy can restrict a key to known IP addresses. Use your Atom’s public IP, or the published IP ranges of your Boomi Atom Cloud.
  • Rotate without downtime. ⋯ → Rotate key keeps the old key working for up to 7 days, which is plenty of time to update the extension and deploy.

Step 2: Create a webhook endpoint and its signing secret

Polling tells you what happened; webhooks tell you the moment it happens. Each webhook endpoint has its own signing secret (whsec_…), which is not an API key: it proves that a request really came from Stripe.

  1. In the Dashboard, open Workbench → Webhooks (dashboard.stripe.com/webhooks) and click Create an event destination.
  2. Choose Your account and the Snapshot payload (the full object in each event, which is easiest to map in Boomi), and select the API version you test with.
  3. Select only the events you need, for example payment_intent.succeeded, charge.refunded, charge.dispute.created, charge.dispute.closed and payout.paid.
  4. Choose Webhook endpoint, then enter the Endpoint URL of your Boomi listener (Step 5 shows how to build it).
  5. On the endpoint page, click Reveal secret and copy the whsec_… value into a Boomi process property of type Password, again set per environment.

The sandbox and live endpoints have different secrets. To change a secret, use ⋯ → Roll secret; the old one can stay valid for up to 24 hours, and Stripe signs with both while they overlap.

The Stripe APIs worth knowing for integrations

These are the endpoints that come up again and again when Stripe meets an ERP, a CRM or a warehouse:

APIEndpointWhat you use it for in Boomi
CustomersGET/POST /v1/customersKeep customers in step with your ERP or CRM; store the ERP ID in metadata
Payment IntentsGET /v1/payment_intentsThe payment itself: amount, status, customer, the invoice it pays
ChargesGET /v1/chargesCard and payment details, refunded amounts, the balance transaction behind each payment
RefundsGET/POST /v1/refundsRead refunds into the ERP, or create a refund that started in another system
DisputesGET /v1/disputesChargebacks: amount, reason, status, evidence deadline
InvoicesGET/POST /v1/invoicesStripe Billing invoices to post to the ERP, or invoices created from ERP orders
SubscriptionsGET /v1/subscriptionsRecurring revenue, plan changes and cancellations for CRM and finance
Products & PricesGET/POST /v1/products, /v1/pricesKeep the price list in line with the ERP item master
PayoutsGET /v1/payoutsWhat Stripe sent to the bank, and when
Balance TransactionsGET /v1/balance_transactions?payout=po_…Every payment, refund, dispute and fee inside a payout: the key to bank reconciliation
EventsGET /v1/eventsEverything that happened in the last 30 days; the safety net for missed webhooks
SearchGET /v1/customers/search?query=…Find records by email, metadata and more, e.g. email:'ana@example.com'
Checkout SessionsPOST /v1/checkout/sessionsCreate a Stripe-hosted payment page from an order in another system
Report RunsPOST /v1/reporting/report_runsLarge payout reconciliation and balance reports as files, instead of thousands of calls
Illustration: a payout listed with its balance transactions (payments, a refund, fees), then sent by Boomi to the ERP as one bank deposit
Illustration: balance transactions turn one payout into lines the ERP can post

Step 3: Set up the HTTP Client connection in Boomi

Use Boomi’s HTTP Client connector; it gives you full control over every Stripe endpoint. (Boomi also lists a Stripe connector for loading Stripe data into a data warehouse; for process integrations, the HTTP Client is the flexible choice.)

Connection

  • URL: https://api.stripe.com
  • Authentication: Stripe accepts the key as an HTTP Basic user name with an empty password, so Basic with the key as the user works in most setups. If your connection setup needs a password, choose None instead and send an Authorization header (next point).
  • Header option: in each operation, add a request header Authorization whose value comes from a dynamic document property, built with a Set Properties shape as Bearer + the key from your password-type process property.

Operation (GET, for reading)

  • HTTP Method: GET, Request Profile: None, Response Profile: a JSON profile imported from a sample Stripe response.
  • Resource Path: /v1/payment_intents, with query parameters such as limit=100 and created[gte]=<unix time> from replacement variables.
  • Add the header Stripe-Version with the API version you tested, so a Dashboard upgrade never changes your responses unexpectedly.
  • Tick Return Application Error Responses, so a 4xx from Stripe reaches your process as a document you can inspect instead of failing the shape.

Operation (POST, for creating and updating)

  • HTTP Method: POST, Content Type: application/x-www-form-urlencoded.
  • Build the body with the form-encoding script below.
  • Add an Idempotency-Key header from a dynamic document property, set to something unique and stable for that record, such as ns-invoice-1042-refund. If Boomi retries after a timeout, Stripe returns the first result instead of creating a second refund. Stripe keeps keys for at least 24 hours, accepts up to 255 characters, and only uses them on POSTs.

Turn JSON into Stripe’s form encoding

Map your data into a simple JSON profile, then run this in a Data Process shape (Custom Scripting, Groovy) before the HTTP Client:

// Boomi Data Process shape: turn a JSON document into the form-encoded body Stripe's v1 API expects.
//   {"email":"ana@example.com","metadata":{"netsuite_id":"1042"},"expand":["invoice_settings.default_payment_method"]}
//   → email=ana%40example.com&metadata[netsuite_id]=1042&expand[0]=invoice_settings.default_payment_method
// Nested objects become key[child], lists become key[0], key[1] …; nulls are left out.
// Set the HTTP Client operation's Content Type to application/x-www-form-urlencoded.
import java.util.Properties
import java.io.InputStream
import java.io.ByteArrayInputStream
import groovy.json.JsonSlurper

def enc = { String s -> URLEncoder.encode(s, 'UTF-8') }

def flatten
flatten = { Object value, String prefix, List<String> out ->
    if (value == null) return
    if (value instanceof Map) {
        value.each { k, v -> flatten(v, prefix ? "${prefix}[${enc(k.toString())}]" : enc(k.toString()), out) }
    } else if (value instanceof List) {
        value.eachWithIndex { v, idx -> flatten(v, "${prefix}[${idx}]", out) }
    } else {
        out << prefix + '=' + enc(value.toString())
    }
}

for (int i = 0; i < dataContext.getDataCount(); i++) {
    InputStream is = dataContext.getStream(i)
    Properties props = dataContext.getProperties(i)
    def json = new JsonSlurper().parse(is, 'UTF-8')
    List<String> pairs = []
    flatten(json, '', pairs)
    dataContext.storeStream(new ByteArrayInputStream(pairs.join('&').getBytes('UTF-8')), props)
}

It handles nested objects (metadata[...]), lists of values (expand[0]) and lists of objects (items[0][price]), and leaves out empty fields so they don’t overwrite data in Stripe.

Step 4: Read lists page by page

List endpoints return at most 100 objects per call (limit=1..100, default 10), newest first, with has_more telling you whether there’s another page. To get the next page, send starting_after= the id of the last object you received.

In Boomi:

  1. Set a dynamic process property STRIPE_CURSOR to empty, then call GET /v1/charges?limit=100 (add &starting_after={cursor} when it isn’t empty).
  2. Split the data array into documents for the rest of the process.
  3. In a separate branch, read has_more and the last id from the response. If has_more is true, store the id in STRIPE_CURSOR and call the same subprocess again; stop when it’s false.
  4. Always filter by time (created[gte]=) so a sync only reads what changed since the last run, which you keep in a persisted process property.

Tip: For “everything in this payout”, call GET /v1/balance_transactions?payout=po_…&limit=100. One call per page gives you every payment, refund, dispute and fee in the payout, already netted, with no need to fetch each charge separately.

Stripe also limits reads per transaction (on average 500 read requests per payment over 30 days). Filtering by date and by payout, instead of re-reading everything, keeps you comfortably inside it.

Step 5: Receive webhooks in Boomi, and verify them

Build a small listener process that accepts Stripe’s POST, checks the signature and answers fast:

  1. Create a Web Services Server start shape (input type Single Data, no profile, so the body stays exactly as Stripe sent it) and expose it through an API Service component.
  2. In the API component’s General tab, add Stripe-Signature to Dynamic Document Property Headers. Boomi then passes it to the process as the dynamic document property inheader_Stripe-Signature.
  3. Deploy, and use the resulting HTTPS URL as the endpoint URL in Stripe (Step 2). Stripe can’t send Boomi user credentials, so allow the request on the listener side and rely on the signature check, plus Stripe’s published webhook IP addresses if your setup can filter by IP.
  4. A Set Properties shape copies your whsec_… password property into the dynamic process property STRIPE_WEBHOOK_SECRET; then this script verifies the request:
// Boomi Data Process shape: verify that a webhook really came from Stripe.
// In:  document body = the raw request body (no profile, nothing changed)
//      DDP inheader_Stripe-Signature  (API Service > General > Dynamic Document Property Headers)
//      DPP STRIPE_WEBHOOK_SECRET      (whsec_…, set from an environment extension)
// Out: DDP stripe_signature_valid = true / false, DDP stripe_event_id, DDP stripe_event_type
import java.util.Properties
import java.io.InputStream
import java.io.ByteArrayInputStream
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
import java.security.MessageDigest
import groovy.json.JsonSlurper
import com.boomi.execution.ExecutionUtil

final String P = 'document.dynamic.userdefined.'
final long TOLERANCE_SECONDS = 300   // Stripe's libraries use 5 minutes

String secret = ExecutionUtil.getDynamicProcessProperty('STRIPE_WEBHOOK_SECRET') ?: ''

for (int i = 0; i < dataContext.getDataCount(); i++) {
    InputStream is = dataContext.getStream(i)
    Properties props = dataContext.getProperties(i)
    byte[] raw = is.bytes                                   // the exact bytes Stripe signed
    String header = props.getProperty(P + 'inheader_Stripe-Signature') ?: ''

    // t=1492774577,v1=5257a8…,v0=… → timestamp and every v1 signature (several while a secret is being rolled)
    String t = null
    List<String> v1 = []
    header.split(',').each { part ->
        def kv = part.trim().split('=', 2)
        if (kv.length == 2 && kv[0] == 't') t = kv[1]
        if (kv.length == 2 && kv[0] == 'v1') v1 << kv[1]
    }

    boolean valid = false
    if (secret && t && v1) {
        Mac mac = Mac.getInstance('HmacSHA256')
        mac.init(new SecretKeySpec(secret.getBytes('UTF-8'), 'HmacSHA256'))
        mac.update((t + '.').getBytes('UTF-8'))
        byte[] expected = mac.doFinal(raw)
        String expectedHex = expected.encodeHex().toString()
        boolean match = v1.any { MessageDigest.isEqual(it.getBytes('UTF-8'), expectedHex.getBytes('UTF-8')) } // constant time
        long age = Math.abs(System.currentTimeMillis().intdiv(1000) - (t.isLong() ? t.toLong() : 0L))
        valid = match && age <= TOLERANCE_SECONDS
    }

    props.setProperty(P + 'stripe_signature_valid', valid.toString())
    if (valid) {
        def event = new JsonSlurper().parse(raw)
        props.setProperty(P + 'stripe_event_id', event.id ?: '')
        props.setProperty(P + 'stripe_event_type', event.type ?: '')
    }
    dataContext.storeStream(new ByteArrayInputStream(raw), props)
}

How the check works, following Stripe’s rules: the header carries a timestamp t and one or more v1 signatures. Stripe signs the text t + "." + raw body with HMAC-SHA256 using the endpoint’s secret. The script computes the same value, compares it in constant time, ignores the test-only v0 signature, and rejects anything older than five minutes so a captured request can’t be replayed.

Then decide and answer fast. Add a Decision on stripe_signature_valid. When it’s false, return a 400 and stop. When it’s true, hand the event to the real work (a Process Route, an Atom queue or a separate process) and return 200 straight away. Stripe expects a fast answer and retries anything that times out.

Flow of a Stripe webhook into Boomi: Stripe sends the event to the API Service, the signature is verified, a 200 is returned at once and the event is processed asynchronously
Illustration: verify, answer 200 at once, then process

Make the listener safe to run twice

  • Stripe retries for up to three days in live mode when your endpoint fails, and the same event can occasionally arrive twice. Keep the evt_… IDs you’ve processed (a cache, a database table or a custom field in the target system) and skip repeats.
  • Events aren’t guaranteed in order. invoice.paid can arrive before invoice.created. When order matters, fetch the current object from the API instead of trusting the sequence.
  • Missed something? GET /v1/events?types[]=payment_intent.succeeded&delivery_success=false lists events that failed to reach an endpoint in the last 30 days. A scheduled Boomi process can sweep them up.

Step 6: Handle limits and errors

What you seeWhat it meansWhat to do in Boomi
401Wrong, expired or rotated keyCheck the environment extension and that sandbox and live keys aren’t mixed
403 / permission errorThe restricted key lacks a permissionEdit the key and add Read or Write for that resource
400Invalid parameters (often JSON sent to v1, or a missing field)Log the error.message from the response; don’t retry
402A card error on a paymentA business outcome, not a technical failure: route it to the business
409The same Idempotency-Key sent with different parametersMake keys unique per action
429Rate limited (the Stripe-Rate-Limited-Reason header says why) or a lock timeoutWait and retry with growing delays, with a little randomness
5xxA problem at StripeRetry with the same Idempotency-Key

Stripe allows about 100 requests per second in live mode and 25 in a sandbox, with 25 per second per endpoint and 20 per second for Search. A single Boomi process rarely gets near that, but a large back-fill with many parallel threads can. Keep parallelism modest, and use Report Runs for big historical loads.

Test it end to end

  • Use the sandbox keys and Stripe’s test cards (for example 4242 4242 4242 4242 with any future date and CVC).
  • Install the Stripe CLI, then send events to your Boomi listener with stripe trigger payment_intent.succeeded, or forward events to a local test endpoint with stripe listen --forward-to … (which prints a separate whsec_… for that session).
  • In the Dashboard, each webhook endpoint’s Event deliveries tab shows every attempt with its HTTP status and response, and lets you Resend an event.
  • Check the key’s request logs (API keys → ⋯ → View request logs) to see exactly which calls Boomi made, and which ones a restricted key refused.

Checklist

  • A restricted key per integration, sandbox first, stored as a password property and set by environment extension.
  • An access policy on live keys, limited to your Atom’s addresses.
  • Stripe-Version pinned on every call.
  • Form-encoded bodies on v1 POSTs, and an Idempotency-Key on every create.
  • Pagination with starting_after and a created[gte] filter.
  • Webhooks verified, answered with 200 at once, deduplicated by event ID, with a scheduled sweep for missed events.
  • Balance transactions for payout reconciliation, and Report Runs for large exports.

Related reading

Connecting Stripe to your ERP or CRM with Boomi? Let’s talk.

Stripe to NetSuite Payments and Payout Reconciliation This post is about the project Stripe to NetSuite Payments and Payout Reconciliation

Comments 0

No comments yet. Start the discussion.

Leave a comment