Managing products
Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
Endpoint: POST /v1/products
Parameters:
name
(required): The product’s name, meant to be displayable to the customer.type
(required): The type of product. Can be either service
or good
.description
(optional): A description of the product.active
(optional): Whether the product is currently available for purchase. Defaults to true.Example request:
curl https://api.stripe.com/v1/products \
-u sk_test_4eC39HqLyjWDarjtT1zdp7dc: \
-d name="Gold Special" \
-d type="service" \
-d description="Premium membership"
Example response:
{
"id": "prod_Hh1cRNCvuhSVGj",
"object": "product",
"active": true,
"attributes": [],
"created": 1602688821,
"description": "Premium membership",
"images": [],
"livemode": false,
"metadata": {},
"name": "Gold Special",
"package_dimensions": null,
"shippable": null,
"statement_descriptor": null,
"type": "service",
"unit_label": null,
"updated": 1602688821,
"url": null
```}