paddle_update_customer {paddleR} | R Documentation |
Update a Paddle Customer
Description
Updates an existing customer using their Paddle ID.
Usage
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
set_paddle_mode("sandbox")
# Requires a valid id
result <- paddle_update_customer(
id = "ctm_123",
name = "Updated Name",
status = "active"
)
[Package paddleR version 0.1.2 Index]