#wendy
1 messages ยท Page 1 of 1 (latest)
Only if the invoice is still in a draft state: https://stripe.com/docs/api/invoiceitems/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.
You can add a negative invoice item
and we can still indicate the product id of that (assuming we can get that draft mode invoice)?
it looks like if we use the price_data to set the product, we cannot set negative amount https://stripe.com/docs/api/invoiceitems/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.
You would just pass in amount: https://stripe.com/docs/api/invoiceitems/object#invoiceitem_object-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yah, we want to know the product too
But you can't have a negative product
That wouldn't make sense
If you're dealing with a product with a positive amount, then that would be 1 invoice item
You would create a new invoice item with a negative amount to reduce whatever the positive amount is for whatever reason
yes it's a product that we want to only do -ve amount
it's to get some discount off but code to some loyalty dollar
this model is acutally given to us by our stripe professional but apparently doesn't work
Hello ๐
Taking over as codename_duchess needs to step away
hi
Can you give me a short summary of your end goal? Preferably with an example ๐
Just to be on the same page