Create product
Creates a product with a single one-time price, which can be pay what you want. The product can then be sold on a checkout page, offered as an order bump or added to an event as an add-on.
/v1/products/Authorization
api_key_auth API key authentication. Use "Bearer YOUR_API_KEY" format.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
- titlestringrequired
Product title.
1 to 200 characters
- descriptionstring, nullable
Description of the product. Accepts HTML or plain text.
The product price. Products created here have a single one-time price, which can be pay what you want. Defaults to a one-time price of 0 in
usd.- skustring, nullable
SKU of the product.
max 200 characters
- hasUnlimitedStockboolean, nullable
Whether or not the stock of the product is unlimited. If set to
true, thestockfield is ignored. - stocknumber, nullable
Available stock of the product.
min 0
- taxBehaviorstring, nullable
If Stripe Tax is enabled, determines the behaviour of Stripe Tax. Defaults to your Stripe Tax settings.
inclusiveexclusiveautomatic - taxCodestring, nullable
If Stripe Tax is enabled, determines the tax code used when calculating tax. Defaults to your Stripe Tax settings.
^(txcd_[a-zA-Z0-9]+)?$
- fixedTaxRateIdsstring[]
Tax Rate IDs applied to this product (at most one). Call
list_tax_ratesto find an existing rate.max 1 items
- imageIdsstring[]
Image file IDs for the product (upload with
upload_file). The first is the main image. - fileIdsstring[]
Files for the product. Available to the customer after purchase.
- shortDescriptionstring, nullable
Plain-text one-liner shown under the title on the order bump card. Send null to clear.
max 500 characters
- callToActionTextstring, nullable
Accept copy on the order bump card, e.g. "Yes! Add gift wrapping". Send null to clear.
max 200 characters
- headingTextstring, nullable
Heading shown above the order bump card, e.g. "Special one time offer". Send null to clear.
max 200 characters
Short list of what the customer gets, shown above the description on the order bump card. Replaces the whole list; send [] or null to clear.
max 10 items
- calloutTextstring, nullable
Call out box under the description on the order bump card. HTML: links and inline emphasis are kept, anything else is removed. Send null to clear.
max 2000 characters
- calloutIconstring, nullable
Icon leading the call out box. Send null to clear.
starsparklesfireboltrockettrophycheckx-mark
Returns
Product created successfully
- idstring
Unique identifier for the product.
- titlestring
Product title.
- description?string, nullable
Product description as rendered HTML.
- shortDescription?string, nullable
Plain-text one-liner, shown where the full description is too long.
- callToActionText?string, nullable
Accept copy shown on an order-bump card, e.g. "Yes! Add gift wrapping".
- headingText?string, nullable
Heading shown above an order-bump card, e.g. "Special one time offer".
Short list of what the customer gets, shown on an order-bump card above the description.
- calloutText?string, nullable
Call out box shown on an order-bump card under the description. Sanitised HTML: links and inline emphasis only.
- calloutIcon?string, nullable
Icon leading the call out box on an order-bump card.
starsparklesfireboltrockettrophycheckx-mark - sku?string, nullable
Stock keeping unit.
Prices configured for this product. Disabled prices are filtered from customer-facing reads.
- defaultPriceId?string, nullable
The price pre-selected at checkout: the saved default while it is enabled, or the only enabled price. Null when the product has several prices and no default, so the buyer chooses one.
Price-picker presentation config.
- taxBehavior?string, nullable
Tax calculation behavior.
inclusiveexclusiveautomatic - taxCode?string, nullable
Stripe tax code.
- fixedTaxRateIds?string[], nullable
List of Tax Rate IDs applied to this product. Empty when tax mode is "none" or "stripe", or when "fixed" with no rate configured.
max 1 items
Product main image and gallery.
- fileIds?string[], nullable
List of file ids attached to this product.
Product variants and options.
Bulk discounts configured for the product.
- generateLicenseKeys?boolean, nullable
Whether license keys are generated for purchases of this product.
Duplicate-subscription prevention settings for this product.
Duplicate-payment prevention settings for this product. Applies to one-time payments only.
- enableFileAccessForInactiveSubscriptions?boolean, nullable
Whether customers with inactive subscriptions can still access file downloads.
- variantsRequired?boolean, nullable
Whether variant selection is required.
- stock?number, nullable
Available stock quantity.
- hasUnlimitedStock?boolean, nullable
Whether stock is unlimited.
- createdAtstring
When the product was created.
- updatedAtstring
When the product was last updated.
- idstring
Bad request - invalid input
- statusstring
Indicates the request failed.
error - typestring
Machine-readable error category.
- messagestring
Human-readable error message.
Optional validation details for invalid requests.
Unauthorized - Missing or invalid API key
- statusstring
Indicates the request failed.
error - typestring
Machine-readable error category.
- messagestring
Human-readable error message.
Optional validation details for invalid requests.
Forbidden - Insufficient permissions or validation error
- statusstring
Indicates the request failed.
error - typestring
Machine-readable error category.
- messagestring
Human-readable error message.
Optional validation details for invalid requests.
Rate Limit Exceeded - Please try again later.
- messagestring
Human-readable error message.
Internal server error
- statusstring
Indicates the request failed.
error - typestring
Machine-readable error category.
- messagestring
Human-readable error message.
Optional validation details for invalid requests.
import { createCheckoutPageClient } from '@checkoutpage/sdk';const checkoutpage = createCheckoutPageClient({ apiKey: process.env.CHECKOUTPAGE_API_KEY!,});const response = await checkoutpage.products.create({ title: 'Gift wrapping',});{
"data": {
"id": "507f1f77bcf86cd799439011",
"title": "Premium Course",
"description": "string",
"shortDescription": "string",
"callToActionText": "string",
"headingText": "string",
"features": [
{
"text": "string",
"icon": "star"
}
],
"calloutText": "string",
"calloutIcon": "star",
"sku": "string",
"prices": [
{
"amount": 4900,
"currency": "usd",
"payWhatYouWant": true,
"discountedFromPrice": 0,
"setupFee": 0,
"setupFeeMultipliesWithQuantity": true,
"recurring": {
"interval": "month",
"intervalCount": 1,
"trialPeriodDays": 0,
"billingCycleAnchorConfig": {
"enabled": true,
"dayOfMonth": 1,
"month": 1
},
"startDate": "2026-02-25T06:40:09.463Z"
},
"paymentPlan": {
"interval": "month",
"intervalCount": 1,
"trialPeriodDays": 0,
"billingCycleAnchorConfig": {
"enabled": true,
"dayOfMonth": 1,
"month": 1
},
"startDate": "2026-02-25T06:40:09.463Z",
"planIterations": 0
},
"id": "507f1f77bcf86cd799439011",
"label": "string",
"description": "string",
"badge": "string",
"badgeIcon": "star",
"reference": "string",
"order": 0,
"enabled": true,
"hidden": true,
"isDefault": true,
"billingType": "one_time",
"pwywSuggestedPrice": 0
}
],
"defaultPriceId": "string",
"pricePicker": {
"title": "string",
"description": "string",
"shortenDescription": true,
"priceDisplayLabels": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"priceDisplayDefaults": {
"property1": "string",
"property2": "string"
},
"priceDisplayTabOrder": {
"property1": [
"string"
],
"property2": [
"string"
]
}
},
"taxBehavior": "exclusive",
"taxCode": "string",
"fixedTaxRateIds": [
"string"
],
"media": [
{
"fileId": "507f1f77bcf86cd799439011",
"url": "https://bucket-name.s3.amazonaws.com/image.jpg",
"name": "product-image.jpg",
"size": 245678,
"width": 1920,
"height": 1080
}
],
"fileIds": [
"507f1f77bcf86cd799439011"
],
"variants": [
{
"id": "507f1f77bcf86cd799439011",
"name": "Plan Type",
"required": true,
"status": "enabled",
"options": [
{
"id": "507f1f77bcf86cd799439011",
"name": "Basic",
"status": "enabled",
"description": "string",
"image": {
"fileId": "507f1f77bcf86cd799439011",
"url": "https://cdn.example.com/image.png",
"name": "product-image.png",
"width": 0,
"height": 0,
"size": 0
},
"additionalChargeAmount": 1000,
"sku": "string",
"stock": 0,
"type": "one_time",
"payWhatYouWant": false,
"pwywSuggestedPrice": 2500,
"fileIds": [
"65f4a1c2e4a9f3d2b1c0a9e8"
]
}
],
"order": 0,
"reference": "fd3136f8-da1f-4a4c-b381-32a097b60c38",
"selectionType": "single",
"increasesWithQuantity": true,
"useVariantOptionSkus": true,
"manageVariantOptionStock": true,
"priceIds": [
"string"
],
"hidden": true,
"preselect": {
"enabled": true,
"optionId": "pro-option",
"quantity": 1
},
"showHideLogic": {
"enabled": true,
"comparison": "is",
"value": "pro-option",
"element": {
"elementId": "select-package-tier"
}
},
"layout": {
"variantOptionLayout": "list",
"collapseVariantOptions": false,
"variantOptionColumns": 2,
"showVariantName": true,
"showVariantOptionNames": true,
"showVariantOptionPrices": true,
"showVariantOptionPriceSign": true,
"showPwywPlaceholder": true,
"textAlign": "left",
"spacing": "comfortable",
"imageSize": "small"
}
}
],
"discounts": [
{
"quantityCondition": "checkout_quantity",
"variantOptionIds": [
"507f1f77bcf86cd799439011"
],
"minQuantity": 5,
"maxQuantity": 10,
"percentOff": 10,
"amountOff": 500
}
],
"generateLicenseKeys": true,
"limitSubscriptions": {
"enabled": true,
"limitSubscriptionsStripe": {
"enabled": true
}
},
"limitPayments": {
"enabled": true,
"enabledAt": "string"
},
"enableFileAccessForInactiveSubscriptions": true,
"variantsRequired": true,
"stock": 0,
"hasUnlimitedStock": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}{
"status": "error",
"type": "error",
"message": "Bad request - invalid input"
}{
"status": "error",
"type": "error",
"message": "Missing or invalid API key"
}{
"status": "error",
"type": "error",
"message": "Insufficient permissions requires: BOOKINGS_WRITE"
}{
"message": "API key rate limit exceeded. Please try again later."
}{
"status": "error",
"type": "error",
"message": "Internal server error"
}