Creates a new product in Paddle. You must specify a name and tax category (chosen from a predefined set supported by Paddle).

paddle_create_product(
  name,
  tax_category,
  description = NULL,
  type = NULL,
  image_url = NULL,
  custom_data = NULL
)

Arguments

name

Name of the product. Required.

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"`. Required.

description

Short description of the product. Optional.

type

Character. Type of product (one of `"standard"` and `"custom"`). Optional, defaults to `"standard`.

image_url

HTTPS URL for the product image (1:1 recommended). Optional.

custom_data

Named list of your own structured key-value metadata. Optional.

Value

A list representing the newly created product.

Examples

if (FALSE) { # paddle_has_token()
set_paddle_mode("sandbox")
result <- paddle_create_product(
 name = "My Product",
 tax_category = "digital-goods",
 description = "A great product"
 )
}