Updates an existing customer using their Paddle ID.
paddle_update_customer(
id,
name = NULL,
email = NULL,
status = NULL,
custom_data = NULL,
locale = NULL
)
Character. Paddle customer ID (required).
Character. Full name of the customer. Optional (can be `NULL` to remove).
Character. Email address of the customer. Optional.
Character. Status of the customer (`"active"` or `"archived"`). Optional.
Named list of custom metadata. Optional (can be `NULL` to remove).
Character. Locale string (IETF BCP 47). Optional.
A list with the updated customer info.
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"
)
}