#chambaz-Addresses
1 messages ยท Page 1 of 1 (latest)
๐ I'd suggest confirming in test mode but per https://stripe.com/docs/api/invoices/object#invoice_object-customer_address you should need to set Customer.address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you! Problem is we are having to send these invoices through the Stripe dashboard and not through the API.
Is there a way I can set the customers billing address correctly from the dashboard?
Or is there a way to prevent the invoice being sent as an attachment with receipts entirely?
The fields are there when you use Actions->Edit information from the Dashboard page for the Customer.
Right but is it possible for me to do that part via the API? I dont see those properties in the customer object
I'd like to write a script to loop through all customers to update the billing address so that when the invoices are made manually the info shows up correctly
You can. It's in https://stripe.com/docs/api/customers/object#customer_object-address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Got it!
And that address is the billing address rather than the shipping address which I already have set
Correct, the Shipping address is in https://stripe.com/docs/api/customers/object#customer_object-shipping
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok understood.
Final question for you, slightly unrelated. The future payments checkout modal only has zip code and name configured for billing details (unless otherwise configured differently), I take it that is all that is required to charge a customer. It seems that way from test transactions but wanted to confirm. Thakns
Yep. Stripe optimizes the fields there for each country, and in the US, Canada and UK at least that include the zip/postal code.
np!