#sqarf_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
๐ happy to help
the tax field on the customer object https://docs.stripe.com/api/customers/object#customer_object-tax is an expandable field
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
meaning that unless you specify that you want to expand it, the result will be null
fyi that's the syntax for expanding if you're not familiar with it https://docs.stripe.com/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmm, I still get null value, when I try: $customer = Customer::retrieve(
$user->stripe_id,
['expand' => ['tax']]
);
if memory serves well, you need to pass
$user->stripe_id,
[],
['expand' => ['tax']]
);```
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?
ok my memory is incorrect ๐
No problem
['id'=>$user->stripe_id,
'expand' => ['tax']]
);```
can you try this please
I hate that call in PHP
That worked! Thank You very much.
it's really weird and it's not well documented