{
  "name": "Без поставщика отвергнутый сеанс забыт: следующий вызов — configuration",
  "description": "401 на сеансе клиента без поставщика — ошибка authentication, и клиент забывает сеанс: следующий вызов — configuration до отправки, а endSession ничего не отправляет.",
  "client": {
    "api": "member",
    "credential": {"memberSession": "lms_test_d0f3364baf26.4OuDuCo1m7vWf_OongPoB6orwvXEHwM1vFYHST6ieao"},
    "origin": "https://shop.example.com",
    "baseUrl": "https://api.example.com"
  },
  "calls": [
    {
      "operation": "getProfile",
      "args": {},
      "expect": {
        "error": {
          "class": "authentication",
          "status": 401,
          "code": "unauthenticated",
          "requestId": "01929c20-0501-7000-8000-000000000501",
          "idempotencyKey": null
        }
      }
    },
    {"operation": "getProfile", "args": {}, "expect": {"error": {"class": "configuration"}}},
    {"operation": "endSession", "args": {}, "expect": {"result": null}}
  ],
  "exchanges": [
    {
      "request": {
        "method": "GET",
        "url": "https://api.example.com/api/member/v1/me",
        "headers": {
          "authorization": "Bearer lms_test_d0f3364baf26.4OuDuCo1m7vWf_OongPoB6orwvXEHwM1vFYHST6ieao",
          "accept": "application/json",
          "content-type": null,
          "idempotency-key": null,
          "loyal-merchant": null,
          "origin": "https://shop.example.com"
        }
      },
      "response": {
        "status": 401,
        "headers": {"Content-Type": "application/problem+json", "X-Request-Id": "01929c20-0501-7000-8000-000000000501"},
        "json": {
          "type": "urn:loyal:problem:unauthenticated",
          "title": "A valid API key is required.",
          "status": 401,
          "code": "unauthenticated",
          "request_id": "01929c20-0501-7000-8000-000000000501"
        }
      }
    }
  ],
  "sleeps": []
}
