#azharul-islam_api

1 messages ¡ Page 1 of 1 (latest)

stuck brookBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1260097749475397643

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

fresh marlin
brazen isle
#

yes, I did. First I assign the configuration to the location, after that I update the configuration

fresh marlin
brazen isle
#

req_Nd5I7iaAOKxUsZ

fresh marlin
#

I don't think that's the correcnt API request

brazen isle
#

I am using the API what refered on the given doc. Infact I'm following same doc

fresh marlin
#
const location = await stripe.terminal.locations.update(
  'tml_XXX',
  {
    configuration_overrides: 'tmc_XXX',
  }
);```
#

This is the API that I refer to.

brazen isle
#

that is for update a location with a configuration , what I already doing

#

after doing that, then I'm trying to update that configuration for splashscreen

fresh marlin
#

Can you share with me the ID of request that you made to update the location with the configuration?

brazen isle
#

no, let me explain you my whole process from the beginning in details

fresh marlin
#

I'm asking because I want to make sure that you set the configuration to the right location where you reader is located.

brazen isle
#

first, when I'm creating a location in the mean time I'm also creating a configuration and assign it with that location.

const configuration = await stripe.terminal.configurations.create({ name: configName });
await stripe.terminal.locations.create({
display_name: body.name,
configuration_overrides: configuration.id,
address: {
line1: body.line1,
city: body.city,
country: body.country,
postal_code: body.postal_code
},
});

after that, I create a reader with that location, using the below code:

await stripe.terminal.readers.create({
registration_code: body.registration_code,
label: body.label,
location: body.location
});

after that, when I need to update splashscreen I made the below request:

await stripe.terminal.configurations.update(configId, {
"configuration": {
"bbpos_wisepos_e": {
"splashscreen": "file_1PaW1qJJwRD860NBq4OQceUB"
}
}
});

#

is that process is okay??

fresh marlin
#

What's the location ID?

brazen isle
#

tml_Fj5f4QZHnQfFhS

fresh marlin
#

This location has a different terminal configuraiton.

brazen isle
#

that's right. this location have different configuration id

#

okay, maybe this is the issue

fresh marlin
#

You should update the terminal configuration associated with that location.

brazen isle
#

yes, thaks for you assist