A product says what you sell; its prices say what it costs. Payment links, invoices and subscriptions sell products from your catalog. Products belong to one mode.
Attributes
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier, starting prod_. |
object | string | Always product. |
livemode | boolean | true in live mode. |
name | string | What customers see. |
description | string or null | Shown under its name. |
kind | enum | physical, digital or service. |
sku | string or null | Your own code for it. |
unit_label | string or null | What one unit is, as in "per seat". |
statement_descriptor | string or null | On card statements for its recurring payments, in capitals. |
images | array of strings | Up to 8 https addresses. The first is shown first. |
status | enum | active or archived. |
default_price | string | The price offered first wherever it's sold, price_.... |
created | timestamp | When it was created. |
archived_at | timestamp or null | When it was archived. |
An archived product can't be added to anything new, and can't be changed. Whatever already sells it keeps it, but an active payment link that sells it is turned off.
Example
Endpoints
| Endpoint | What it does |
|---|---|
POST /v1/products | Create a product with its first price. |
GET /v1/products/{id} | Get a product by its ID. |
POST /v1/products/{id} | Change a product's name, description, images and details. Its prices change on their own. |
POST /v1/products/{id}/archive | Stop a product being added to anything new. |
POST /v1/products/{id}/unarchive | Bring an archived product back. |
DELETE /v1/products/{id} | Delete a product nothing has used. Archive one that sold. |
GET /v1/products | List your products, newest first. |