#matt_phantom
1 messages · Page 1 of 1 (latest)
seems like this format is wrong
Hello
Hello
Tax rates are an array of hashes: https://stripe.com/docs/api/invoiceitems/object?lang=php#invoiceitem_object-tax_rates
Ah sorry on creation it should just be an array
But will then be returned as an array of hashes
tax_rates' => [
'display_name' => 'tva',
'inclusive' => false,
'percentage' => 20,
'jurisdiction' => 'FR
]
this seems not working
{
"error": {
"message": "Invalid array",
"param": "tax_rates",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_MkhokfvOwFbtNl?t=1695224382",
"type": "invalid_request_error"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You are trying to create the tax rate here during your invoice item creation. You need to do this in a separate request first: https://stripe.com/docs/api/tax_rates/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you pass the tax rate ID to the invoice item's tax_rates parameter
hum I see
the created tax rates object are saved or not?
I mean if a keep the Id does it still be right for a long time?
or I need to create one each time I create an invoice item
ok thank you