#deeprajdevaraj - metadata

1 messages · Page 1 of 1 (latest)

lean vortex
#

Hello, can you tell me more about where you are setting this metadata and what webhook event you are checking for it in?

warm geode
#

I am setting the metadata inside Payments -> Readers -> Location. And the webhook end point is terminal.reader.action_succeeded

lean vortex
#

Do you have a request ID (req_123) from a time you set this data? Also do you have an event ID (evt_123) from an event that you didn't see this data on?

warm geode
#

this is the event id : evt_1LZfrBDXXLqevtL45FNWtQ2C

lean vortex
#

I do see metadata set on the location

#

So what you are running in to is that metadata isn't automatically copied between objects

#

To get metadata in that event, you will need to set metadata on the reader itself

warm geode
#

yes

lean vortex
#

Or you can retrieve the location via the API and that will have the metadata

warm geode
#

in the webhook end point event I am not getting it, that is my issue

#

In the webhook end point, I need that data.

lean vortex
#

Where are you setting it on the reader itself?

warm geode
#

can you please tell why that is missing in the data

#

I am setting this up inside Reader -> Location

lean vortex
#

Right, Location is a separate object. metadata is not copied over from the location to the reader

warm geode
#

so I need to update the reader with metadata, right

#

If i do so, if I update the metadata again, will it append or will it overwrite

lean vortex
#

If you update the same key, it will overwrite it

#

If you are asking about adding a new key-value pair without changing the existing ones, I will need to check but I think we do just set the additional value

warm geode
#

thanks. that clears my query. Can you please keep this chat open for 5 minutes. I will give it a try and in case if it fails, I will send you the details.

lean vortex
#

Yep of course. We typically keep threads open for about an hour before closing though sometimes we do close them quicker when busy

warm geode
#

thanks

#

I now updated the terminal (tmr_EuSg9wSfwdu0KE ) with metadata

#

can you please check whether it is present or not

hardy sonnet
#

and see if the metadata is present on it or not?

warm geode
#

thanks I will do that.