paddle_update_product | R Documentation |
Updates an existing product using its Paddle ID. You can update any combination of fields, such as name, description, tax category, type, image URL, custom metadata, and status.
paddle_update_product(
id,
name = NULL,
description = NULL,
type = NULL,
tax_category = NULL,
image_url = NULL,
custom_data = NULL,
status = NULL
)
id |
The Paddle product ID (e.g., '"pro_abc123"'). Required. |
name |
Updated product name. Optional. |
description |
Updated product description. Optional (use 'NULL' to clear). |
type |
Character. Type of product (one of '"standard"' and '"custom"'). Optional, defaults to '"standard'. |
tax_category |
Character vector of tax categories to filter. One of '"digital-goods"', '"ebooks', '"implementation-services"', '"professional-services"', '"saas"', '"software-programming-services"', '"standard"', '"training-services"', and '"website-hosting"'. Optional. |
image_url |
HTTPS image URL. Optional (use 'NULL' to clear). |
custom_data |
Named list of key-value metadata. Optional (use 'NULL' to clear). |
status |
Character vector of statuses (e.g., '"active"', '"archived"'). Optional. |
A list representing the updated product.
set_paddle_mode("sandbox")
result <- paddle_update_product(
id = "pro_123",
name = "Updated Product Name"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.