#zishaansunderji-terminal-curl

1 messages ยท Page 1 of 1 (latest)

meager elk
#

Hello ๐Ÿ‘‹

meager elk
#

gotcha
so first you'd need to create Reader Setting object for which you don't need to pass in reader id
You'd pass in the id when you create or update the Configuration Object for the reader

short tartan
#

So the reader settings object created is tied to the reader, or the location or our account?

#

Ideally it'd be reader or location - because the tip values do differ by business

meager elk
#

So the reader settings object created is tied to the reader, or the location or our account?
It is tied to location and the account

short tartan
#

got it!

#

so what happens after this curl request to create a new reader setting - because it doesn't have any information on the location

#
curl https://api.stripe.com/v1/terminal/reader_settings \
  -u sk_test_51JwtroFk5BSitd8bHKcdrngNcP1mdtb1kaOXjcAoNjNrsAuCypVCJlzBk5XQwUM63DnQOuGR0Q5pzegYVVApD77X00L4wLjgki: \
  -H "Stripe-Version: 2020-08-27;terminal_configuration_api_beta=v1" \
  -d "type"="bbpos_wisepos_e" \
  -d "bbpos_wisepos_e[splashscreen]"="file_1HQJBRExnwiLYIChlaTaqZg6"
  # provide the File object you created in step 1
meager elk
#

I think I misspoke earlier
The reader settings are tied to a configuration object which can be tied to either a location OR you can set it as default on your account

short tartan
#

Oh I see - so the process goes:
a) create a reader setting, and then
b) assign those settings to a reader (via the configuration request)

#

Is that right?

#

but also if an existing reader has some settings previously - those will retain to those readers as long as the configuration object isn't updated for that exact reader

meager elk
short tartan
#

oh got it - so how do we assign the configuration to the location (like programmatic wise)?

#

Oh my bad lol, is this it:

curl https://api.stripe.com/v1/terminal/locations/tml_DPJxAAnxbn3JQz \
  -u sk_test_51JwtroFk5BSitd8bHKcdrngNcP1mdtb1kaOXjcAoNjNrsAuCypVCJlzBk5XQwUM63DnQOuGR0Q5pzegYVVApD77X00L4wLjgki: \
  -H "Stripe-Version: 2020-08-27;terminal_configuration_api_beta=v1" \
  -d "configuration_overrides"="uc_88bb0c8c-fcd3-434a-8ac0-6a642e9dc6ef"
  # provide the Configuration object you created in step 3
#

I didn't scroll lower lol

#

I think it all makes sense - thanks for your help!! ๐Ÿ™‚

meager elk
#

Great! Glad I could help ๐Ÿ™‚