Skip to main content
POST
/
v1
/
product_groups
Create
curl --request POST \
  --url https://{defaultHost}/v1/product_groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_group": {
    "name": "Membership – V2"
  }
}
'
{
  "id": "90b8b657-83e3-42cb-b850-bc0fb34ed1da",
  "object": "product_group",
  "archived": false,
  "archived_at": null,
  "metadata": {},
  "name": "Membership – V2",
  "purchase_limit": null,
  "created_at": 1767909736,
  "updated_at": 1767909736
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
product_group
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

archived
boolean

Whether or not this product group is archived.

name
string

The product group’s name, meant to be displayable to the customer.

purchase_limit
integer | null

The max number of times the product group can be purchased by a customer. If null, then unlimited purchases are allowed.

metadata
object

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

archived_at
integer | null

Time at which the object was archived. Measured in seconds since the Unix epoch.

products

Expandable – Property not returned unless expanded.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.