[
  {
    "key": "direct-diagnostics",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-direct-diagnostics-aab8dc1ece3c06a453ce",
        "idempotency_key": "idem-direct-diagnostics-aab8dc1ece3c06a453ce"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66s90x06np364t7a63my7yh",
          "contract_version": "multileg-definition-multileg-governed-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66s90x06np364t7a63my7yh"
            },
            "request": {
              "request_id": "validation-multileg-definition-multileg-governed-fixture",
              "contract_version": "multileg-definition-multileg-governed-fixture",
              "operation_code": "rate_quote",
              "timezone": "Europe/Helsinki",
              "execution_mode": "live",
              "include_diagnostics": true
            },
            "channel": {
              "channel_code": "api"
            },
            "customer": {
              "customer_group_codes": [
                "standard"
              ]
            }
          },
          "shipment": {
            "origin": {
              "country_code": "FI",
              "postal_code": "00100"
            },
            "destination": {
              "country_code": "FI",
              "postal_code": "70800"
            },
            "packages": [
              {
                "id": "pkg_1",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              },
              {
                "id": "pkg_2",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              }
            ],
            "items": [
              {
                "id": "item-1",
                "description": "Parcel goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                }
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                "origin": {
                  "country_code": "FI",
                  "postal_code": "00100"
                },
                "destination": {
                  "country_code": "FI",
                  "postal_code": "70800"
                },
                "package_ids": [
                  "pkg_1",
                  "pkg_2"
                ],
                "parties": {
                  "payor": {
                    "type": "organization"
                  },
                  "delivery_party": {
                    "facility_type": "warehouse"
                  }
                }
              }
            ],
            "parties": {
              "shipper": {
                "type": "business",
                "facility_type": "commercial_office"
              },
              "consignor": {
                "type": "business",
                "facility_type": "warehouse",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              },
              "consignee": {
                "type": "individual",
                "facility_type": "residential_apartment",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              }
            }
          },
          "requested_service_codes": [
            "standard_direct",
            "economy_multileg"
          ]
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66S918WEB9QMT5HW3QC6VF5",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
              "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
              "canonical_service_key": "platform:carrier-multileg-definition-multileg-governed-fixture.svc-multileg-standard-definition-multileg-governed-fixture",
              "presentation_identity_key": "delivery.standard_direct",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "multileg-standard-row-definition-multileg-governed-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "15.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66s9110g5g3knzskbp3zdxz",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66s9101z6pb9cwxz6rtbpbj",
                    "artifact_code": "multileg-grid-definition-multileg-governed-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66s91021f6ngs3na7cyctbg",
                    "artifact_row_code": "multileg-standard-row-definition-multileg-governed-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "15.00",
                "currency_code": "EUR"
              },
              "transit": {
                "min_days": 0,
                "max_days": 0,
                "promised_date": null,
                "confidence": 0
              },
              "eligibility_trace": [],
              "legs": [
                {
                  "id": "leg_1",
                  "sequence": 1,
                  "transport_mode": "road",
                  "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                  "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                  "origin": {
                    "country_code": "FI",
                    "postal_code": "00100"
                  },
                  "destination": {
                    "country_code": "FI",
                    "postal_code": "70800"
                  },
                  "parties": {
                    "payor": {
                      "type": "organization"
                    },
                    "delivery_party": {
                      "facility_type": "warehouse"
                    }
                  },
                  "package_ids": [
                    "pkg_1",
                    "pkg_2"
                  ],
                  "metrics": {
                    "derived": {
                      "package_count": 2,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 2,
                      "total_chargeable_weight_canonical": 2,
                      "total_freight_weight_canonical": 2,
                      "total_volume_canonical": 0.048,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    },
                    "effective": {
                      "package_count": 2,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 2,
                      "total_chargeable_weight_canonical": 2,
                      "total_freight_weight_canonical": 2,
                      "total_volume_canonical": 0.048,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    }
                  },
                  "price_components": [],
                  "total_price": {
                    "amount": "0.00",
                    "currency_code": "EUR"
                  },
                  "eligible": null
                }
              ]
            }
          ],
          "diagnostics": [
            {
              "code": "SERVICE_SKIPPED_BY_AVAILABILITY_RULE",
              "severity": "info",
              "message": "Service was skipped by service availability catalog.",
              "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
              "service_id": "svc-multileg-economy-definition-multileg-governed-fixture",
              "row_code": "multileg-direct-economy-block-definition-multileg-governed-fixture"
            },
            {
              "code": "SUSTAINABILITY_SCORE_UNAVAILABLE",
              "severity": "warning",
              "message": "Sustainability score could not be computed with the active formula/input evidence and fallback scoring was not used.",
              "carrier_id": "carrier-multileg-definition-multileg-governed-fixture"
            }
          ]
        }
      },
      "jsonapi": {
        "version": "1.1"
      },
      "meta": {
        "transport": {
          "content_type": "application/vnd.api+json"
        },
        "endpoint": {
          "endpoint_id": "api-rating-evaluate"
        },
        "contract": {
          "contract_version": "2026-03-22",
          "request_contract_version": "2026-03-22",
          "response_contract_version": "2026-03-22"
        },
        "decision": {
          "decision_id": "01M66S918WEB9QMT5HW3QC6VF5"
        },
        "idempotency": {
          "key": "idem-direct-diagnostics-aab8dc1ece3c06a453ce",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T16:11:23+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "multileg",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-multileg-aab8dc1ece3c06a453ce",
        "idempotency_key": "idem-multileg-aab8dc1ece3c06a453ce"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66s90x06np364t7a63my7yh",
          "contract_version": "multileg-definition-multileg-governed-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66s90x06np364t7a63my7yh"
            },
            "request": {
              "request_id": "validation-multileg-definition-multileg-governed-fixture",
              "contract_version": "multileg-definition-multileg-governed-fixture",
              "operation_code": "rate_quote",
              "timezone": "Europe/Helsinki",
              "execution_mode": "live"
            },
            "channel": {
              "channel_code": "api"
            },
            "customer": {
              "customer_group_codes": [
                "standard"
              ]
            }
          },
          "shipment": {
            "origin": {
              "country_code": "FI",
              "postal_code": "00100"
            },
            "destination": {
              "country_code": "FI",
              "postal_code": "70800"
            },
            "packages": [
              {
                "id": "pkg_1",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              },
              {
                "id": "pkg_2",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              }
            ],
            "items": [
              {
                "id": "item-1",
                "description": "Parcel goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                }
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                "origin": {
                  "country_code": "FI",
                  "postal_code": "00100"
                },
                "destination": {
                  "country_code": "FI",
                  "postal_code": "33100"
                },
                "package_ids": [
                  "pkg_1"
                ],
                "parties": {
                  "payor": {
                    "type": "organization"
                  },
                  "delivery_party": {
                    "facility_type": "warehouse"
                  }
                }
              },
              {
                "id": "leg_2",
                "sequence": 2,
                "transport_mode": "road",
                "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                "origin": {
                  "country_code": "FI",
                  "postal_code": "33100"
                },
                "destination": {
                  "country_code": "FI",
                  "postal_code": "70800"
                },
                "package_ids": [
                  "pkg_2"
                ],
                "parties": {
                  "payor": {
                    "type": "organization"
                  },
                  "delivery_party": {
                    "facility_type": "warehouse"
                  }
                }
              }
            ],
            "parties": {
              "shipper": {
                "type": "business",
                "facility_type": "commercial_office"
              },
              "consignor": {
                "type": "business",
                "facility_type": "warehouse",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              },
              "consignee": {
                "type": "individual",
                "facility_type": "residential_apartment",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              }
            }
          },
          "requested_service_codes": [
            "standard_direct",
            "economy_multileg"
          ]
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66S916GXCN3S32X1FJPTNWA",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
              "service_id": "svc-multileg-economy-definition-multileg-governed-fixture",
              "canonical_service_key": "platform:carrier-multileg-definition-multileg-governed-fixture.svc-multileg-economy-definition-multileg-governed-fixture",
              "presentation_identity_key": "delivery.economy_multileg",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "multileg-economy-row-definition-multileg-governed-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "9.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66s9110g5g3knzskbp3zdxz",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66s9101z6pb9cwxz6rtbpbj",
                    "artifact_code": "multileg-grid-definition-multileg-governed-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66s9103bq3nkq4g9j83e93y",
                    "artifact_row_code": "multileg-economy-row-definition-multileg-governed-fixture",
                    "row_sequence": 2,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "9.00",
                "currency_code": "EUR"
              },
              "transit": {
                "min_days": 0,
                "max_days": 0,
                "promised_date": null,
                "confidence": 0
              },
              "eligibility_trace": [],
              "legs": [
                {
                  "id": "leg_1",
                  "sequence": 1,
                  "transport_mode": "road",
                  "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                  "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                  "origin": {
                    "country_code": "FI",
                    "postal_code": "00100"
                  },
                  "destination": {
                    "country_code": "FI",
                    "postal_code": "33100"
                  },
                  "parties": {
                    "payor": {
                      "type": "organization"
                    },
                    "delivery_party": {
                      "facility_type": "warehouse"
                    }
                  },
                  "package_ids": [
                    "pkg_1"
                  ],
                  "metrics": {
                    "derived": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    },
                    "effective": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    }
                  },
                  "price_components": [],
                  "total_price": {
                    "amount": "0.00",
                    "currency_code": "EUR"
                  },
                  "eligible": null
                },
                {
                  "id": "leg_2",
                  "sequence": 2,
                  "transport_mode": "road",
                  "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                  "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                  "origin": {
                    "country_code": "FI",
                    "postal_code": "33100"
                  },
                  "destination": {
                    "country_code": "FI",
                    "postal_code": "70800"
                  },
                  "parties": {
                    "payor": {
                      "type": "organization"
                    },
                    "delivery_party": {
                      "facility_type": "warehouse"
                    }
                  },
                  "package_ids": [
                    "pkg_2"
                  ],
                  "metrics": {
                    "derived": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    },
                    "effective": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    }
                  },
                  "price_components": [],
                  "total_price": {
                    "amount": "0.00",
                    "currency_code": "EUR"
                  },
                  "eligible": null
                }
              ]
            },
            {
              "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
              "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
              "canonical_service_key": "platform:carrier-multileg-definition-multileg-governed-fixture.svc-multileg-standard-definition-multileg-governed-fixture",
              "presentation_identity_key": "delivery.standard_direct",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "multileg-standard-row-definition-multileg-governed-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "15.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66s9110g5g3knzskbp3zdxz",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66s9101z6pb9cwxz6rtbpbj",
                    "artifact_code": "multileg-grid-definition-multileg-governed-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66s91021f6ngs3na7cyctbg",
                    "artifact_row_code": "multileg-standard-row-definition-multileg-governed-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "15.00",
                "currency_code": "EUR"
              },
              "transit": {
                "min_days": 0,
                "max_days": 0,
                "promised_date": null,
                "confidence": 0
              },
              "eligibility_trace": [],
              "legs": [
                {
                  "id": "leg_1",
                  "sequence": 1,
                  "transport_mode": "road",
                  "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                  "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                  "origin": {
                    "country_code": "FI",
                    "postal_code": "00100"
                  },
                  "destination": {
                    "country_code": "FI",
                    "postal_code": "33100"
                  },
                  "parties": {
                    "payor": {
                      "type": "organization"
                    },
                    "delivery_party": {
                      "facility_type": "warehouse"
                    }
                  },
                  "package_ids": [
                    "pkg_1"
                  ],
                  "metrics": {
                    "derived": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    },
                    "effective": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    }
                  },
                  "price_components": [],
                  "total_price": {
                    "amount": "0.00",
                    "currency_code": "EUR"
                  },
                  "eligible": null
                },
                {
                  "id": "leg_2",
                  "sequence": 2,
                  "transport_mode": "road",
                  "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                  "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                  "origin": {
                    "country_code": "FI",
                    "postal_code": "33100"
                  },
                  "destination": {
                    "country_code": "FI",
                    "postal_code": "70800"
                  },
                  "parties": {
                    "payor": {
                      "type": "organization"
                    },
                    "delivery_party": {
                      "facility_type": "warehouse"
                    }
                  },
                  "package_ids": [
                    "pkg_2"
                  ],
                  "metrics": {
                    "derived": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    },
                    "effective": {
                      "package_count": 1,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 1,
                      "total_chargeable_weight_canonical": 1,
                      "total_freight_weight_canonical": 1,
                      "total_volume_canonical": 0.024,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    }
                  },
                  "price_components": [],
                  "total_price": {
                    "amount": "0.00",
                    "currency_code": "EUR"
                  },
                  "eligible": null
                }
              ]
            }
          ],
          "diagnostics": []
        }
      },
      "jsonapi": {
        "version": "1.1"
      },
      "meta": {
        "transport": {
          "content_type": "application/vnd.api+json"
        },
        "endpoint": {
          "endpoint_id": "api-rating-evaluate"
        },
        "contract": {
          "contract_version": "2026-03-22",
          "request_contract_version": "2026-03-22",
          "response_contract_version": "2026-03-22"
        },
        "decision": {
          "decision_id": "01M66S916GXCN3S32X1FJPTNWA"
        },
        "idempotency": {
          "key": "idem-multileg-aab8dc1ece3c06a453ce",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T16:11:23+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "repeated-package",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-repeated-package-aab8dc1ece3c06a453ce",
        "idempotency_key": "idem-repeated-package-aab8dc1ece3c06a453ce"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66s90x06np364t7a63my7yh",
          "contract_version": "multileg-definition-multileg-governed-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66s90x06np364t7a63my7yh"
            },
            "request": {
              "request_id": "validation-multileg-definition-multileg-governed-fixture",
              "contract_version": "multileg-definition-multileg-governed-fixture",
              "operation_code": "rate_quote",
              "timezone": "Europe/Helsinki",
              "execution_mode": "live"
            },
            "channel": {
              "channel_code": "api"
            },
            "customer": {
              "customer_group_codes": [
                "standard"
              ]
            }
          },
          "shipment": {
            "origin": {
              "country_code": "FI",
              "postal_code": "00100"
            },
            "destination": {
              "country_code": "FI",
              "postal_code": "70800"
            },
            "packages": [
              {
                "id": "pkg_1",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              }
            ],
            "items": [
              {
                "id": "item-1",
                "description": "Parcel goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                }
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                "origin": {
                  "country_code": "FI",
                  "postal_code": "00100"
                },
                "destination": {
                  "country_code": "FI",
                  "postal_code": "33100"
                },
                "package_ids": [
                  "pkg_1"
                ],
                "parties": {
                  "payor": {
                    "type": "organization"
                  },
                  "delivery_party": {
                    "facility_type": "warehouse"
                  }
                }
              },
              {
                "id": "leg_2",
                "sequence": 2,
                "transport_mode": "road",
                "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                "origin": {
                  "country_code": "FI",
                  "postal_code": "33100"
                },
                "destination": {
                  "country_code": "FI",
                  "postal_code": "70800"
                },
                "package_ids": [
                  "pkg_1"
                ],
                "parties": {
                  "payor": {
                    "type": "organization"
                  },
                  "delivery_party": {
                    "facility_type": "warehouse"
                  }
                }
              }
            ],
            "parties": {
              "shipper": {
                "type": "business",
                "facility_type": "commercial_office"
              },
              "consignor": {
                "type": "business",
                "facility_type": "warehouse",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              },
              "consignee": {
                "type": "individual",
                "facility_type": "residential_apartment",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              }
            }
          },
          "requested_service_codes": [
            "standard_direct",
            "economy_multileg"
          ]
        }
      }
    },
    "status": 400,
    "response": {
      "errors": [
        {
          "code": "INPUT_INVALID",
          "detail": "Deterministic endpoint admission failure",
          "meta": {
            "reason": "admission_or_validation_failure"
          },
          "source": {
            "pointer": "/data/attributes/shipment/legs/0/package_ids/0"
          },
          "status": "400",
          "title": "Input invalid"
        }
      ],
      "jsonapi": {
        "version": "1.1"
      },
      "meta": {
        "contract": {
          "contract_version": "2026-03-22",
          "request_contract_version": "2026-03-22",
          "response_contract_version": "2026-03-22"
        },
        "endpoint": {
          "endpoint_id": "api-rating-evaluate"
        },
        "trace": {
          "deterministic": true,
          "request_reference": "req-repeated-package-aab8dc1ece3c06a453ce"
        },
        "transport": {
          "content_type": "application/vnd.api+json"
        }
      }
    }
  },
  {
    "key": "two-packages-direct",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-two-packages-direct-aab8dc1ece3c06a453ce",
        "idempotency_key": "idem-two-packages-direct-aab8dc1ece3c06a453ce"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66s90x06np364t7a63my7yh",
          "contract_version": "multileg-definition-multileg-governed-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66s90x06np364t7a63my7yh"
            },
            "request": {
              "request_id": "validation-multileg-definition-multileg-governed-fixture",
              "contract_version": "multileg-definition-multileg-governed-fixture",
              "operation_code": "rate_quote",
              "timezone": "Europe/Helsinki",
              "execution_mode": "live"
            },
            "channel": {
              "channel_code": "api"
            },
            "customer": {
              "customer_group_codes": [
                "standard"
              ]
            }
          },
          "shipment": {
            "origin": {
              "country_code": "FI",
              "postal_code": "00100"
            },
            "destination": {
              "country_code": "FI",
              "postal_code": "70800"
            },
            "packages": [
              {
                "id": "pkg_1",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              },
              {
                "id": "pkg_2",
                "type": "parcel",
                "weight": {
                  "value": "1",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              }
            ],
            "items": [
              {
                "id": "item-1",
                "description": "Parcel goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                }
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                "origin": {
                  "country_code": "FI",
                  "postal_code": "00100"
                },
                "destination": {
                  "country_code": "FI",
                  "postal_code": "70800"
                },
                "package_ids": [
                  "pkg_1",
                  "pkg_2"
                ],
                "parties": {
                  "payor": {
                    "type": "organization"
                  },
                  "delivery_party": {
                    "facility_type": "warehouse"
                  }
                }
              }
            ],
            "parties": {
              "shipper": {
                "type": "business",
                "facility_type": "commercial_office"
              },
              "consignor": {
                "type": "business",
                "facility_type": "warehouse",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              },
              "consignee": {
                "type": "individual",
                "facility_type": "residential_apartment",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              }
            }
          },
          "requested_service_codes": [
            "standard_direct",
            "economy_multileg"
          ]
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66S917MDS2ZX20P4RNZBNFS",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
              "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
              "canonical_service_key": "platform:carrier-multileg-definition-multileg-governed-fixture.svc-multileg-standard-definition-multileg-governed-fixture",
              "presentation_identity_key": "delivery.standard_direct",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "multileg-standard-row-definition-multileg-governed-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "15.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66s9110g5g3knzskbp3zdxz",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66s9101z6pb9cwxz6rtbpbj",
                    "artifact_code": "multileg-grid-definition-multileg-governed-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66s91021f6ngs3na7cyctbg",
                    "artifact_row_code": "multileg-standard-row-definition-multileg-governed-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "15.00",
                "currency_code": "EUR"
              },
              "transit": {
                "min_days": 0,
                "max_days": 0,
                "promised_date": null,
                "confidence": 0
              },
              "eligibility_trace": [],
              "legs": [
                {
                  "id": "leg_1",
                  "sequence": 1,
                  "transport_mode": "road",
                  "carrier_id": "carrier-multileg-definition-multileg-governed-fixture",
                  "service_id": "svc-multileg-standard-definition-multileg-governed-fixture",
                  "origin": {
                    "country_code": "FI",
                    "postal_code": "00100"
                  },
                  "destination": {
                    "country_code": "FI",
                    "postal_code": "70800"
                  },
                  "parties": {
                    "payor": {
                      "type": "organization"
                    },
                    "delivery_party": {
                      "facility_type": "warehouse"
                    }
                  },
                  "package_ids": [
                    "pkg_1",
                    "pkg_2"
                  ],
                  "metrics": {
                    "derived": {
                      "package_count": 2,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 2,
                      "total_chargeable_weight_canonical": 2,
                      "total_freight_weight_canonical": 2,
                      "total_volume_canonical": 0.048,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    },
                    "effective": {
                      "package_count": 2,
                      "pallet_count": 0,
                      "total_loading_meters": 0,
                      "total_weight_canonical": 2,
                      "total_chargeable_weight_canonical": 2,
                      "total_freight_weight_canonical": 2,
                      "total_volume_canonical": 0.048,
                      "max_package_weight_canonical": 1,
                      "max_package_chargeable_weight_canonical": 1,
                      "max_package_volume_canonical": 0.024,
                      "max_package_width_canonical": 30,
                      "max_package_height_canonical": 20,
                      "max_package_linear_size_canonical": 90,
                      "max_longest_side_canonical": 40,
                      "max_package_length_plus_girth_canonical": 140
                    }
                  },
                  "price_components": [],
                  "total_price": {
                    "amount": "0.00",
                    "currency_code": "EUR"
                  },
                  "eligible": null
                }
              ]
            }
          ],
          "diagnostics": []
        }
      },
      "jsonapi": {
        "version": "1.1"
      },
      "meta": {
        "transport": {
          "content_type": "application/vnd.api+json"
        },
        "endpoint": {
          "endpoint_id": "api-rating-evaluate"
        },
        "contract": {
          "contract_version": "2026-03-22",
          "request_contract_version": "2026-03-22",
          "response_contract_version": "2026-03-22"
        },
        "decision": {
          "decision_id": "01M66S917MDS2ZX20P4RNZBNFS"
        },
        "idempotency": {
          "key": "idem-two-packages-direct-aab8dc1ece3c06a453ce",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T16:11:23+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  }
]
