#arrowcircle
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_ZyS73YkQgyyp27
Are you updating a product? If not, why are you providing an ID? prod_OXuvAXypL9GOfI
I deleted products, I want to have a script, that checks if product is present, and if not, create it via api
It will give you a new ID then.
I don't think default_price_data supports those parameters: https://stripe.com/docs/api/products/create#create_product-default_price_data-recurring
It's better to create the Price separately: https://stripe.com/docs/api/prices/create#create_price-recurring
But in this case, how I can be sure, that product is present or not?
and how to create price separately, if product requires price?
Product doesn't require a Price
You create a Product first, without default_price_data
And then create a Price with the new Product ID: https://stripe.com/docs/api/prices/create#create_price-product