Skip to main content

Dry requests

A dry request is a test request that is checked by Talon.One but that is not executed.

To mark an Integration API request as dry, add the optional query parameter dry=true in your request to a supported endpoint. No data about this request and its response is stored in Talon.One's database.

Use cases

This feature helps you simulate what if scenarios, for example:

  • What if the end user adds this product to their cart?
  • What if the end user applies this coupon to their order?

Additionally, you can check the output of a rule without affecting any of the analytics data that Talon.One generates.

Example scenario 1

  1. Your end user is looking at a product page.
  2. You are firing a customer session update, pretending that the end user already put this item in their cart.
  3. If the API response includes a per item discount for this cart item, the discounted price gets rendered on the page.
tip

If you plan on using dry runs for such a scenario, implement an intelligent caching solution on your side. Avoid calling the Talon.One API on every single page visit.

Example scenario 2

  1. Your end user puts an item in their basket and proceeds to checkout.
  2. Your end user has reserved coupons.
  3. You are firing a session update to test if this reserved coupon resulted in a discount on this order.
  4. If it does, the coupon gets applied automatically and the end user gets a notification.