Skip to main content
PATCH
Update a product

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.

Path Parameters

id
string
required

The product ID

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 update payload

name
string

Name of the product

description
string

Description of the product

image_url
string

URL of the product image

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. An empty list — or an explicit null — removes all images. Omit to leave the gallery unchanged.

default_success_url
string

Redirect URL after successful payment.

external_id
string | null

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 :. Omit it to leave the key unchanged; send null to clear it. A key another product of your store already uses answers 409 with code external_id_taken.

Example:

"pro-monthly"

metadata
object | null

Key-value pairs for your own use, for example { "plan": "pro" }. Values are strings or numbers. Omit it to leave it unchanged; send null to clear it. A sent object replaces the whole object.

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).

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.

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. Omit to leave unchanged.

Example:

false

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. Omit to leave the trial unchanged; send null to remove it (a paid trial's price is cleared with it). Switching billing_type to onetime removes the trial as well.

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. Omit to leave unchanged; send null or 0 to make the trial free.

Example:

100

pay_what_you_want
boolean

Enable pay-what-you-want pricing (one-time only).

suggested_price
integer | null

Suggested amount in cents when pay_what_you_want is enabled. Omit to leave unchanged; send null to clear it.

usage_prices
object[]

Metered charges billed on top of the base price, one per meter. Recurring products only. The array is the complete set after the update: omit (or send null) to leave charges untouched, send [] to remove all, include id to edit a charge in place.

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). Omit (or send null) to leave features untouched. Otherwise the request replaces only the feature types it contains: for each of them, the entries are the complete set of that type after the update. Include id to edit in place, or the external_id of a stored feature to edit that feature without its id; features of that type missing from the array are removed. Types the array does not contain stay as they are, and [] removes the credit features and nothing else. An entry with deleted: true removes the one feature it names by id or external_id; it is the only way to remove the last feature of a type. Each refusal changes nothing: 400 feature_type_mismatch (an id or external_id of a feature of another type), 400 feature_not_found (an id, or a deletion, that names no feature of the product), 400 feature_type_not_writable (a githubRepository entry or deletion; those are managed in the dashboard), 400 reference_not_found (a file id that is unknown, of another store, or of an upload that was never confirmed), 400 file_location_invalid (a file of the store that is not stored under its own product-file key), and 409 license_keys_issued (removing a license-key feature whose keys customers hold; details.issued_keys counts them). Editing a license-key feature in place keeps its issued keys: a new activation_limit applies to them at once, a new expiry only to keys issued later. Removing a file feature, or a file from it, removes the download for every past buyer, as in the dashboard; adding it again restores it.

custom_fields
object[] | null

Collect additional information from your customer using custom fields during checkout. The array is the complete set after the update: omit (or send null) to leave the custom fields unchanged, send [] to remove all.

abandoned_cart_recovery_enabled
boolean

Turn abandoned cart recovery for this product on or off. Buyers who abandon checkout get recovery emails, and recovered orders carry the recovery fee. Omit to leave it unchanged.

status
enum<string>

Lifecycle status of the product: active or archived.

Available options:
active,
archived
Example:

"active"

Response

Successfully 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.