All articles

Custom attribution

How signed conversion postbacks and refunds work

Sign the exact request bytes, reuse a stable external conversion ID, and send refunds to the refund endpoint so commission reverses idempotently.

Published · Last reviewed

Written by Attribloom Engineering · Reviewed by Attribloom Product · Last reviewed

Conversion

Your server sends POST /v1/conversions with integer minor units, currency, a stable externalId, and an affiliate click or code. Sign timestamp-dot-raw-body with HMAC-SHA256 and send the surface, timestamp, and signature headers.

  • Use Unix seconds and a fresh timestamp.
  • Sign the exact bytes you send.
  • Keep the secret server-side.
  • Retry with the same externalId so duplicates remain safe.

Refund

Send POST /v1/conversions/refund with the original externalId, a stable refundId, refunded minor units, and matching currency. Full and partial refunds reverse the corresponding commission on the same ledger.

What this does not do

A signed postback proves the configured server sent the event. It does not validate an unsigned browser claim, replace your order system, or make floating-point currency safe.

Next steps

Frequently asked

Can I safely retry a refund?

Yes. Reuse the same stable refundId. Attribloom's released refund path is idempotent.

In the glossary

Continue reading

App Store attribution

How to attribute App Store subscriptions to an affiliate

App Store attribution

Why iOS affiliate installs are invisible to web attribution tools

Shopify attribution

How to attribute Shopify sales to affiliates without third-party cookies

Pricing models

Commission-only vs revenue-share affiliate programs

App Store attribution

How to validate App Store attribution before release

Payouts

How commission holds and clawbacks protect an affiliate program

iOS program launch

How to start an affiliate program for an iOS app

Shopify program launch

How to launch a Shopify affiliate program

Program economics

Affiliate commission rates: 2026 benchmarks by industry and how to set yours

Program policy

Affiliate program agreement template (2026): full contract and clause guide

Creator strategy

AI UGC vs human creators for affiliate marketing

App Store attribution

How to attribute App Store subscription renewals to an affiliate

App Store attribution

RevenueCat affiliate attribution for iOS subscriptions: a server-side pattern

App Store attribution

Affiliate-aware paywalls on iOS: pass referral context without fingerprinting

App Store attribution

iOS affiliate tracking without an SDK: StoreKit 2, appAccountToken, and server notifications

App Store attribution

SKAdNetwork vs affiliate attribution for iOS subscriptions

Shopify attribution

How to run a Shopify affiliate program without editing your theme

Shopify attribution

Shopify affiliate link tracking with cart attributes: a theme.liquid recipe

Compliance

FTC affiliate disclosure: the complete 2026 guide (rules, examples, placement)

Attribution concepts

What is deferred deep linking? A plain-English guide for attribution
Get startedSee pricingMore articles