paddle_update_product {paddleR} | R Documentation |
Update a Paddle Product
Description
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.
Usage
paddle_update_product(
id,
name = NULL,
description = NULL,
type = NULL,
tax_category = NULL,
image_url = NULL,
custom_data = NULL,
status = NULL
)
Arguments
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. |
Value
A list representing the updated product.
Examples
set_paddle_mode("sandbox")
result <- paddle_update_product(
id = "pro_123",
name = "Updated Product Name"
)