#skyekg
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- skyekg, 29 minutes ago, 9 messages
It's not required, you can use price_data instead of price to allow you to create a Price for the Invoice Item in an adhoc fashion:
https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yea. but there is this field price_data.product. the value of this field is from price
is price_data required when creating a invoice_item?
No, neither price nor price_data are marked as required within our API spec, and if memeory serves correclty are not necessary. Are you encountering an error that is giving you a different impression in your testing?
Is passing in amount and currency directly more what you're after?
https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount