Skip to main content
Razorpay → SnowflakeIntegration guide

Connecting Razorpay to Snowflake

Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. Snowflake's distinguishing feature is that two organisations can join data without either copying it to the other, which turns measurement between partners from a legal negotiation into a query. The join between them succeeds or fails on one thing: whether whatever join key both parties agree on, usually a hashed identifier reaches the Razorpay payment before the conversion happens, because Snowflake can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Razorpay payments and settlements in Snowflake, in the right time zone

Load Razorpay payments, refunds and settlements into Snowflake as separate tables; marketing reports captured payments while finance reconciles settlements. Store epoch timestamps and paise amounts raw, convert on read with an explicit IST or UTC day, put order notes in a VARIANT column for click identifiers, deduplicate on payment ID, and backfill from Razorpay's API.

Loading Razorpay into Snowflake is mostly about three tables that do not agree on purpose: payments, refunds and settlements. Payments say what was captured, refunds what was returned, and settlements what actually reached your bank after Razorpay's fees and the GST on those fees. Finance reconciles to settlements; marketing reports on captured payments. Keep all three, and do not let a dashboard quietly use one where the other was meant.

Razorpay timestamps are Unix epoch seconds and amounts are integers in paise. Store both raw, convert on read, and decide explicitly whether a day is an IST day or a UTC day. India is five and a half hours ahead of UTC, so a payment at 2 a.m. IST belongs to the previous UTC date, and a revenue report built on UTC days will disagree with the Razorpay dashboard every day by whatever sold between midnight and 5:30 a.m. IST.

Load the order notes into a VARIANT column. That is where the click identifiers you wrote at order creation live, and it is how warehouse revenue joins to campaign data. Webhook loads are at-least-once, so deduplicate on the Razorpay payment ID in a scheduled step, and backfill from Razorpay's API rather than trusting the webhook stream to be complete.

Razorpay → Snowflake · what breaks

Why this join usually fails — Razorpay → Snowflake

  1. 01

    Whatever join key both parties agree on, usually a hashed identifier 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.

  2. 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.

  3. 03

    A clean room that answers a question nobody agreed on

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  4. 04

    Nothing reconciles afterwards

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

Razorpay → Snowflake · the fix

What working looks like — Razorpay → Snowflake

  • Whatever join key both parties agree on, usually a hashed identifier on every payment

  • Conversions arriving in Snowflake

    The row lands in a table you own, joinable to your own data and — through a share or clean room — to a partner's, without either party moving raw records.

  • Reconciled against the source

Razorpay → Snowflake · architecture

How Razorpay and Snowflake actually connect

  1. 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. 2

    Snowflake needs a click to match

    A schema both sides agree on, consistent types, and identifiers normalised identically before hashing. The failure mode is not rejection but silent divergence — a timestamp in the wrong zone or a trimmed-versus-untrimmed email produces answers that look plausible.

  3. 3

    The identifier is the bridge

    Whatever join key both parties agree on, usually a hashed identifier, captured at the visit and carried into the Razorpay payment.

  4. 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. 5

    Deduplication at the destination

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

Razorpay → Snowflake · normal or broken

Working vs. broken, side by side — Razorpay → Snowflake

Normal, not a fault

  • Whatever join key both parties agree on, usually a hashed identifier present on the payment

  • Sent from the Razorpay payment.captured webhook

  • Deduplicated correctly

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

  • Reconciles with the source

Actually broken

  • Whatever join key both parties agree on, usually a hashed identifier 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

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  • Nobody has reconciled it

Razorpay → Snowflake · diagnose

Diagnostic order — Razorpay → Snowflake

  1. 01

    Count payments carrying whatever join key both parties agree on, usually a hashed identifier

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    Write down both parties' conversion definitions before writing any query

    Definition mismatch, not technology, is what makes most partner measurement projects produce numbers neither side trusts.

  5. 05

    Read the match rate, not the success message

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

Razorpay → Snowflake · prove

How it gets proven — Razorpay → Snowflake

Source of truth

Razorpay's captured payments by date, net of refunds.

  • Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live payment.
  • Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
  • A UPI payment approved in the banking app without returning to the site, confirmed to report.

Razorpay → Snowflake · free audit

What we check in the free audit

  • Count payments carrying whatever join key both parties agree on, usually a hashed identifier
  • Follow one real conversion end to end
  • Compare captured payments against confirmation-page loads on mobile
  • Write down both parties' conversion definitions before writing any query
  • Read the match rate, not the success message

Checked against

Razorpay's captured payments by date, net of refunds.

Get my free conversion tracking audit

Free30 minutesNo obligation

Razorpay → Snowflake · when not to buy

When you don't need this — Razorpay → Snowflake

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry whatever join key both parties agree on, usually a hashed identifier.
  • If your Razorpay volume is card-only, the app-switch problem largely disappears.
  • If you have no partner to share data with and one cloud, a warehouse you already run does the same job. The sharing capability is what justifies this one.

Razorpay → Snowflake · what we deliver

What gets built — Razorpay → Snowflake

  • 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 Snowflake

    Batch or streaming loads from your order system, with the raw event retained alongside anything 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Razorpay → Snowflake questions, answered

Usually time zone, because the Razorpay dashboard reports IST days while a warehouse grouping by UTC is 5.5 hours off, or a mix-up between captured payments and settlements net of fees.

Free · 30 min

Get Razorpay and Snowflake joined properly

Free30 minutesNo obligation