Skip to main content
POST
Creates a product, or updates the one with the same external_id.

Authorizations

x-api-key
string
header
required

API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.

Headers

Idempotency-Key
string

Deprecated: send an external_id, which makes a retry an update of the product the first call created. Without an external_id, a retry with the same key returns the originally created product instead of creating a duplicate. With an external_id the header is ignored.

If-None-Match
string

Send * to create only: when a product of the store already has the external_id, the call answers 412 (precondition_failed) and writes nothing. Only * is accepted on a request with an external_id; without one the header is ignored.

Query Parameters

dry_run
boolean

Send true to preview the write: the request runs as it would and is rolled back, so nothing is written and nothing is triggered (no webhook, no event, and Idempotency-Key is neither read nor stored). The answer is the one the real call would give: the same status and errors, and the product with write_result.dry_run true. Ids generated for a new product, its features and usage prices, and write_result.price_version.new_price_id are never stored: a GET of them answers 404. A meter_external_id that names no meter is a reference_not_found warning (path, key) instead of a 400: on a create that usage price is left out of the answer, and on an update of an existing product the stored usage prices stay as they are. false or no parameter is a real call; any other value answers 400.

Body

application/json

Product creation payload. name, description, price, currency and billing_type are required when creating a product; an update by external_id may leave them out.

name
string

Name of the product. Required when creating a product.

description
string

Description of the product. Required when creating a product.

image_url
string

URL of the product image

Example:

"https://picsum.photos/200/300"

image_urls
string[]

Ordered list of product image URLs (max 8). The first entry is the cover image; when provided it takes precedence over image_url.

Example:
price
integer

The price of the product in cents. Must be 0 (free product) or at least 100 (one whole unit of the currency). Required when creating a product.

Example:

400

currency
enum<string>

Three-letter uppercase ISO 4217 currency code. Must be one of Creem's supported currencies.

Available options:
EUR,
USD
Example:

"USD"

billing_type
enum<string>

Billing method for the product: recurring subscription or onetime payment.

Available options:
recurring,
onetime
Example:

"recurring"

billing_period
enum<string>

Billing interval. Required when billing_type is recurring. Use a preset for the common cadences, or custom together with recurring_interval + recurring_interval_count for anything else (e.g. weekly).

Available options:
once,
every-day,
every-month,
every-three-months,
every-six-months,
every-year,
custom
Example:

"every-month"

recurring_interval
enum<string>

Unit of a custom billing period. Required when billing_period is custom; must be omitted for preset billing periods.

Available options:
day,
week,
month,
year
Example:

"week"

recurring_interval_count
integer

Number of recurring_interval units per billing cycle. Required when billing_period is custom. Bounds: day 1–365, week 1–52, month 1–24, year 1–3.

Example:

1

tax_mode
enum<string>

Specifies the tax calculation mode for the transaction. If set to "inclusive," the tax is included in the price. If set to "exclusive," the tax is added on top of the price.

Available options:
inclusive,
exclusive
Example:

"inclusive"

business_net_pricing
boolean

When true, business customers whose valid VAT ID triggers reverse charge pay the price excluding VAT instead of the tax-inclusive price. Only supported for tax-inclusive one-time products; the merchant gives up the VAT portion on those sales. Defaults to false.

Example:

false

tax_category
enum<string>

Categorizes the type of product or service for tax purposes. This helps determine the applicable tax rules based on the nature of the item or service.

Available options:
saas,
digital-goods-service,
ebooks
Example:

"saas"

pay_what_you_want
boolean

Enable pay-what-you-want pricing: the customer chooses the amount at checkout. The price field acts as the minimum the customer must pay. Only supported for one-time payment products.

Example:

false

suggested_price
integer

Suggested amount in cents, pre-filled at checkout when pay_what_you_want is enabled. Must be greater than or equal to price (the minimum). Ignored when pay_what_you_want is disabled.

Example:

1500

trial_period_days
integer

Length of the trial period in days. A whole number of days, at least 1. Only supported for recurring products. Omit for no trial.

Example:

7

trial_price
integer

Amount charged at checkout to start the trial, instead of a free card verification. In cents (100 = $1.00). Requires a trial period and must be at least 100 and lower than price; only supported on standard-priced recurring products without pay-what-you-want. Omit (or send 0) for a free trial.

Example:

100

default_success_url
string

The URL to which the user will be redirected after successfull payment.

Example:

"https://example.com/?status=successful"

external_id
string

Your own key for this product, such as your SKU or internal product id. Creem never sets it. Unique per store, case-sensitive; 1 to 255 characters: letters, digits, _, -, . and :. With a key, this call creates the product when the key is new and updates the product that holds it otherwise, archived or not: only the fields you send change, each with the meaning PATCH /v1/products/{id} gives it, and a request that changes nothing answers write_result.result unchanged and writes nothing, so a retry after a timeout is safe. Send If-None-Match: * to create only: an existing key then answers 412 with code precondition_failed. Omit it for a product without a key; every call then creates a product.

Example:

"pro-monthly"

metadata
object

Key-value pairs for your own use, for example { "plan": "pro" }. Values are strings or numbers.

Example:
custom_fields
object[]

Collect additional information from your customer using custom fields during checkout.

custom_field
object[]
deprecated

DEPRECATED: Use custom_fields instead. Collect additional information from your customer using custom fields during checkout.

abandoned_cart_recovery_enabled
boolean
default:false

Enable abandoned cart recovery for this product

usage_prices
object[]

Metered charges billed on top of the base price, one per meter. Recurring products only. When an external_id names an existing product, the array is the complete set: a usage price matches a stored one by id, else by its meter (meter_id or meter_external_id); when id and the meter disagree, id wins and the usage price moves to the other meter, which is refused while subscriptions use it. A stored usage price the array leaves out is removed.

