Connecting Razorpay to BigQuery
Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Razorpay payment before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Razorpay to BigQuery: captured payments, paise and IST handled
Load Razorpay payments into BigQuery keyed on payment ID, with order ID, status, method, amount, currency and notes as raw JSON, extracting gclid and fbclid in a view. Convert paise, derive dates in Asia/Kolkata, load webhook events append-only and compute current state per payment, and join refund objects separately. Reconcile captured amounts, not settlements.
Load Razorpay payments keyed on payment ID, with order ID, status, method, amount, currency, the captured flag and the notes object as raw JSON. The notes are where your click identifiers and internal order reference live, so keep them intact and extract gclid, fbclid and the rest in a view. That gives you a table where UPI payments that never returned to the browser still carry the campaign that started them.
Three conversions trip up most loads. Amount is an integer in paise, not rupees. created_at is a Unix timestamp in seconds, and a UTC day boundary splits an Indian evening's sales across two dates, so derive the reporting date in Asia/Kolkata. And status changes after the fact, as authorized becomes captured and captured becomes refunded, so load webhook events as append-only rows and compute current state per payment ID, or revenue includes payments that were never captured.
Refunds arrive as separate refund objects referencing the payment. Join them in rather than subtracting on a single refunded flag, since partial refunds are common. Reconcile against Razorpay's reports for a closed month, comparing captured amounts with captured amounts: settlements are net of fees and taxes and land later, so they will never match revenue.
Razorpay → BigQuery · what breaks
Why this join usually fails — Razorpay → BigQuery
- 01
Whatever join key you decide on never reaches Razorpay
UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything.
- 02
UPI app switching ends the browser session
The customer leaves the browser for a banking app to approve, and on many devices does not return. Payment succeeds, page never fires — and UPI is the majority method in this market.
- 03
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Razorpay → BigQuery · the fix
What working looks like — Razorpay → BigQuery
Whatever join key you decide on on every payment
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
Razorpay → BigQuery · architecture
How Razorpay and BigQuery actually connect
- 1
Razorpay holds the truth
Razorpay separates authorised and captured. Auto-capture is common but not universal, and reporting on authorised inflates the figure by whatever fails to capture.
- 2
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, captured at the visit and carried into the Razorpay payment.
- 4
The event source decides reliability
Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
- 5
Deduplication at the destination
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Razorpay → BigQuery · normal or broken
Working vs. broken, side by side — Razorpay → BigQuery
Normal, not a fault
Whatever join key you decide on present on the payment
Sent from the Razorpay payment.captured webhook
Deduplicated correctly
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
Actually broken
Whatever join key you decide on missing on most records
UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything.
Sent from the browser
The customer leaves the browser for a banking app to approve, and on many devices does not return. Payment succeeds, page never fires — and UPI is the majority method in this market.
Counted twice, or not at all
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
Razorpay → BigQuery · diagnose
Diagnostic order — Razorpay → BigQuery
- 01
Count payments carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Compare captured payments against confirmation-page loads on mobile
Split by payment method. The UPI gap will be much larger than the card gap.
- 04
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Razorpay → BigQuery · prove
How it gets proven — Razorpay → BigQuery
Source of truth
Razorpay's captured payments by date, net of refunds.
- Whatever join key you decide on confirmed present on a live payment.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- A UPI payment approved in the banking app without returning to the site, confirmed to report.
Razorpay → BigQuery · free audit
What we check in the free audit
- Count payments carrying whatever join key you decide on
- Follow one real conversion end to end
- Compare captured payments against confirmation-page loads on mobile
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Razorpay's captured payments by date, net of refunds.
Free30 minutesNo obligation
Razorpay → BigQuery · when not to buy
When you don't need this — Razorpay → BigQuery
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry whatever join key you decide on.
- If your Razorpay volume is card-only, the app-switch problem largely disappears.
- If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
Razorpay → BigQuery · what we deliver
What gets built — Razorpay → BigQuery
Identifier capture into Razorpay
Pass the click identifier into the Razorpay order's notes when your server creates the order. Notes survive to the payment and to the webhook regardless of what the browser did.
Event source: the Razorpay payment.captured webhook
Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
Dispatch to BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
Reversals where they exist
Refunds are exposed and carry the original notes.
Written guarantee
95%+ tracking accuracy
Measured against Razorpay's captured payments by date, net of refunds.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Razorpay → BigQuery questions, answered
Stream webhook events into an append-only table or schedule pulls from Razorpay's API, keyed on payment ID, with amounts converted from paise.
Settlements are net of fees and taxes and arrive later than capture. Compare captured amounts with captured amounts.
Almost always because whatever join key you decide on never reached the Razorpay payment. UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything. Measure coverage before debugging the dispatch.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
The Razorpay payment.captured webhook. Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on Razorpay → BigQuery
- Razorpay → Google AdsConnecting Razorpay to Google Ads
- Razorpay → MetaConnecting Razorpay to Meta Conversions API
- Razorpay → GA4Connecting Razorpay to GA4
RELATED GUIDES
Where Razorpay → BigQuery fits in the rest of your tracking
- Adyen → BigQueryConnecting Adyen to BigQuery
- Paddle → BigQueryConnecting Paddle to BigQuery
- Acima → BigQueryConnecting Acima to BigQuery
- Razorpay → SnowflakeConnecting Razorpay to Snowflake
- Razorpay → SegmentConnecting Razorpay to Segment
- Financial servicesConversion tracking for financial services, built for the compliance review
- Square → BigQueryConnecting Square to BigQuery
- Afterpay → BigQueryConnecting Afterpay to BigQuery
Free · 30 min
Get Razorpay and BigQuery joined properly
Free30 minutesNo obligation
