[
  {
    "key": "evaluate-control",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-offers-before-tariff-control-definition",
        "idempotency_key": "idem-offers-before-tariff-control-definition"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m660xyma6q5z204gc58cp0ps",
          "contract_version": "offers-before-tariff-definition-offers-before-tariff-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "request": {
              "request_id": "scenario-offers-before-tariff-control-definition-offers-before-tariff-fixture",
              "operation_code": "rate_quote",
              "contract_version": "offers-before-tariff-definition-offers-before-tariff-fixture",
              "execution_mode": "live",
              "locale": "en",
              "currency_code": "EUR",
              "timezone": "Europe/Helsinki",
              "include_diagnostics": true
            },
            "scope": {
              "division_id": "01m660xyma6q5z204gc58cp0ps"
            },
            "channel": {
              "channel_code": "api"
            },
            "customer": {
              "customer_group_codes": [
                "standard"
              ]
            }
          },
          "requested_service_codes": [
            "standard_ground"
          ],
          "shipment": {
            "packages": [
              {
                "id": "pkg_1",
                "type": "parcel",
                "weight": {
                  "value": "1.0",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              }
            ],
            "origin": {
              "country_code": "FI",
              "postal_code": "00100"
            },
            "destination": {
              "country_code": "FI",
              "postal_code": "70800"
            },
            "parties": {
              "consignee": {
                "type": "individual",
                "facility_type": "residential_apartment",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              }
            }
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M660Y3X3K1DN0WC2C5CQGYSZ",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-offers-before-tariff-definition-offers-before-tariff-fixture",
              "service_id": "svc-offers-before-tariff-standard-definition-offers-before-tariff-fixture",
              "canonical_service_key": "platform:carrier-offers-before-tariff-definition-offers-before-tariff-fixture.svc-offers-before-tariff-standard-definition-offers-before-tariff-fixture",
              "presentation_identity_key": "delivery.standard_ground",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "offers-before-tariff-standard-row-definition-offers-before-tariff-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "12.50",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m660xzwwe6k4d0x5bb300ac0",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m660xyr3c18c85prsj47hc25",
                    "artifact_code": "offers-before-tariff-grid-definition-offers-before-tariff-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m660xyv6eh5y3kw351taccvk",
                    "artifact_row_code": "offers-before-tariff-standard-row-definition-offers-before-tariff-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": []
            }
          ],
          "diagnostics": [
            {
              "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-offers-before-tariff-definition-offers-before-tariff-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": "01M660Y3X3K1DN0WC2C5CQGYSZ"
        },
        "idempotency": {
          "key": "idem-offers-before-tariff-control-definition",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T09:05:59+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  },
  {
    "key": "evaluate-vip",
    "method": "POST",
    "path": "/api/rating/evaluate",
    "request": {
      "meta": {
        "request_id": "req-offers-before-tariff-vip-definition",
        "idempotency_key": "idem-offers-before-tariff-vip-definition"
      },
      "data": {
        "type": "rating-evaluation",
        "attributes": {
          "division_id": "01m660xyma6q5z204gc58cp0ps",
          "contract_version": "offers-before-tariff-definition-offers-before-tariff-fixture",
          "operation_code": "rate_quote",
          "timezone": "Europe/Helsinki",
          "context": {
            "request": {
              "request_id": "scenario-offers-before-tariff-vip-definition-offers-before-tariff-fixture",
              "operation_code": "rate_quote",
              "contract_version": "offers-before-tariff-definition-offers-before-tariff-fixture",
              "execution_mode": "live",
              "locale": "en",
              "currency_code": "EUR",
              "timezone": "Europe/Helsinki",
              "include_diagnostics": true
            },
            "scope": {
              "division_id": "01m660xyma6q5z204gc58cp0ps"
            },
            "channel": {
              "channel_code": "api"
            },
            "customer": {
              "customer_group_codes": [
                "vip"
              ]
            }
          },
          "requested_service_codes": [
            "standard_ground"
          ],
          "shipment": {
            "packages": [
              {
                "id": "pkg_1",
                "type": "parcel",
                "weight": {
                  "value": "1.0",
                  "unit": "kg"
                },
                "dimensions": {
                  "length": {
                    "value": "40",
                    "unit": "cm"
                  },
                  "width": {
                    "value": "30",
                    "unit": "cm"
                  },
                  "height": {
                    "value": "20",
                    "unit": "cm"
                  }
                }
              }
            ],
            "origin": {
              "country_code": "FI",
              "postal_code": "00100"
            },
            "destination": {
              "country_code": "FI",
              "postal_code": "70800"
            },
            "parties": {
              "consignee": {
                "type": "individual",
                "facility_type": "residential_apartment",
                "country_code": "FI",
                "address": {
                  "country_code": "FI"
                }
              }
            }
          }
        }
      }
    },
    "status": 200,
    "response": {
      "data": {
        "type": "rating-evaluation",
        "id": "01M660Y3Y2NBCB9HT4ZVRESPMD",
        "attributes": {
          "operation": "EvaluateShippingOptions",
          "operation_code": "rate_quote",
          "shipping_options": [
            {
              "carrier_id": "carrier-offers-before-tariff-definition-offers-before-tariff-fixture",
              "service_id": "svc-offers-before-tariff-standard-definition-offers-before-tariff-fixture",
              "canonical_service_key": "platform:carrier-offers-before-tariff-definition-offers-before-tariff-fixture.svc-offers-before-tariff-standard-definition-offers-before-tariff-fixture",
              "presentation_identity_key": "delivery.standard_ground",
              "service_names": [],
              "service_name": "",
              "sustainability_score": null,
              "capability_options": [],
              "price_components": [
                {
                  "kind": "base_rate",
                  "code": "offers-before-tariff-vip-row-definition-offers-before-tariff-fixture",
                  "scope": "shipment",
                  "scope_reference": null,
                  "amount": {
                    "amount": "18.00",
                    "currency_code": "EUR"
                  },
                  "calculation_basis": {
                    "ruleset_id": "01m660xzwwe6k4d0x5bb300ac0",
                    "ruleset_version": 1,
                    "rule_id": null,
                    "rule_version": null,
                    "logic": "pricing_tariff_grid",
                    "expression_tree": null,
                    "artifact_type": "pricing_tariff_grid",
                    "artifact_id": "01m660xyr3c18c85prsj47hc25",
                    "artifact_code": "offers-before-tariff-grid-definition-offers-before-tariff-fixture",
                    "artifact_version": 1,
                    "artifact_row_id": "01m660xyvqwkx9s7fd80rw0747",
                    "artifact_row_code": "offers-before-tariff-vip-row-definition-offers-before-tariff-fixture",
                    "row_sequence": 2,
                    "offer_codes": [
                      "VIP_SERVICE_AVAILABLE"
                    ],
                    "resolved_zone_code": "A"
                  },
                  "_group_code": "base_rate"
                }
              ],
              "total_price": {
                "amount": "18.00",
                "currency_code": "EUR"
              },
              "transit": {
                "min_days": 0,
                "max_days": 0,
                "promised_date": null,
                "confidence": 0
              },
              "eligibility_trace": [],
              "legs": []
            }
          ],
          "diagnostics": [
            {
              "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-offers-before-tariff-definition-offers-before-tariff-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": "01M660Y3Y2NBCB9HT4ZVRESPMD"
        },
        "idempotency": {
          "key": "idem-offers-before-tariff-vip-definition",
          "status": "created",
          "replayed": false,
          "original_decision_id": null,
          "original_outcome_reference": null,
          "request_hash_algorithm": "sha256"
        },
        "decision_instant_at": "2026-10-30T09:05:59+00:00",
        "decision_instant_source": "admission_default"
      }
    }
  }
]
