Node-Red newbie question HTTP endpoint

hello,
Please excuse my question if it’s silly. Although I am familiar with HA I have now started with Node-Red and I don’t know if this is possible.

Can I create an HTTP endpoint, pass a value to it and then update a sensor ???

What I want to achieve is the following:
I have a cashier machine.

For each sale the cashier is creating an HTTP get to my HA formatting as following:
http://192.168.2.205:1880/endpoint/control?price=12.90

I want to capture the value of the query “price” and update an input number sensor.
Is it possible ?

thank you in advance

I would say yes but I can’t test it now.
HTTP In URL when using Node Red with HASS Supervisor - Third party integrations / Node-RED - Home Assistant Community (home-assistant.io)

As I still haven’t get an answer that covers me, I will rephrase the question.

I have a device that creates an HTTP endpoint to HA.
Each time it hits HA I get the following value, which changes a couple of times per day.

image

( I get the above by hitting the URL of the endpoint)

Can I create a sensor ( e.g input_number) with the value as state which will be updated each time the value changes???

please, I need to solve this out

can you share what you got so far?

hello,
I think that my question was stupid and is not possible. I don’t know .-
I never got an answer…

However I was able to solve it by creating an HTTP Sensor .

Very nice! Very powerful

You can achieve that in NR mixing a http in node and an entity node together.

I know you can dot it my friend … But without instructions is hard to do it …
I rather prefer to stick with the HTTP sensor which requires nothing