#Ivan Demabildo
1 messages · Page 1 of 1 (latest)
What do you need it to be a decimal for? Are you talking about the total amount on an Invoice? Or an individual Invoice Item?
We need it to be a decimal format for an individual invoice item since we have a use-case that shows the billed hours as quantity multiplied by Price (for example, we want to show that the value of the hours worked is 6.5 hours (this is the quantity value in the invoice item) and the price is $10 per hour, the total amount will be $65 for an invoice item).
Currently, we can't do that since the quantity can only accept integers.
Gotcha. Okay, yeah you can use the unit_amount_decimal on the Invoice Item object to do that: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-unit_amount_decimal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, sorry no that's not what i meant. Basically, is it possible to have a decimal value for quantity in this field (e.g. 1.13)?
the one highlighted in yellow- does stripe support having a decimal value for that one?
Not sure, we don't handle a lot of Dashboard questions in this channel. Have you tried clicking save?
Unfortunately, it doesn't allow me to add a decimal point for that textbox.
As for APIs, here's the one wherein i attempted to submit a POST request with a decimal value for quantity for an individual invoice item: