#ajay-terminal
1 messages · Page 1 of 1 (latest)
Hi ajay, the previous location will be deleted if the same device is added to the new location.
its not getting deleted
I have checked
I see 2 locations
but reader from 1st location gets deleted and added to 2nd location
can you help me understand a bit more about the problem you are facing? perhaps you can describe the goal that you want to achieve.
I am storing device details to our side also like name, device id, serial no
if we try create new device details but the terminal is same at stripe there are 2 locations and 1 terminal
but at our database there are 2
so depending on that we need delete 1st location from our database as well as from delete stripe location too
or just warn user that device is already registered with stripe
and before add it remove from another location and add again
but at backend stripe automatically do it like create new location, remove terminal from 1st location, add terminal to 2nd location
So let me summarize, you have 1 terminal to be used in 2 locations. So you want to update the location data in your DB when it is deployed to another location?
yes
or stop user to register same device to another location
How do you register the device?
Hi ajay, how about this. when you register a reader to another location, use the readers.list API to retrieve a list of reader with location param expanded. Then from the reader list you will know if the location of interest has already associated with a reader.
consider its different location, stripe adding as new location and setup same device to new location
i am not getting device
Reader ID
Serial number
until that device register and its response
The id and the serial_number are the properties of the reader object https://stripe.com/docs/api/terminal/readers/object?lang=node
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes I know
but I wont receive these till I hit api register reader
Can you consider using other properties? such as Label?
ok I will find out something else then
thank you for help