paddle_create_customer_address | R Documentation |
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
)
id |
Character. Paddle customer ID (e.g., "ctm_123"). Required. |
country_code |
Character. Two-letter ISO 3166-1 alpha-2 country code. Required. |
description |
Character. Optional description for 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. Required for some countries. |
region |
Character. Optional. Region, state, or county. |
custom_data |
Named list. Optional custom metadata. |
A list containing the created address entity and metadata.
result <- paddle_create_customer_address(
id = "ctm_123",
country_code = "US",
city = "New York",
postal_code = "10001"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.