#deeprajdevaraj - metadata
1 messages · Page 1 of 1 (latest)
Hello, can you tell me more about where you are setting this metadata and what webhook event you are checking for it in?
I am setting the metadata inside Payments -> Readers -> Location. And the webhook end point is terminal.reader.action_succeeded
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?
this is the event id : evt_1LZfrBDXXLqevtL45FNWtQ2C
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
yes
Or you can retrieve the location via the API and that will have the metadata
in the webhook end point event I am not getting it, that is my issue
In the webhook end point, I need that data.
Where are you setting it on the reader itself?
can you please tell why that is missing in the data
I am setting this up inside Reader -> Location
As far as I can see, tmr_EuSg9wSfwdu0KE does not have any metadata set on it. You would need to set that with a separate API call to the update reader call https://stripe.com/docs/api/terminal/readers/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Right, Location is a separate object. metadata is not copied over from the location to the reader
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
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
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.
Yep of course. We typically keep threads open for about an hour before closing though sometimes we do close them quicker when busy
thanks
I now updated the terminal (tmr_EuSg9wSfwdu0KE ) with metadata
can you please check whether it is present or not
@warm geode can you try retrieving the Reader object with https://stripe.com/docs/api/terminal/readers/retrieve
and see if the metadata is present on it or not?
thanks I will do that.