{
  "description": "PeptideTech signing test vectors. Fake secrets for testing only. signature = hex HMAC-SHA256(secret, string_to_sign); string_to_sign = timestamp.nonce.METHOD.path.sha256hex(UTF-8 body). proof = hex HMAC-SHA256(secret, challenge).",
  "version": "2026-11-06",
  "vectors": [
    {
      "name": "webhook order.paid",
      "secret": "test-vector-secret-not-a-real-key-0001",
      "method": "POST",
      "path": "/peptidetech/webhooks",
      "nonce": "evt_00000000-0000-4000-8000-000000000001",
      "timestamp": 1794150000,
      "body": "{\"id\":\"evt_00000000-0000-4000-8000-000000000001\",\"type\":\"order.paid\",\"version\":\"2026-11-06\",\"data\":{\"suborder_id\":\"00000000-0000-4000-8000-000000000001\"}}",
      "string_to_sign": "1794150000.evt_00000000-0000-4000-8000-000000000001.POST./peptidetech/webhooks.879107de2dd4b14c1e727888dd37f87a4aa392798ee88c96401f166559007f7a",
      "signature": "6bed2f952231ff7fc998cb3f8139a2c3037ba2ee4ea8b40f0b07bded0b6ef0c6"
    },
    {
      "name": "GET order status, empty body",
      "secret": "test-vector-secret-not-a-real-key-0001",
      "method": "GET",
      "path": "/peptidetech/orders/00000000-0000-4000-8000-000000000001",
      "nonce": "b6c1e0f2a3d44e5f8a9b0c1d2e3f4a5b",
      "timestamp": 1794150060,
      "body": "",
      "string_to_sign": "1794150060.b6c1e0f2a3d44e5f8a9b0c1d2e3f4a5b.GET./peptidetech/orders/00000000-0000-4000-8000-000000000001.e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "signature": "ff1e5479aa64758de85f6a91bf2d4cd3fa3ab51d212b94460de09ad8198d92a4"
    },
    {
      "name": "outgoing order.updated event",
      "secret": "test-vector-secret-not-a-real-key-0002",
      "method": "POST",
      "path": "/api/partners/v2/events",
      "nonce": "event_shipment_000000000001",
      "timestamp": 1794150120,
      "body": "{\"id\":\"event_shipment_000000000001\",\"type\":\"order.updated\",\"data\":{\"suborder_id\":\"00000000-0000-4000-8000-000000000001\",\"status\":\"shipped\",\"handoff_at\":\"2026-11-08T15:00:00Z\",\"tracking\":[{\"carrier\":\"Example carrier\",\"number\":\"EX123\"}]}}",
      "string_to_sign": "1794150120.event_shipment_000000000001.POST./api/partners/v2/events.31f63d85fff5ce02746d8df584d34ff3041beaa9b43ddefc1c2a8ae1abcbd832",
      "signature": "9be6a179b409bd9f2ea7675915eab8cc34b56190459896905af786d5e72a324f"
    },
    {
      "name": "non-ASCII body is hashed as UTF-8 bytes",
      "secret": "test-vector-secret-not-a-real-key-0003",
      "method": "POST",
      "path": "/api/partners/v2/events",
      "nonce": "event_catalogue_00000000001",
      "timestamp": 1794150180,
      "body": "{\"id\":\"event_catalogue_00000000001\",\"type\":\"catalogue.upsert\",\"data\":{\"products\":[{\"id\":\"tb-5\",\"name\":\"TB-500 5mg – vial\",\"price\":\"45.00\"}]}}",
      "string_to_sign": "1794150180.event_catalogue_00000000001.POST./api/partners/v2/events.4acc57d955fdb2682d27036cd32056191d11be390b141efab99edc385d5dd2d5",
      "signature": "f2818676fa94e5349c87d28e6bbc87b895047c385699bfde3f3d3ca2e9512714"
    }
  ],
  "proofs": [
    {
      "secret": "test-vector-secret-not-a-real-key-0001",
      "challenge": "Q2hhbGxlbmdlLWZvci10ZXN0LXZlY3Rvcg",
      "proof": "bf960ec602b72655dca7e43e39c8268e4cb906e44f0277c3aaf4d5bb0803f070"
    }
  ]
}
