API Documentation

Beans_Customer_Address_Create

Create a new customer address. If the customer has no default_billing_address_id or default_shipping_address_id, it will automatically be set to this new address.


Parameters

auth_uid INTEGER The ID for your API key.
auth_key STRING The API key.
auth_expiration INTEGER Unique ID tied to your key; changes if you reset your key.
customer_id INTEGER The ID of the Beans_Customer this address belongs to.
first_name STRING If not provided, will copy from Beans_Customer.
last_name STRING If not provided, will copy from Beans_Customer.
company_name STRING If not provided, will copy from Beans_Customer if exists.
address1 STRING
address2 STRING
city STRING
state STRING
zip STRING
country STRING

Returns

address OBJECT The resulting Beans_Customer_Address.