Skip to content

Customer Address Create

Sean Callan edited this page Jun 9, 2020 · 1 revision

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 (required) INTEGER - The ID for your API key.

  • auth_key (required) STRING - The API key.

  • auth_expiration (required) INTEGER - Unique ID tied to your key; changes if you reset your key.

  • customer_id (required) INTEGER - The ID of the Beans_Customer this address belongs to.

  • first_name (required) STRING - If not provided, will copy from Beans_Customer.

  • last_name (required) STRING - If not provided, will copy from Beans_Customer.

  • company_name (optional) STRING - If not provided, will copy from Beans_Customer if exists.

  • address1 (required) STRING -

  • address2 (optional) STRING -

  • city (required) STRING -

  • state (optional) STRING -

  • zip (required) STRING -

  • country (required) STRING -


Returns

  • address OBJECT - The resulting Beans_Customer_Address.
Clone this wiki locally