#sqarf_api

1 messages ยท Page 1 of 1 (latest)

exotic crescentBOT
#

๐Ÿ‘‹ 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/1318913193053261864

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

crisp flame
#

๐Ÿ‘‹ happy to help

#

meaning that unless you specify that you want to expand it, the result will be null

obtuse pumice
#

ah i see

#

Ill try it

crisp flame
obtuse pumice
#

Hmm, I still get null value, when I try: $customer = Customer::retrieve(
$user->stripe_id,
['expand' => ['tax']]
);

crisp flame
#

if memory serves well, you need to pass

                $user->stripe_id,
                [],
                ['expand' => ['tax']]
            );```
obtuse pumice
#

Nop, it expects 2 params.

#

Could you please check customer "cus_RQBvnpCZKHlat4" if everything needed for tax to be returned is present for this user example?

crisp flame
#

ok my memory is incorrect ๐Ÿ˜›

obtuse pumice
#

No problem

crisp flame
#
                ['id'=>$user->stripe_id,
                'expand' => ['tax']]
            );```
#

can you try this please

#

I hate that call in PHP

obtuse pumice
#

That worked! Thank You very much.

crisp flame
#

it's really weird and it's not well documented