{
  "profile": "cpapi-refund.v1",
  "public_key_derivation": "SHA-256(UTF-8(label))",
  "label": "Public synthetic cpapi-refund.v1 Money signature fixture",
  "authority": "money.example.invalid",
  "keyid": "module-refund-fixture",
  "created": 1787500000,
  "vectors": [
    {
      "operation": "refund-eur",
      "method": "POST",
      "path": "/v1/transactions/refund",
      "body_utf8": "{\"tenant_id\":\"fixture-tenant\",\"integration_id\":\"fixture-integration\",\"environment\":\"certification\",\"player_ref\":\"fixture-player\",\"session_id\":\"session-EUR\",\"round_id\":\"round-EUR\",\"transaction_id\":\"refund-EUR\",\"bet_transaction_id\":\"bet-EUR\",\"amount\":{\"currency\":\"EUR\",\"amount_minor\":25}}",
      "headers": {
        "idempotency-key": "fixture-refund-key-EUR",
        "content-digest": "sha-256=:3WmVzygviPF0nVaHRGsefILQ+RuLcgPW+UAbU6rquyw=:",
        "signature-input": "sig1=(\"@method\" \"@authority\" \"@path\" \"content-digest\");created=1787500000;expires=1787500300;nonce=\"00000000000000000000000000000001\";keyid=\"module-refund-fixture\";alg=\"hmac-sha256\";tag=\"cpapi-money-certification\"",
        "signature": "sig1=:OsIryyDpLBwHQcG84A5QU4a4jcnmt71MaIBH/cMmhok=:"
      },
      "nonce": "00000000000000000000000000000001",
      "signature_base": "\"@method\": POST\n\"@authority\": money.example.invalid\n\"@path\": /v1/transactions/refund\n\"content-digest\": sha-256=:3WmVzygviPF0nVaHRGsefILQ+RuLcgPW+UAbU6rquyw=:\n\"@signature-params\": (\"@method\" \"@authority\" \"@path\" \"content-digest\");created=1787500000;expires=1787500300;nonce=\"00000000000000000000000000000001\";keyid=\"module-refund-fixture\";alg=\"hmac-sha256\";tag=\"cpapi-money-certification\"",
      "expected_verdict": "verified"
    },
    {
      "operation": "refund-btc",
      "method": "POST",
      "path": "/v1/transactions/refund",
      "body_utf8": "{\"tenant_id\":\"fixture-tenant\",\"integration_id\":\"fixture-integration\",\"environment\":\"certification\",\"player_ref\":\"fixture-player\",\"session_id\":\"session-BTC\",\"round_id\":\"round-BTC\",\"transaction_id\":\"refund-BTC\",\"bet_transaction_id\":\"bet-BTC\",\"amount\":{\"currency\":\"BTC\",\"amount_minor\":1},\"occurred_at\":\"2026-08-23T15:46:40.000Z\",\"provider_transaction_ref\":\"studio-refund-BTC\"}",
      "headers": {
        "idempotency-key": "fixture-refund-key-BTC",
        "content-digest": "sha-256=:mE9GDWh4xoBhORi4L9wWp39OwgZO9GrihZMEYILSl1o=:",
        "signature-input": "sig1=(\"@method\" \"@authority\" \"@path\" \"content-digest\");created=1787500000;expires=1787500300;nonce=\"00000000000000000000000000000002\";keyid=\"module-refund-fixture\";alg=\"hmac-sha256\";tag=\"cpapi-money-certification\"",
        "signature": "sig1=:oh4wDYvtIfYZGHfzVyPVihH9MWuyOKIZkwb8gilSX7w=:"
      },
      "nonce": "00000000000000000000000000000002",
      "signature_base": "\"@method\": POST\n\"@authority\": money.example.invalid\n\"@path\": /v1/transactions/refund\n\"content-digest\": sha-256=:mE9GDWh4xoBhORi4L9wWp39OwgZO9GrihZMEYILSl1o=:\n\"@signature-params\": (\"@method\" \"@authority\" \"@path\" \"content-digest\");created=1787500000;expires=1787500300;nonce=\"00000000000000000000000000000002\";keyid=\"module-refund-fixture\";alg=\"hmac-sha256\";tag=\"cpapi-money-certification\"",
      "expected_verdict": "verified"
    },
    {
      "operation": "changed-original-bet",
      "method": "POST",
      "path": "/v1/transactions/refund",
      "body_utf8": "{\"tenant_id\":\"fixture-tenant\",\"integration_id\":\"fixture-integration\",\"environment\":\"certification\",\"player_ref\":\"fixture-player\",\"session_id\":\"session-EUR\",\"round_id\":\"round-EUR\",\"transaction_id\":\"refund-EUR\",\"bet_transaction_id\":\"other-bet\",\"amount\":{\"currency\":\"EUR\",\"amount_minor\":25}}",
      "headers": {
        "idempotency-key": "fixture-refund-key-EUR",
        "content-digest": "sha-256=:3WmVzygviPF0nVaHRGsefILQ+RuLcgPW+UAbU6rquyw=:",
        "signature-input": "sig1=(\"@method\" \"@authority\" \"@path\" \"content-digest\");created=1787500000;expires=1787500300;nonce=\"00000000000000000000000000000001\";keyid=\"module-refund-fixture\";alg=\"hmac-sha256\";tag=\"cpapi-money-certification\"",
        "signature": "sig1=:OsIryyDpLBwHQcG84A5QU4a4jcnmt71MaIBH/cMmhok=:"
      },
      "nonce": "00000000000000000000000000000001",
      "signature_base": "\"@method\": POST\n\"@authority\": money.example.invalid\n\"@path\": /v1/transactions/refund\n\"content-digest\": sha-256=:3WmVzygviPF0nVaHRGsefILQ+RuLcgPW+UAbU6rquyw=:\n\"@signature-params\": (\"@method\" \"@authority\" \"@path\" \"content-digest\");created=1787500000;expires=1787500300;nonce=\"00000000000000000000000000000001\";keyid=\"module-refund-fixture\";alg=\"hmac-sha256\";tag=\"cpapi-money-certification\"",
      "expected_verdict": "invalid_signature"
    }
  ]
}
