paddle_update_customer_address | R Documentation |
Updates an address for a specific customer using Paddle's API.
paddle_update_customer_address(
id,
address_id,
country_code = NULL,
description = NULL,
first_line = NULL,
second_line = NULL,
city = NULL,
postal_code = NULL,
region = NULL,
custom_data = NULL,
status = NULL
)
id |
Character. Paddle customer ID (e.g., "ctm_123"). Required. |
address_id |
Character. Paddle address ID (e.g., "add_456"). Required. |
country_code |
Character. Optional. Two-letter ISO 3166-1 alpha-2 country code. |
description |
Character. Optional. Internal reference. |
first_line |
Character. Optional. First line of address. |
second_line |
Character. Optional. Second line of address. |
city |
Character. Optional. City name. |
postal_code |
Character. Optional. ZIP or postal code. |
region |
Character. Optional. Region, state, or county. |
custom_data |
Named list. Optional structured metadata. |
status |
Character. Status of the customer ('"active"' or '"archived"'). Optional. |
A list containing the updated address entity and metadata.
set_paddle_mode("sandbox")
result <- paddle_update_customer_address(
id = "ctm_123",
address_id = "add_123",
city = "San Francisco",
region = "CA"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.