#ninjamaster-tax
1 messages · Page 1 of 1 (latest)
hi there, can you share the request id [0]? it'd look like req_xxx
[0] https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_YkxD4HUuvJkwsf
I should probably note I am using a manual amount and haven't setup any products in the stripe portal.
like the error message says, you should specify a price. Even if you removed the tax rate for your current request, i don't think the request will be successful. You need to specify either : line_items.price or line_items.price_data
When I send a price instead of an amount I get this error: The price parameter should be the ID of a price object, rather than the literal numerical price. Please see https://stripe.com/docs/billing/prices-guide#create-prices for more information about how to set up price objects.
I don't want to setup any prices in stripe as I need the ability for manual amounts per item. So back to my original question. Is this possible?
You can define a new Price each time in line_items.price_data : https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Thank you