API Reference

Create Payment

Track payments from any provider

Automatic tracking available

If you use Stripe, LemonSqueezy, or Polar, you do not need this endpoint. Payments are tracked automatically when your payment provider is connected.
POSThttps://analytics.flowsery.com/payments

Track payments from any provider and attribute revenue to your traffic sources.

Bearer Token (API key)

Request body

ParameterTypeDescription
amountnumberPayment amount. Examples: 29.99 for $29.99, 0 for free trials.
currencystringCurrency code such as "USD", "EUR", "GBP".
transactionIdstringA unique transaction identifier from your payment provider.
visitorUidstringThe Flowsery Analytics visitor ID from the _fs_vid browser cookie. Strongly recommended for accurate revenue attribution.
sessionUidstringThe session ID for the current visitor session.
emailstringCustomer email address.
namestringCustomer name.
customerIdstringCustomer ID from your payment provider.
isRenewalbooleanSet to true for recurring payments. Defaults to false.
isRefundbooleanSet to true for refunded payments. Defaults to false.

Returns a confirmation message on success.