paddle_create_customer_address {paddleR} | R Documentation |
Create an Address for a Customer
Description
Creates a new address for a given customer in the Paddle API.
Usage
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
)
Arguments
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. |
Value
A list containing the created address entity and metadata.
Examples
result <- paddle_create_customer_address(
id = "ctm_123",
country_code = "US",
city = "New York",
postal_code = "10001"
)
[Package paddleR version 0.1.2 Index]