#dragonlord_api

1 messages ¡ Page 1 of 1 (latest)

whole wigeonBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1230583137793212470

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

shell flumeBOT
sacred seal
#

Hello! Can you give me the ID of the Tax Rate in quesiton?

quaint pier
#

txr_1P6y3VR1ZbNPqtfjcQ45E2lb

sacred seal
#

What PHP code are you using to fetch this from the API and determine it's current state?

quaint pier
#

$taxRates = \Stripe\TaxRate::all(['limit' => 1, 'active' => true], ['stripe_account' => $stripe_connect_id]);
echo $taxRates;
$taxRate = \Stripe\TaxRate::retrieve($taxRates->data[0]->id, ['stripe_account' => $stripe_connect_id]);
echo $taxRate;

I am using a both of these but neither od them are showing archived for the connected account

sacred seal
#

Can you share the output?

quaint pier
#

I figured out the problem the stripe_connect_id was not defined, so it would return it as active, even though it's not

#

once I added the value for the connect id it worked well

sacred seal
#

Okay, sounds good!

quaint pier
#

Thank you for your time

sacred seal
#

No problem, have a great day!