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:
| Topic | How it works |
|---|---|
| Base URL | https://api.stripe.com/v1/… (newer features also use /v2/…) |
| Authentication | Your API key as a Bearer token (Authorization: Bearer rk_live_…), or as the user name in HTTP Basic auth with an empty password |
| Request bodies | application/x-www-form-urlencoded for v1 POSTs, with brackets for nesting: metadata[netsuite_id]=1042 |
| Responses | JSON, every object with an id and an object type |
| Amounts | Integers in the smallest currency unit: 1999 means 19.99 USD |
| IDs | Prefixed by type: cus_ customer, pi_ payment intent, ch_ charge, re_ refund, dp_ dispute, in_ invoice, po_ payout, txn_ balance transaction, evt_ event |
| Versions | Your account has a default API version; pin one per request with the Stripe-Version header (for example 2026-09-30.endive) |

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:
| Key | Prefix | Use it for |
|---|---|---|
| Publishable key | pk_test_ / pk_live_ | Browsers and mobile apps only (Stripe.js). Never for Boomi. |
| Restricted key | rk_test_ / rk_live_ | Integrations like Boomi. Only the permissions you choose. |
| Secret key | sk_test_ / sk_live_ | Full access to everything. Stripe now recommends restricted keys instead. |
| Organisation key | sk_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)
- In the Stripe Dashboard, open the API keys page (
dashboard.stripe.com/apikeys). Start in your sandbox. - Click Create restricted key.
- Give it a clear name, for example
boomi-netsuite-sync. - 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.
- Click Create key and complete the two-step verification Stripe sends you.
- Copy the key value straight into Boomi (see below). In live mode you can’t see it again after closing the dialog.
- In Add a note, write where the key is stored (for example “Boomi environment extension, Production”), then click Done.

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.
- In the Dashboard, open Workbench → Webhooks (
dashboard.stripe.com/webhooks) and click Create an event destination. - 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.
- Select only the events you need, for example
payment_intent.succeeded,charge.refunded,charge.dispute.created,charge.dispute.closedandpayout.paid. - Choose Webhook endpoint, then enter the Endpoint URL of your Boomi listener (Step 5 shows how to build it).
- 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:
| API | Endpoint | What you use it for in Boomi |
|---|---|---|
| Customers | GET/POST /v1/customers | Keep customers in step with your ERP or CRM; store the ERP ID in metadata |
| Payment Intents | GET /v1/payment_intents | The payment itself: amount, status, customer, the invoice it pays |
| Charges | GET /v1/charges | Card and payment details, refunded amounts, the balance transaction behind each payment |
| Refunds | GET/POST /v1/refunds | Read refunds into the ERP, or create a refund that started in another system |
| Disputes | GET /v1/disputes | Chargebacks: amount, reason, status, evidence deadline |
| Invoices | GET/POST /v1/invoices | Stripe Billing invoices to post to the ERP, or invoices created from ERP orders |
| Subscriptions | GET /v1/subscriptions | Recurring revenue, plan changes and cancellations for CRM and finance |
| Products & Prices | GET/POST /v1/products, /v1/prices | Keep the price list in line with the ERP item master |
| Payouts | GET /v1/payouts | What Stripe sent to the bank, and when |
| Balance Transactions | GET /v1/balance_transactions?payout=po_… | Every payment, refund, dispute and fee inside a payout: the key to bank reconciliation |
| Events | GET /v1/events | Everything that happened in the last 30 days; the safety net for missed webhooks |
| Search | GET /v1/customers/search?query=… | Find records by email, metadata and more, e.g. email:'ana@example.com' |
| Checkout Sessions | POST /v1/checkout/sessions | Create a Stripe-hosted payment page from an order in another system |
| Report Runs | POST /v1/reporting/report_runs | Large payout reconciliation and balance reports as files, instead of thousands of calls |

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
Authorizationheader (next point). - Header option: in each operation, add a request header
Authorizationwhose value comes from a dynamic document property, built with a Set Properties shape asBearer+ 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 aslimit=100andcreated[gte]=<unix time>from replacement variables. - Add the header
Stripe-Versionwith the API version you tested, so a Dashboard upgrade never changes your responses unexpectedly. - Tick Return Application Error Responses, so a
4xxfrom 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-Keyheader from a dynamic document property, set to something unique and stable for that record, such asns-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 onPOSTs.
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:
- Set a dynamic process property
STRIPE_CURSORto empty, then callGET /v1/charges?limit=100(add&starting_after={cursor}when it isn’t empty). - Split the
dataarray into documents for the rest of the process. - In a separate branch, read
has_moreand the lastidfrom the response. Ifhas_moreistrue, store the id inSTRIPE_CURSORand call the same subprocess again; stop when it’sfalse. - 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:
- 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.
- In the API component’s General tab, add
Stripe-Signatureto Dynamic Document Property Headers. Boomi then passes it to the process as the dynamic document propertyinheader_Stripe-Signature. - 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.
- A Set Properties shape copies your
whsec_…password property into the dynamic process propertySTRIPE_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.

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.paidcan arrive beforeinvoice.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=falselists 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 see | What it means | What to do in Boomi |
|---|---|---|
401 | Wrong, expired or rotated key | Check the environment extension and that sandbox and live keys aren’t mixed |
403 / permission error | The restricted key lacks a permission | Edit the key and add Read or Write for that resource |
400 | Invalid parameters (often JSON sent to v1, or a missing field) | Log the error.message from the response; don’t retry |
402 | A card error on a payment | A business outcome, not a technical failure: route it to the business |
409 | The same Idempotency-Key sent with different parameters | Make keys unique per action |
429 | Rate limited (the Stripe-Rate-Limited-Reason header says why) or a lock timeout | Wait and retry with growing delays, with a little randomness |
5xx | A problem at Stripe | Retry 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 4242with 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 withstripe listen --forward-to …(which prints a separatewhsec_…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-Versionpinned on every call.- Form-encoded bodies on v1
POSTs, and anIdempotency-Keyon every create. - Pagination with
starting_afterand acreated[gte]filter. - Webhooks verified, answered with
200at 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
- Stripe to NetSuite payments and payout reconciliation, the same ideas built with Celigo
- Make HTTP calls in Boomi with the HTTP Client connector: connections, operations and headers from document properties
- Get and set DPP and DDP in Boomi Groovy scripts
- Set up VS Code to run and test Boomi Groovy scripts locally, how scripts like the two above can be tested before deploying
Connecting Stripe to your ERP or CRM with Boomi? Let’s talk.


Comments 0
No comments yet. Start the discussion.