{
  "cases": [
    {
      "id": "1",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 0,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 1000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 185000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": -49000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": -26.49
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "blocked"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 192000,
            "discount_bps": 0,
            "discount_cents": 0,
            "gross_cents": 185000,
            "net_cents": 185000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 1000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "NEGATIVE_PROFIT",
              "message": "This offer has negative profit and cannot be approved.",
              "severity": "critical"
            },
            {
              "code": "LOW_MARGIN",
              "message": "Margin is below the minimum of 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            }
          ],
          "status": "blocked"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 234000,
          "delivery_cents": 42000,
          "discount_cents": 0,
          "gross_cents": 185000,
          "margin_bps": -2649,
          "net_cents": 185000,
          "profit_cents": -49000,
          "rebate_cents": 0,
          "volume_litres": 1000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 192000,
          "discount_bps": 0,
          "discount_cents": 0,
          "gross_cents": 185000,
          "net_cents": 185000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 1000,
          "unit_price_cents": 185
        }
      ],
      "title": "1000 litres · 185 cents · 0% discount"
    },
    {
      "id": "2",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 2000,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 1000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 148000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": -86000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": -58.11
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "blocked"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 192000,
            "discount_bps": 2000,
            "discount_cents": 37000,
            "gross_cents": 185000,
            "net_cents": 148000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 1000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "NEGATIVE_PROFIT",
              "message": "This offer has negative profit and cannot be approved.",
              "severity": "critical"
            },
            {
              "code": "LOW_MARGIN",
              "message": "Margin is below the minimum of 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            },
            {
              "code": "EXCESSIVE_DISCOUNT",
              "message": "Combined discount or a line discount exceeds 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            }
          ],
          "status": "blocked"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 234000,
          "delivery_cents": 42000,
          "discount_cents": 37000,
          "gross_cents": 185000,
          "margin_bps": -5811,
          "net_cents": 148000,
          "profit_cents": -86000,
          "rebate_cents": 0,
          "volume_litres": 1000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 192000,
          "discount_bps": 2000,
          "discount_cents": 37000,
          "gross_cents": 185000,
          "net_cents": 148000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 1000,
          "unit_price_cents": 185
        }
      ],
      "title": "1000 litres · 185 cents · 20% discount"
    },
    {
      "id": "3",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 0,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 1000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 295000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": 61000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": 20.68
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "clear"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 192000,
            "discount_bps": 0,
            "discount_cents": 0,
            "gross_cents": 295000,
            "net_cents": 295000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 1000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "BELOW_TARGET_MARGIN",
              "message": "Margin is below the target of 25.00%.",
              "severity": "info"
            }
          ],
          "status": "clear"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 234000,
          "delivery_cents": 42000,
          "discount_cents": 0,
          "gross_cents": 295000,
          "margin_bps": 2068,
          "net_cents": 295000,
          "profit_cents": 61000,
          "rebate_cents": 0,
          "volume_litres": 1000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 192000,
          "discount_bps": 0,
          "discount_cents": 0,
          "gross_cents": 295000,
          "net_cents": 295000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 1000,
          "unit_price_cents": 295
        }
      ],
      "title": "1000 litres · 295 cents · 0% discount"
    },
    {
      "id": "4",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 2000,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 1000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 236000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": 2000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": 0.85
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "review"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 192000,
            "discount_bps": 2000,
            "discount_cents": 59000,
            "gross_cents": 295000,
            "net_cents": 236000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 1000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "LOW_MARGIN",
              "message": "Margin is below the minimum of 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            },
            {
              "code": "EXCESSIVE_DISCOUNT",
              "message": "Combined discount or a line discount exceeds 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            }
          ],
          "status": "review"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 234000,
          "delivery_cents": 42000,
          "discount_cents": 59000,
          "gross_cents": 295000,
          "margin_bps": 85,
          "net_cents": 236000,
          "profit_cents": 2000,
          "rebate_cents": 0,
          "volume_litres": 1000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 192000,
          "discount_bps": 2000,
          "discount_cents": 59000,
          "gross_cents": 295000,
          "net_cents": 236000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 1000,
          "unit_price_cents": 295
        }
      ],
      "title": "1000 litres · 295 cents · 20% discount"
    },
    {
      "id": "5",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 0,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 10000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 1850000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": -112000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": -6.05
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "blocked"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 1920000,
            "discount_bps": 0,
            "discount_cents": 0,
            "gross_cents": 1850000,
            "net_cents": 1850000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 10000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "NEGATIVE_PROFIT",
              "message": "This offer has negative profit and cannot be approved.",
              "severity": "critical"
            },
            {
              "code": "LOW_MARGIN",
              "message": "Margin is below the minimum of 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            }
          ],
          "status": "blocked"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 1962000,
          "delivery_cents": 42000,
          "discount_cents": 0,
          "gross_cents": 1850000,
          "margin_bps": -605,
          "net_cents": 1850000,
          "profit_cents": -112000,
          "rebate_cents": 0,
          "volume_litres": 10000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 1920000,
          "discount_bps": 0,
          "discount_cents": 0,
          "gross_cents": 1850000,
          "net_cents": 1850000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 10000,
          "unit_price_cents": 185
        }
      ],
      "title": "10000 litres · 185 cents · 0% discount"
    },
    {
      "id": "6",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 2000,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 10000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 1480000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": -482000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": -32.57
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "blocked"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 1920000,
            "discount_bps": 2000,
            "discount_cents": 370000,
            "gross_cents": 1850000,
            "net_cents": 1480000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 10000,
            "unit_price_cents": 185
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "NEGATIVE_PROFIT",
              "message": "This offer has negative profit and cannot be approved.",
              "severity": "critical"
            },
            {
              "code": "LOW_MARGIN",
              "message": "Margin is below the minimum of 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            },
            {
              "code": "EXCESSIVE_DISCOUNT",
              "message": "Combined discount or a line discount exceeds 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            }
          ],
          "status": "blocked"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 1962000,
          "delivery_cents": 42000,
          "discount_cents": 370000,
          "gross_cents": 1850000,
          "margin_bps": -3257,
          "net_cents": 1480000,
          "profit_cents": -482000,
          "rebate_cents": 0,
          "volume_litres": 10000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 1920000,
          "discount_bps": 2000,
          "discount_cents": 370000,
          "gross_cents": 1850000,
          "net_cents": 1480000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 10000,
          "unit_price_cents": 185
        }
      ],
      "title": "10000 litres · 185 cents · 20% discount"
    },
    {
      "id": "7",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 0,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 10000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 2950000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": 988000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": 33.49
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "clear"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 1920000,
            "discount_bps": 0,
            "discount_cents": 0,
            "gross_cents": 2950000,
            "net_cents": 2950000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 10000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [],
          "status": "clear"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 1962000,
          "delivery_cents": 42000,
          "discount_cents": 0,
          "gross_cents": 2950000,
          "margin_bps": 3349,
          "net_cents": 2950000,
          "profit_cents": 988000,
          "rebate_cents": 0,
          "volume_litres": 10000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 1920000,
          "discount_bps": 0,
          "discount_cents": 0,
          "gross_cents": 2950000,
          "net_cents": 2950000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 10000,
          "unit_price_cents": 295
        }
      ],
      "title": "10000 litres · 295 cents · 0% discount"
    },
    {
      "id": "8",
      "inputs": {
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "discount_bps": 2000,
            "packaging": "bulk",
            "product_id": "product",
            "quantity_litres": 10000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "valid_until": "2030-10-08"
      },
      "metrics": [
        {
          "label": "Net revenue",
          "unit": "USD cents",
          "value": 2360000
        },
        {
          "label": "Profit",
          "unit": "USD cents",
          "value": 398000
        },
        {
          "label": "Margin",
          "unit": "%",
          "value": 16.86
        },
        {
          "label": "Policy",
          "unit": "",
          "value": "review"
        }
      ],
      "result": {
        "calculation_snapshot": {
          "algorithm": "quayline-half-up-v1",
          "base_currency": "USD",
          "customer": {
            "country": "EX",
            "id": "customer",
            "name": "Fictional buyer"
          },
          "fx_as_of": "2026-10-01",
          "fx_rate_micros": 1000000,
          "lines": [
            {
              "handling_usd_cents_per_litre": 7,
              "packaging_usd_cents_per_litre": 0,
              "product_id": "product",
              "product_name": "Synthetic lubricant",
              "product_sku": "EXAMPLE",
              "product_version": 1,
              "unit_cost_usd_cents": 185
            }
          ],
          "policy": {
            "max_discount_bps": 1500,
            "max_payment_days": 60,
            "minimum_margin_bps": 1500,
            "target_margin_bps": 2500
          },
          "port": {
            "country": "EX",
            "delivery_fee_usd_cents": 42000,
            "handling_usd_cents_per_litre": 7,
            "id": "port",
            "name": "Fictional port",
            "region": "Example",
            "version": 1
          },
          "quote_currency": "USD",
          "settings_version": 1,
          "vessel": null
        },
        "currency": "USD",
        "customer_id": "customer",
        "lines": [
          {
            "cost_cents": 1920000,
            "discount_bps": 2000,
            "discount_cents": 590000,
            "gross_cents": 2950000,
            "net_cents": 2360000,
            "packaging": "bulk",
            "product_id": "product",
            "product_name": "Synthetic lubricant",
            "quantity_litres": 10000,
            "unit_price_cents": 295
          }
        ],
        "notes": "Synthetic case",
        "payment_days": 30,
        "policy": {
          "findings": [
            {
              "code": "BELOW_TARGET_MARGIN",
              "message": "Margin is below the target of 25.00%.",
              "severity": "info"
            },
            {
              "code": "EXCESSIVE_DISCOUNT",
              "message": "Combined discount or a line discount exceeds 15.00%. Independent approval requires a written exception.",
              "severity": "warning"
            }
          ],
          "status": "review"
        },
        "port_id": "port",
        "rebate_bps": 0,
        "title": "Synthetic offer",
        "totals": {
          "cost_cents": 1962000,
          "delivery_cents": 42000,
          "discount_cents": 590000,
          "gross_cents": 2950000,
          "margin_bps": 1686,
          "net_cents": 2360000,
          "profit_cents": 398000,
          "rebate_cents": 0,
          "volume_litres": 10000
        },
        "valid_until": "2030-10-08",
        "vessel_id": ""
      },
      "rows": [
        {
          "cost_cents": 1920000,
          "discount_bps": 2000,
          "discount_cents": 590000,
          "gross_cents": 2950000,
          "net_cents": 2360000,
          "packaging": "bulk",
          "product_id": "product",
          "product_name": "Synthetic lubricant",
          "quantity_litres": 10000,
          "unit_price_cents": 295
        }
      ],
      "title": "10000 litres · 295 cents · 20% discount"
    }
  ],
  "category": "operations",
  "description": "Compare volume, discount and margin policy for synthetic marine supply offers.",
  "edition": "Precomputed synthetic browser edition",
  "limits": "No ERP integration, customer records, approval or operational offer creation.",
  "method": "BigInt half-up minor-unit arithmetic with a frozen pricing snapshot.",
  "name": "Quayline Pricing Workspace",
  "omitted_runtime_fields": [
    "elapsed_ms",
    "quoted_at",
    "calculated_at"
  ],
  "provenance": "Original synthetic fixtures generated from the project engine. No operational or personal records.",
  "slug": "quayline-pricing-workspace",
  "source_visibility": "private",
  "subtitle": "Know what an offer earns"
}
