Updates an existing customer using their Paddle ID.

paddle_update_customer(
  id,
  name = NULL,
  email = NULL,
  status = NULL,
  custom_data = NULL,
  locale = NULL
)

Arguments

id

Character. Paddle customer ID (required).

name

Character. Full name of the customer. Optional (can be `NULL` to remove).

email

Character. Email address of the customer. Optional.

status

Character. Status of the customer (`"active"` or `"archived"`). Optional.

custom_data

Named list of custom metadata. Optional (can be `NULL` to remove).

locale

Character. Locale string (IETF BCP 47). Optional.

Value

A list with the updated customer info.

Examples

if (FALSE) { # paddle_has_token()
set_paddle_mode("sandbox")
# Requires a valid id
result <- paddle_update_customer(
  id = "ctm_123",
  name = "Updated Name",
  status = "active"
)
}