curl --request POST \
--url https://api.cope.com/v1/commerce/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"description": "A 96-page playbook for launching a product to an audience you do not have yet: the positioning worksheet, the two-week pre-launch sequence, the pricing page teardown, and the follow-up emails that recover a stalled launch. Written for solo founders and small teams, with one worked example throughout.",
"name": "The Quiet Launch Playbook",
"payment_methods": [
"card"
],
"payment_plans_attributes": [
{
"first_payment_amount_cents": 4900,
"plan_type": "one_time",
"position": 1
}
],
"product_type": "digital_product",
"tax_code": "DB031013",
"tax_group": "digital_products"
}
}
'
{
"data": {
"approval_status": "review",
"attachments": [
{
"access_pending": true,
"access_trial": true,
"byte_size": 123,
"content_type": "<string>",
"filename": "<string>",
"id": "att_A1b2C3d4E5f6G7h8",
"kind": "<string>",
"url": "<string>"
}
],
"created_at": "<string>",
"denial_reason": "<string>",
"description": "<string>",
"has_net_price": true,
"headline": "<string>",
"id": "prod_A1b2C3d4",
"images": [
{
"byte_size": 123,
"content_type": "<string>",
"filename": "<string>",
"id": "img_A1b2C3d4E5f6G7h8",
"kind": "<string>",
"thumbnail_url": "<string>",
"url": "<string>"
}
],
"installment_sales_enabled": true,
"internal_name": "<string>",
"name": "<string>",
"payment_plans": [
{
"currency": "<string>",
"display_name": "<string>",
"first_payment_amount_cents": 123,
"id": "plan_A1b2C3d4",
"interval": "<string>",
"interval_count": 123,
"next_payments_amount_cents": 123,
"next_payments_count": 123,
"plan_type": "<string>",
"position": 123,
"shipping_price_cents": 123
}
],
"phone_collection": "off",
"product_type": "<string>",
"product_url": "<string>",
"quantity": 123,
"quantity_selection_enabled": true,
"refund_period_b2b_days": 123,
"refund_period_b2c_days": 123,
"requires_shipping": true,
"status": "active",
"stock_level": {
"available_stock": 123,
"visibility": "<string>"
},
"stock_level_settings_enabled": true,
"tags": [
"<string>"
],
"tax_code": "<string>",
"tax_group": "digital_products",
"trial_period_days": 123,
"updated_at": "<string>"
}
}
Create a product
POST
/
v1
/
commerce
/
products
curl --request POST \
--url https://api.cope.com/v1/commerce/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"description": "A 96-page playbook for launching a product to an audience you do not have yet: the positioning worksheet, the two-week pre-launch sequence, the pricing page teardown, and the follow-up emails that recover a stalled launch. Written for solo founders and small teams, with one worked example throughout.",
"name": "The Quiet Launch Playbook",
"payment_methods": [
"card"
],
"payment_plans_attributes": [
{
"first_payment_amount_cents": 4900,
"plan_type": "one_time",
"position": 1
}
],
"product_type": "digital_product",
"tax_code": "DB031013",
"tax_group": "digital_products"
}
}
'
{
"data": {
"approval_status": "review",
"attachments": [
{
"access_pending": true,
"access_trial": true,
"byte_size": 123,
"content_type": "<string>",
"filename": "<string>",
"id": "att_A1b2C3d4E5f6G7h8",
"kind": "<string>",
"url": "<string>"
}
],
"created_at": "<string>",
"denial_reason": "<string>",
"description": "<string>",
"has_net_price": true,
"headline": "<string>",
"id": "prod_A1b2C3d4",
"images": [
{
"byte_size": 123,
"content_type": "<string>",
"filename": "<string>",
"id": "img_A1b2C3d4E5f6G7h8",
"kind": "<string>",
"thumbnail_url": "<string>",
"url": "<string>"
}
],
"installment_sales_enabled": true,
"internal_name": "<string>",
"name": "<string>",
"payment_plans": [
{
"currency": "<string>",
"display_name": "<string>",
"first_payment_amount_cents": 123,
"id": "plan_A1b2C3d4",
"interval": "<string>",
"interval_count": 123,
"next_payments_amount_cents": 123,
"next_payments_count": 123,
"plan_type": "<string>",
"position": 123,
"shipping_price_cents": 123
}
],
"phone_collection": "off",
"product_type": "<string>",
"product_url": "<string>",
"quantity": 123,
"quantity_selection_enabled": true,
"refund_period_b2b_days": 123,
"refund_period_b2c_days": 123,
"requires_shipping": true,
"status": "active",
"stock_level": {
"available_stock": 123,
"visibility": "<string>"
},
"stock_level_settings_enabled": true,
"tags": [
"<string>"
],
"tax_code": "<string>",
"tax_group": "digital_products",
"trial_period_days": 123,
"updated_at": "<string>"
}
}
Authorizations
Bearer credential for the public API. Vendor integrations should send a live COPE API key (ck_live_*; keys issued earlier as cope_sk_live_* keep working). Clerk bearer tokens are also accepted when paired with X-Cope-Business-Id.
Body
application/json
Show child attributes
Show child attributes
Response
Successful response
Show child attributes
Show child attributes