[
  {
    "key": "no_allocations",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-no_allocations-b50c84e9c6a5416aa298",
        "idempotency_key": "idem-no_allocations-b50c84e9c6a5416aa298"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66jpe2petv1ft41t9jd0dwz",
          "contract_version": "item-allocation-definition-item-allocation-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66jpe2petv1ft41t9jd0dwz"
            },
            "request": {
              "request_id": "scenario-item-allocation-battery-definition-item-allocation-fixture",
              "contract_version": "item-allocation-definition-item-allocation-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": "Battery powered device",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true,
                  "battery_types": [
                    "lithium"
                  ]
                }
              },
              {
                "id": "item_2",
                "description": "Ordinary goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": []
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
                "service_id": "svc-item-allocation-definition-item-allocation-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"
                }
              }
            }
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66JPEDP490R2C4NN4PJBWRP",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
              "service_id": "svc-item-allocation-definition-item-allocation-fixture",
              "canonical_service_key": "platform:carrier-item-allocation-definition-item-allocation-fixture.svc-item-allocation-definition-item-allocation-fixture",
              "presentation_identity_key": "delivery.item_allocation",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "item-allocation-base-rate-definition-item-allocation-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "12.50",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66jpe4y8pbe36fb2x3gw7xt",
                    "artifact_code": "item-allocation-grid-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe50vxtfbdrm8qmarhf9",
                    "artifact_row_code": "item-allocation-base-rate-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "12.50",
                "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-item-allocation-definition-item-allocation-fixture",
                  "service_id": "svc-item-allocation-definition-item-allocation-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": "01M66JPEDP490R2C4NN4PJBWRP"
        },
        "idempotency": {
          "key": "idem-no_allocations-b50c84e9c6a5416aa298",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T14:16:22+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "both_batteries",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-both_batteries-b50c84e9c6a5416aa298",
        "idempotency_key": "idem-both_batteries-b50c84e9c6a5416aa298"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66jpe2petv1ft41t9jd0dwz",
          "contract_version": "item-allocation-definition-item-allocation-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66jpe2petv1ft41t9jd0dwz"
            },
            "request": {
              "request_id": "scenario-item-allocation-battery-definition-item-allocation-fixture",
              "contract_version": "item-allocation-definition-item-allocation-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": "Battery powered device",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true,
                  "battery_types": [
                    "lithium"
                  ]
                }
              },
              {
                "id": "item_2",
                "description": "Ordinary goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true,
                  "battery_types": [
                    "lithium"
                  ]
                }
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
                "service_id": "svc-item-allocation-definition-item-allocation-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"
                }
              }
            },
            "package_item_allocations": [
              {
                "package_id": "pkg_1",
                "item_id": "item_1",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              },
              {
                "package_id": "pkg_2",
                "item_id": "item_2",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              }
            ]
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66JPEE8PHY07220VGC1K6N3",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
              "service_id": "svc-item-allocation-definition-item-allocation-fixture",
              "canonical_service_key": "platform:carrier-item-allocation-definition-item-allocation-fixture.svc-item-allocation-definition-item-allocation-fixture",
              "presentation_identity_key": "delivery.item_allocation",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "item-allocation-base-rate-definition-item-allocation-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "12.50",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66jpe4y8pbe36fb2x3gw7xt",
                    "artifact_code": "item-allocation-grid-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe50vxtfbdrm8qmarhf9",
                    "artifact_row_code": "item-allocation-base-rate-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                },
                {
                  "kind": "flat",
                  "code": "dg-package-fee-definition-item-allocation-fixture",
                  "scope": "package",
                  "scope_reference": {
                    "package_id": "pkg_1"
                  },
                  "amount": {
                    "amount": "3.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_profile",
                    "expression_tree": null,
                    "artifact_type": "pricing_surcharge_table",
                    "artifact_id": "01m66jpe4r4fbfxaajsbv2vjxd",
                    "artifact_code": "item-allocation-surcharge-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe4srfdfgxqx5yd8sspk",
                    "artifact_row_code": "dg-package-fee-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "amount_mode": "fixed",
                    "tax_treatment": null,
                    "percentage_basis_group_codes": [],
                    "percentage_excluded_group_codes": [],
                    "percentage_basis_amount": null,
                    "percentage_basis_context": null,
                    "minimum_amount": null,
                    "minimum_currency_code": null,
                    "maximum_amount": null
                  },
                  "_group_code": "dg_handling"
                },
                {
                  "kind": "flat",
                  "code": "dg-package-fee-definition-item-allocation-fixture",
                  "scope": "package",
                  "scope_reference": {
                    "package_id": "pkg_2"
                  },
                  "amount": {
                    "amount": "3.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_profile",
                    "expression_tree": null,
                    "artifact_type": "pricing_surcharge_table",
                    "artifact_id": "01m66jpe4r4fbfxaajsbv2vjxd",
                    "artifact_code": "item-allocation-surcharge-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe4srfdfgxqx5yd8sspk",
                    "artifact_row_code": "dg-package-fee-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "amount_mode": "fixed",
                    "tax_treatment": null,
                    "percentage_basis_group_codes": [],
                    "percentage_excluded_group_codes": [],
                    "percentage_basis_amount": null,
                    "percentage_basis_context": null,
                    "minimum_amount": null,
                    "minimum_currency_code": null,
                    "maximum_amount": null
                  },
                  "_group_code": "dg_handling"
                }
              ],
              "total_price": {
                "amount": "18.50",
                "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-item-allocation-definition-item-allocation-fixture",
                  "service_id": "svc-item-allocation-definition-item-allocation-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": "01M66JPEE8PHY07220VGC1K6N3"
        },
        "idempotency": {
          "key": "idem-both_batteries-b50c84e9c6a5416aa298",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T14:16:22+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "boolean_only",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-boolean_only-b50c84e9c6a5416aa298",
        "idempotency_key": "idem-boolean_only-b50c84e9c6a5416aa298"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66jpe2petv1ft41t9jd0dwz",
          "contract_version": "item-allocation-definition-item-allocation-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66jpe2petv1ft41t9jd0dwz"
            },
            "request": {
              "request_id": "scenario-item-allocation-battery-definition-item-allocation-fixture",
              "contract_version": "item-allocation-definition-item-allocation-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": "Battery powered device",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true
                }
              },
              {
                "id": "item_2",
                "description": "Ordinary goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": []
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
                "service_id": "svc-item-allocation-definition-item-allocation-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"
                }
              }
            },
            "package_item_allocations": [
              {
                "package_id": "pkg_1",
                "item_id": "item_1",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              },
              {
                "package_id": "pkg_2",
                "item_id": "item_2",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              }
            ]
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66JPEEYC5EZ66CGAKGK0J51",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
              "service_id": "svc-item-allocation-definition-item-allocation-fixture",
              "canonical_service_key": "platform:carrier-item-allocation-definition-item-allocation-fixture.svc-item-allocation-definition-item-allocation-fixture",
              "presentation_identity_key": "delivery.item_allocation",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "item-allocation-base-rate-definition-item-allocation-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "12.50",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66jpe4y8pbe36fb2x3gw7xt",
                    "artifact_code": "item-allocation-grid-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe50vxtfbdrm8qmarhf9",
                    "artifact_row_code": "item-allocation-base-rate-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "12.50",
                "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-item-allocation-definition-item-allocation-fixture",
                  "service_id": "svc-item-allocation-definition-item-allocation-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": "01M66JPEEYC5EZ66CGAKGK0J51"
        },
        "idempotency": {
          "key": "idem-boolean_only-b50c84e9c6a5416aa298",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T14:16:22+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "unknown_item",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-unknown_item-b50c84e9c6a5416aa298",
        "idempotency_key": "idem-unknown_item-b50c84e9c6a5416aa298"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66jpe2petv1ft41t9jd0dwz",
          "contract_version": "item-allocation-definition-item-allocation-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66jpe2petv1ft41t9jd0dwz"
            },
            "request": {
              "request_id": "scenario-item-allocation-battery-definition-item-allocation-fixture",
              "contract_version": "item-allocation-definition-item-allocation-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": "Battery powered device",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true,
                  "battery_types": [
                    "lithium"
                  ]
                }
              },
              {
                "id": "item_2",
                "description": "Ordinary goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": []
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
                "service_id": "svc-item-allocation-definition-item-allocation-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"
                }
              }
            },
            "package_item_allocations": [
              {
                "package_id": "pkg_1",
                "item_id": "not-an-item",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              },
              {
                "package_id": "pkg_2",
                "item_id": "item_2",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              }
            ]
          }
        }
      }
    },
    "status": 400,
    "response": {
      "errors": [
        {
          "code": "INPUT_INVALID",
          "detail": "Deterministic endpoint admission failure",
          "meta": {
            "reason": "admission_or_validation_failure"
          },
          "source": {
            "pointer": "/data/attributes/shipment/package_item_allocations/0/item_id"
          },
          "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-unknown_item-b50c84e9c6a5416aa298"
        },
        "transport": {
          "content_type": "application/vnd.api+json"
        }
      }
    }
  },
  {
    "key": "inline_overrides",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-inline_overrides-b50c84e9c6a5416aa298",
        "idempotency_key": "idem-inline_overrides-b50c84e9c6a5416aa298"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66jpe2petv1ft41t9jd0dwz",
          "contract_version": "item-allocation-definition-item-allocation-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66jpe2petv1ft41t9jd0dwz"
            },
            "request": {
              "request_id": "scenario-item-allocation-battery-definition-item-allocation-fixture",
              "contract_version": "item-allocation-definition-item-allocation-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_2",
                    "description": "Ordinary goods",
                    "origin_country": "FI",
                    "quantity": {
                      "value": 1,
                      "unit": "EACH"
                    },
                    "unit_value": {
                      "amount": "100.00",
                      "currency_code": "EUR"
                    },
                    "goods": []
                  }
                ]
              },
              {
                "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": "Battery powered device",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true,
                  "battery_types": [
                    "lithium"
                  ]
                }
              },
              {
                "id": "item_2",
                "description": "Ordinary goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": []
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
                "service_id": "svc-item-allocation-definition-item-allocation-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"
                }
              }
            },
            "package_item_allocations": [
              {
                "package_id": "pkg_1",
                "item_id": "item_1",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              },
              {
                "package_id": "pkg_2",
                "item_id": "item_2",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              }
            ]
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66JPEFVQSNWRNW4BB38TBWZ",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
              "service_id": "svc-item-allocation-definition-item-allocation-fixture",
              "canonical_service_key": "platform:carrier-item-allocation-definition-item-allocation-fixture.svc-item-allocation-definition-item-allocation-fixture",
              "presentation_identity_key": "delivery.item_allocation",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "item-allocation-base-rate-definition-item-allocation-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "12.50",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66jpe4y8pbe36fb2x3gw7xt",
                    "artifact_code": "item-allocation-grid-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe50vxtfbdrm8qmarhf9",
                    "artifact_row_code": "item-allocation-base-rate-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "12.50",
                "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-item-allocation-definition-item-allocation-fixture",
                  "service_id": "svc-item-allocation-definition-item-allocation-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": "01M66JPEFVQSNWRNW4BB38TBWZ"
        },
        "idempotency": {
          "key": "idem-inline_overrides-b50c84e9c6a5416aa298",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T14:16:22+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "zero_quantity",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-zero_quantity-b50c84e9c6a5416aa298",
        "idempotency_key": "idem-zero_quantity-b50c84e9c6a5416aa298"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m66jpe2petv1ft41t9jd0dwz",
          "contract_version": "item-allocation-definition-item-allocation-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "scope": {
              "division_id": "01m66jpe2petv1ft41t9jd0dwz"
            },
            "request": {
              "request_id": "scenario-item-allocation-battery-definition-item-allocation-fixture",
              "contract_version": "item-allocation-definition-item-allocation-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": "Battery powered device",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": {
                  "contains_lithium": true,
                  "battery_types": [
                    "lithium"
                  ]
                }
              },
              {
                "id": "item_2",
                "description": "Ordinary goods",
                "origin_country": "FI",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                },
                "unit_value": {
                  "amount": "100.00",
                  "currency_code": "EUR"
                },
                "goods": []
              }
            ],
            "legs": [
              {
                "id": "leg_1",
                "sequence": 1,
                "transport_mode": "road",
                "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
                "service_id": "svc-item-allocation-definition-item-allocation-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"
                }
              }
            },
            "package_item_allocations": [
              {
                "package_id": "pkg_1",
                "item_id": "item_1",
                "quantity": {
                  "value": 0,
                  "unit": "EACH"
                }
              },
              {
                "package_id": "pkg_2",
                "item_id": "item_2",
                "quantity": {
                  "value": 1,
                  "unit": "EACH"
                }
              }
            ]
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M66JPEGFJZ2QF5JGH5KXN6AA",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-item-allocation-definition-item-allocation-fixture",
              "service_id": "svc-item-allocation-definition-item-allocation-fixture",
              "canonical_service_key": "platform:carrier-item-allocation-definition-item-allocation-fixture.svc-item-allocation-definition-item-allocation-fixture",
              "presentation_identity_key": "delivery.item_allocation",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "item-allocation-base-rate-definition-item-allocation-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "12.50",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m66jpe4y8pbe36fb2x3gw7xt",
                    "artifact_code": "item-allocation-grid-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe50vxtfbdrm8qmarhf9",
                    "artifact_row_code": "item-allocation-base-rate-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "offer_codes": [],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                },
                {
                  "kind": "flat",
                  "code": "dg-package-fee-definition-item-allocation-fixture",
                  "scope": "package",
                  "scope_reference": {
                    "package_id": "pkg_1"
                  },
                  "amount": {
                    "amount": "3.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m66jpe685mwcb8521h126gv2",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_profile",
                    "expression_tree": null,
                    "artifact_type": "pricing_surcharge_table",
                    "artifact_id": "01m66jpe4r4fbfxaajsbv2vjxd",
                    "artifact_code": "item-allocation-surcharge-definition-item-allocation-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m66jpe4srfdfgxqx5yd8sspk",
                    "artifact_row_code": "dg-package-fee-definition-item-allocation-fixture",
                    "row_sequence": 1,
                    "amount_mode": "fixed",
                    "tax_treatment": null,
                    "percentage_basis_group_codes": [],
                    "percentage_excluded_group_codes": [],
                    "percentage_basis_amount": null,
                    "percentage_basis_context": null,
                    "minimum_amount": null,
                    "minimum_currency_code": null,
                    "maximum_amount": null
                  },
                  "_group_code": "dg_handling"
                }
              ],
              "total_price": {
                "amount": "15.50",
                "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-item-allocation-definition-item-allocation-fixture",
                  "service_id": "svc-item-allocation-definition-item-allocation-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": "01M66JPEGFJZ2QF5JGH5KXN6AA"
        },
        "idempotency": {
          "key": "idem-zero_quantity-b50c84e9c6a5416aa298",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T14:16:22+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  }
]
