Creates a new business entity associated with a specific customer in the Paddle API.

paddle_create_customer_business(
  id,
  name,
  company_number = NULL,
  tax_identifier = NULL,
  contacts = NULL,
  custom_data = NULL
)

Arguments

id

Character. Paddle customer ID (e.g., "ctm_123"). Required.

name

Character. Name of the business. Required.

company_number

Character. Optional company number.

tax_identifier

Character. Optional tax/VAT ID.

contacts

List of contact objects (each a named list with `"name"` and required `"email"`). Optional.

custom_data

Named list of additional custom fields. Optional.

Value

A list containing the created business entity and metadata.

Examples

if (FALSE) { # paddle_has_token()
result <- paddle_create_customer_business(
  id = "ctm_123",
  name = "Acme Inc.",
  tax_identifier = "123456789",
  contacts = list(list(email = "ceo@acme.com") )
)
}