FimaflowFimaflow team

Order pricing

One route that prices an order with business rules: it rejects bad or empty carts, computes the subtotal, then applies a 20% VIP discount. No database needed — press Run to try it.

Backend templateValidation · Conditional · Switch · Transform11 nodes1 endpoints
Order pricing

One route that prices an order with business rules: it rejects bad or empty carts, computes the subtotal, then applies a 20% VIP discount. No database needed — press Run to try it.

What's included

  • POST /orders with a ready-to-run test order (a VIP customer, total 32)
  • Validation and a Throw Exception node that reject malformed orders with a 422
  • A Conditional that answers 400 for an empty cart
  • A Switch that sends VIP customers and everyone else down different pricing paths
  • Change the customer to regular in the test payload to see the other path
    Order pricing | Fimaflow