Subscriptions

On this page:

This guide outlines best practices and technical specifications for subscription-based merchants integrating Ravelin’s Payment Fraud solution.

General Guidance

Customer Identity

The customerId field is critical to your integration, as Ravelin analyzes individual customer behavior. All orders placed by the same customer account should map to a single customer ID.

Event Types

The eventType field is useful to include in all API requests, to help identify what event in your system triggered an API call. It helps us to understand your integration more quickly, and debug any issues. Throughout this guide we have made suggestions on usage of this field.

Disputes

Disputes must be sent to Ravelin for all payments where a dispute occurs to ensure the dispute is linked back to the original order. Please see our guide on Sending Disputes for more information.

Subscription Integration Specifics

Order Identifiers

Every individual payment in a subscription, whether an initial sign-up, a renewal, regular recurring payment, or a one-off payment must be represented with a new and unique orderId.

Recurring Transaction Initiator

The transactions.recurringTransactionInitiator field should be used to differentiate customer initiated transactions (CITs) from merchant initiated transactions (MITs) across a subscription. This can be used to filter and report on the different transaction types in the Ravelin dashboard. This guide will advise how to use this field across different scenarios.

Initial Sign-Up

The initial sign-up is the first CIT in the subscription.

Recurring Payments & Renewals

Recurring payments are MITs following the initial sign-up. Many merchants choose not to have a fraud recommendation on recurring payments and renewals, however if you would like to consider a recommendation please speak to the Ravelin integrations team as this may have an impact on billing.

The volume of MITs within a subscription is usually significantly higher than CITs. Please inform the Ravelin integrations team of your anticipated volumes for recurring payments and renewals.

Even without a recommendation request, sending recurring payment data to Ravelin ensures complete visibility into customer behavior and allows chargeback/dispute mapping and broader business intelligence reporting. Frequently, the majority of disputes for subscription merchants occur on recurring orders.

A fraudster may create a subscription using a stolen card, if the customer does not notice this initially the bank may begin declining transactions due to suspicious behavior therefore seeing failed recurring transactions is beneficial.

  • API Endpoints: To send recurring payments to Ravelin but not request a recommendation, send a request to our Checkout endpoint without the score query parameter.
  • Fields:
  • Traffic Smoothing: It is common for subscription renewals to be initiated in large, automated batches. To prevent being rate limited by the Ravelin API, smooth out your recurring payment traffic across time windows to ensure consistency with your baseline volumes. Please find more information on Ravelin rate limits here.
  • Customer-Initiated Renewals: If a customer must manually act to initiate a subscription renewal, follow the Initial Sign-Up workflow to request a new recommendation.

Subscription Changes & Modifications

  • Upgrades & Product Changes: If a customer initiates a change to their tier or adds products, the price of a subscription may change. We would suggest that you request a new recommendation following the Initial Sign-Up workflow.
  • Payment Method Changes: If a customer changes the underlying card or payment method on their account between recurring payments, you may want to send this to Ravelin at the time of the new payment method. We suggest that you consider a recommendation request on the new payment method. Please see our Payment Method Registration guidance and discuss your scenarios with the Ravelin integrations team.

Free Trials

Free trials grant customers access to a service under the assumption that they will auto-enroll into a rolling subscription unless canceled.

  • When Payment Method is Available:
    • Request a recommendation when the customer is registering for the trial using v2/checkout?score=checkoutPreAuth, followed by a v2/checkout update payload detailing the outcome.
    • Set order.price, item.price, and transactions.amount to 0.
  • When Payment Method is NOT Available:
    • If a user registers for a trial without providing payment details (e.g., via a promo link), do not send a checkout request when the trial starts. Treat the first paid billing event as the Initial Sign-Up.
  • Trial Conversions (First Paid Order):
    • When a free trial becomes a paid subscription and the first payment is taken, you may wish to request another recommendation. To do this follow the Initial Sign-Up guidance. This is often recommended because the order.price, item.price, and transactions.amount now differ from the zero-value trial request.
    • If you do not wish to request a new recommendation upon conversion, send the converting order as a Recurring Payment.
    • In the case of a trial conversion, please discuss the payment transaction types based on whether the customer actively participates in the conversion or not with the Ravelin integrations team.

One-Off Payments

Merchants offering standalone items outside of the subscription itself (e.g., single-day passes, event tickets) should send these via a separate Checkout request at the time of the customer making the payment.

For more information on sending one-off payments, please see Ravelin’s guide on Requesting Recommendations.

Additional Integration Questions

Below are questions the Ravelin integrations team is likely to ask during discovery and setup:

  • Can the price of a subscription change mid cycle, or does this only occur upon a renewal?
  • What is the maximum number of initial sign up payments you expect to process in a single day or 60 minute window?
  • What is the maximum number of recurring payments you expect to process in a single day or 60 minute window?
  • What is the required SLA for processing a daily batch of recurring charges e.g. must all charges complete within a specific hour?
  • What is the distribution of your billing cycles e.g. monthly, weekly, annually?
  • If a recurring payment fails, what is the retry procedure e.g. retry after 3, 7 and 10 days?
  • If a customer cancels their subscription does the account lie dormant or is the account terminated?
  • If a customer cancels their subscription and signs up again at a later date, is the same customerId used or is a new one generated?
  • In the case of a free trial, would you request a recommendation from Ravelin after the free trial ends, when the first payment is taken?
  • Are all customer accounts registered, or do you also support guest accounts?

Next steps

Feedback