paddle_update_customer_business {paddleR} | R Documentation |
Update a Business for a Customer
Description
Updates a business entity linked to a specific customer using the Paddle API.
Usage
paddle_update_customer_business(
id,
business_id,
name = NULL,
company_number = NULL,
tax_identifier = NULL,
status = NULL,
contacts = NULL,
custom_data = NULL
)
Arguments
id |
Character. Paddle customer ID (e.g., "ctm_123"). Required. |
business_id |
Character. Paddle business ID (e.g., "biz_456"). Required. |
name |
Character. Updated name of the business. Optional. |
company_number |
Character. Updated company number. Optional. |
tax_identifier |
Character. Numeric VAT/tax ID. Optional. |
status |
Character. Status of the customer (one of '"active"' or '"archived"'). Optional. |
contacts |
List of contact objects (named list with at least '"email"'). Optional. |
custom_data |
Named list of custom metadata. Optional. |
Value
A list containing the updated business entity and metadata.
Examples
set_paddle_mode("sandbox")
result <- paddle_update_customer_business(
id = "ctm_123",
business_id = "biz_123",
name = "Acme International"
)
[Package paddleR version 0.1.2 Index]