Skip to main content
Attribution ties a Fanvue checkout payment back to the record in your own system that started it, such as a CRM contact, an order or a campaign. You add identifiers to the checkout link URL, and Fanvue carries them unchanged onto the payment, the subscription, its renewals and every related checkout event. You need a checkout link to append them to; Create checkout links gets you one. Both parameters are optional, and you can use either or both.

client_reference_id

A single opaque string of up to 200 characters, such as your order id or customer id. Append it to the checkout link URL:
The value appears on every event as data.client_reference_id and on the payments endpoints as clientReferenceId. To find the payments for one reference, filter on it: GET /creators/{creatorUserUuid}/checkout-links/payments?clientReferenceId=your-crm-id-123 returns the payments carrying that exact value.

metadata

A flat string-to-string map for richer attribution, such as an affiliate id plus a campaign. Pass each entry as a metadata[<key>] query parameter:
The map appears on every event as data.metadata and on the payments endpoints as metadata:
Fanvue sanitises metadata to a flat string-to-string map when it captures it: Non-string or out-of-range entries are dropped. If nothing valid remains, metadata is {}.

Amounts on an attributed payment

To match a payment against your order value, use total on the checkout_link.payment.* event. It’s what the fan was charged, and tax is the tax inside it. On a tax-inclusive link gross is the pre-tax base, so it won’t match. Field definitions are in Checkout link payment events.

Passthrough only

Fanvue never interprets either value, and it echoes both verbatim in webhook payloads and API responses. Never put a secret in them, because every receiver of the event or response sees it. If one has already been sent this way, rotate it.