| [ Web Proxy ] |
| Viewing: https://docs.stripe.com/api/products/delete | [Back] [Original] |
Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it.
No parameters.
Returns a deleted object on success. Otherwise, this call raises an error.
curl -X DELETE https://api.stripe.com/v1/products/{{PRODUCT_ID}} \ -u "sk_test_wU7nrJCZspk1NPDxiQgAF05qsk_test_wU7nrJCZspk1NPDxiQgAF05q:"{ "id": "prod_NWjs8kKbJWmuuc", "object": "product", "deleted": true}Search for products youve previously created using Stripes Search Query Language. Dont use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.
The search query string. See search query language and the list of supported query fields for products.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
A cursor for pagination across multiple pages of results. Dont include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
A dictionary with a data property that contains an array of up to limit products. If no objects match the query, the resulting array will be empty. See the related guide on expanding properties in lists.
{ "object": "search_result", "url": "/v1/products/search", "has_more": false, "data": [ { "id": "prod_NZOkxQ8eTZEHwN", "object": "product", "active": true, "created": 1679446501, "default_price": null, "description": null, "images": [], "livemode": false, "metadata": { "order_id": "6735" }, "name": "Gold Plan", "package_dimensions": null, "shippable": null, "statement_descriptor": null, "tax_code": null, "unit_label": null, "updated": 1679446501, "url": null } ]}| Web Proxy Viewer | New URL | Original Page |