PATCH
/
products
/
{id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: 'My Bearer Token',
});

await client.products.update('id');

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
addons
string[] | null

Available Addons for subscription products

brand_id
string | null
description
string | null

Description of the product, optional and must be at most 1000 characters.

digital_product_delivery
object | null

Choose how you would like you digital product delivered

image_id
string<uuid> | null

Product image id after its uploaded to S3

license_key_activation_message
string | null

Message sent to the customer upon license key activation.

Only applicable if license_key_enabled is true. This message contains instructions for activating the license key.

license_key_activations_limit
integer | null

Limit for the number of activations for the license key.

Only applicable if license_key_enabled is true. Represents the maximum number of times the license key can be activated.

license_key_duration
object | null

Duration of the license key if enabled.

Only applicable if license_key_enabled is true. Represents the duration in days for which the license key is valid.

license_key_enabled
boolean | null

Whether the product requires a license key.

If true, additional fields related to license key (duration, activations limit, activation message) become applicable.

metadata
object | null

Additional metadata for the product

name
string | null

Name of the product, optional and must be at most 100 characters.

price
object | null

Price details of the product. One-time price details.

tax_category
enum<string> | null

Tax category of the product.

Available options:
digital_products,
saas,
e_book,
edtech

Response

Product Updated Successfully