features
object[]

Features granted by purchase: customerCredits (a credit grant into one of the customer credit buckets), licenseKey (a license key per purchased unit), custom (a private note) and file (files buyers download, named by the ids of confirmed uploads from POST /v1/files). A file id that is unknown, of another store, or of an upload that was never confirmed answers 400 with code reference_not_found; a file of the store that is not stored under its own product-file key answers 400 with code file_location_invalid. githubRepository features are managed in the dashboard: an entry of that type answers 400 with code feature_type_not_writable. When an external_id names an existing product, features works as on PATCH /v1/products/{id}: only the types the array contains are replaced, and an entry matches a stored feature by id, else by its external_id, else (a feature without either) the stored feature of its type that has no external_id either. To remove a feature, send { id, deleted: true } or { external_id, deleted: true } with an external_id that names the product, or use PATCH /v1/products/{id}. A create takes no id and no deletion.

status
enum<string>

Lifecycle status of the product: active or archived.

Available options:
active,
archived
Example:

"active"

Response

Successfully created or updated the product

id
string
required

Unique identifier for the object.

mode
enum<string>
required

String representing the environment.

Available options:
test,
prod,
sandbox
object
string
required

String representing the object's type. Objects of the same type share the same value.

name
string
required

The name of the product

description
string
required

A brief description of the product

Example:

"This is a sample product description."

price
number
required

The price of the product in cents. 1000 = $10.00

Example:

400

currency
string
required

Three-letter ISO currency code, in uppercase. Must be a supported currency.

Example:

"USD"

billing_type
enum<string>
required

Indicates the billing method for the customer. It can either be a recurring billing cycle or a onetime payment.

Available options:
recurring,
onetime
Example:

"recurring"

billing_period
enum<string>
required

Billing period

Available options:
every-month,
every-three-months,
every-six-months,
every-year,
every-day,
once,
custom
Example:

"every-month"

status
enum<string>
required

Lifecycle status of the product: active or archived.

Available options:
active,
archived
Example:

"active"

tax_mode
enum<string>
required

Specifies the tax calculation mode for the transaction. If set to "inclusive," the tax is included in the price. If set to "exclusive," the tax is added on top of the price.

Available options:
inclusive,
exclusive
Example:

"inclusive"

tax_category
enum<string>
required

Categorizes the type of product or service for tax purposes. This helps determine the applicable tax rules based on the nature of the item or service.

Available options:
saas,
digital-goods-service,
ebooks
Example:

"saas"

external_id
string | null
required

Your own key for this product, such as your SKU or internal product id. Creem never sets it. Unique per store, case-sensitive; 1 to 255 characters: letters, digits, _, -, . and :. null when the product has no key.

Example:

"pro-monthly"

metadata
object | null
required

Key-value pairs for your own use, for example { "plan": "pro" }. Values are strings or numbers. null when the product has none.

Example:
created_at
string<date-time>
required

Creation date of the product

Example:

"2023-01-01T00:00:00Z"

updated_at
string<date-time>
required

Last updated date of the product

Example:

"2023-01-01T00:00:00Z"

write_result
object
required

What this write did and should tell you.

image_url
string

URL of the product image. Only png as jpg are supported

Example:

"https://example.com/image.jpg"

image_urls
string[]

Ordered list of product image URLs. The first entry is the cover image (mirrored in image_url).

Example:
features
object[]

Features of the product.

usage_prices
object[]

Metered charges billed on top of the base price, one per meter. Present on recurring products that meter usage.

recurring_interval
string | null

The unit of the recurring billing interval (day, week, month, or year). Together with recurring_interval_count this is authoritative for renewal timing — a billing_period of custom cannot be interpreted without it. For presets it is derived from the cadence (e.g. every-three-months → month). null for one-time products.

Example:

"month"

recurring_interval_count
integer | null

The number of recurring_interval units per billing cycle (e.g. 3 with a month interval bills every three months). Together with recurring_interval this is authoritative for renewal timing. For presets it is derived from the cadence. null for one-time products.

Example:

3

trial_period_days
integer | null

Length of the trial period in days. A whole number of days, at least 1. Only supported for recurring products. null when the product has no trial.

Example:

7

trial_price
integer | null

Amount charged at checkout to start the trial, instead of a free card verification. In cents (100 = $1.00). Requires a trial period and must be at least 100 and lower than price; only supported on standard-priced recurring products without pay-what-you-want. null for a free trial and for products without a trial.

Example:

100

pay_what_you_want
boolean

Whether buyers choose the amount they pay, at least price. One-time products only. Can be missing on a product embedded in another object.

suggested_price
number | null

The amount in cents pre-filled at checkout while pay_what_you_want is true; null when there is none. Checkout ignores it while pay_what_you_want is false. Can be missing on a product embedded in another object.

Example:

2500

business_net_pricing
boolean

When true, business customers whose valid VAT ID triggers reverse charge pay the price excluding VAT instead of the tax-inclusive price. Only supported for tax-inclusive one-time products; the merchant gives up the VAT portion on those sales. Defaults to false.

Example:

false

product_url
string

The product page you can redirect your customers to for express checkout.

Example:

"https://creem.io/product/prod_123123123123"

default_success_url
string | null

The URL to which the user will be redirected after successfull payment.

Example:

"https://example.com/?status=successful"

custom_fields
object[] | null

Custom fields configured for the product. Collect additional information from your customer during checkout.

abandoned_cart_recovery_enabled
boolean

Whether abandoned cart recovery is on for this product. Not included when the product is embedded in a checkout or subscription.