Creates a new address for a given customer in the Paddle API.
paddle_create_customer_address(
id,
country_code,
description = NULL,
first_line = NULL,
second_line = NULL,
city = NULL,
postal_code = NULL,
region = NULL,
custom_data = NULL
)
Character. Paddle customer ID (e.g., "ctm_123"). Required.
Character. Two-letter ISO 3166-1 alpha-2 country code. Required.
Character. Optional description for internal reference.
Character. Optional. First line of address.
Character. Optional. Second line of address.
Character. Optional. City name.
Character. Optional. ZIP or postal code. Required for some countries.
Character. Optional. Region, state, or county.
Named list. Optional custom metadata.
A list containing the created address entity and metadata.
if (FALSE) { # paddle_has_token()
result <- paddle_create_customer_address(
id = "ctm_123",
country_code = "US",
city = "New York",
postal_code = "10001"
)
}