put
https://{store}/api/rest/companyAccounts/account/
| Param | Type | Description |
|---|---|---|
companyId | string | ID for the company being updated. ( You can provide a non-numeric id for reference when creating a new layout. ) |
companyData | CompanyData | Data being updated. |
CompanyData
Data to update set on an account.
| Param | Type | Description |
|---|---|---|
name | string | Name of the company. |
status | int | 0 for inactive, or 1 for active. |
new_customer_group_id | string | Customer Group ID. This customer group will be assigned to new customers added to this account by the Account Owner. |
sales_rep_user_ids | array | List of Sales Rep User IDs. |
customer_manage_customer_setting | int | Allow Owner to Add Customers. 0 or 1 |
customer_manage_location_setting | int | Allow Owner to Manage Locations. 0 or 1 |
customer_manage_address_setting | int | Allow Owner to Manage Addresses. 0 or 1 |
addresses | array | List of address objects described below. This will replace all address data. |
address_updates | array | List of address objects described below. This will update provided address data. |
locations | array | List of location objects described below. This will replace all location data. |
location_updates | array | List of location objects described below. This will update provided location data. |
payment_methods | array | List of payment methods allowed by this account. This will replace all payment method data. |
shipping_methods | array | List of shipping methods allowed by this account. This will replace all shipping method data. |
netterm | object | Used to configure netterm for the account. netterm object described below. |
enable_all_shipping_methods | int | Should allow all shipping methods. 0 or 1 |
enable_all_payment_methods | int | Should allow all payment methods. 0 or 1 |
enable_all_invoice_payment_methods | int | Should allow all payment methods for invoicing. 0 or 1 |
storecredit | StoreCreditData | Store Credit config defined below |
tax_class_id | int | null |
Location
location | Type | Description |
|---|---|---|
location.id | string | ID of the location being updated. |
location.name | string | Name of the location. |
location.status | string | Enable/Disable the location. 0 or 1 |
location.customers | string | This will replace all customers. |
location.customer_updates | array | List of customer_update objects used to remove customer. |
location.payment_methods | array | List of payment methods allowed by this location. This will replace all payment method data. |
location.payment_method_updates | array | List of payment_method_update objects used to remove payment method. |
location.shipping_methods | array | List of shipping methods allowed by this location. This will replace all shipping method data. |
location.shipping_method_updates | array | List of shipping_method_update objects used to remove shipping method. |
location.is_default_location | number | 1 or 0. Set to 1 if you want to make this the default location. |
Customer Update
customer_update | Type | Description |
|---|---|---|
customer_update.customer_id | string | Used to look up the customer to edit. Isn't required if using customer_email |
customer_update.customer_email | string | Used to look up the customer to edit. Isn't required if using customer_id |
customer_update.is_deleted | number | Remove customer. 1 or 0 |
customer_update.role_id | string | ID of the role. Isn't required if using role_label |
customer_update.role_label | string | Label of the role. Isn't requied if using role_id |
customer_update.is_main | number | Set customer as a Main Contact. 1 or 0 |
customer_update.is_default_main | number | Set customer as a default Main Contact. 1 or 0 |
customer_update.customer_data | object | Optional. Set customer attribute data such as firstname. |
Shipping Method Update
shipping_method_update | Type | Description |
|---|---|---|
shipping_method_update.method | string | Used to look up the method to delete. |
shipping_method_update.is_deleted | string | Delete the shipping method. 1 or 0 |
Payment Method Update
payment_method_update | Type | Description |
|---|---|---|
payment_method_update.method | string | Used to look up the method to delete. |
payment_method_update.is_deleted | string | Delete the payment method. 1 or 0 |
Invoice Payment Method Update
invoice_payment_method_update | Type | Description |
|---|---|---|
invoice_payment_method_update.method | string | Used to look up the method to delete. |
invoice_payment_method_update.is_deleted | string | Delete the payment method. 1 or 0 |
Address
address | Type | Description |
|---|---|---|
address.id | string | Used to look up the address. |
address.location_ids | string[] | Used to connect address to a location. Not required for billing address. |
address.address_type | string | billing, shipping, or billing,shipping |
address.email | string | |
address.prefix | string | Name prefix. (Mrs., Mr.) |
address.firstname | string | First name. |
address.middlename | string | Middle name. |
address.lastname | string | Last name. |
address.suffix | string | Name suffix. (Sr., Jr.) |
address.company | string | Address company. |
address.street | string | Address street. Separate lines using \n. |
address.city | string | Address city. |
address.region | string | Address region. Only used if country doesn't support region_id. |
address.region_id | string | Address region. Only used if supported by the country. |
address.postcode | string | Postal or zipcode. |
address.country_id | string | Country ID. (US, UK) |
address.vat_id | string | VAT ID. |
address.telephone | string | Telephone. |
address.fax | string | Fax number. |
address.zoey_shipping_type | number | Set to 1 for "Residential", set to 0 for "Commercial" |
address.is_default_shipping_address | number | 1 or 0. Set to 1 if you want to make this the default shipping address. Must match the address_type. |
address.is_default_billing_address | number | 1 or 0. Set to 1 if you want to make this the default billing address. Must match the address_type. |
Address Update
address_update | Type | Description |
|---|---|---|
address_update.address_id | string | Used to look up the address to delete. |
address_update.is_deleted | string | Delete the shipping method. 1 or 0 |
Net Term
netterm | Type | Description |
|---|---|---|
netterm.enabled | string | Enable/Disable netterms for this account 0 or 1 |
netterm.term | string | One of the following. net10, net15, net20, net30, net45, net60, net90, net120, net_xy |
netterm.credit | number | The amount of credit being applied to the account term. |
netterm.detail | number | Descriptive paragraph about the term details. |
netterm.xy_days | number | Term days when term is set to net_xy. |
netterm.xy_discount_days | number | Discount Within (days) when term is set to net_xy. |
netterm.xy_discount_amount | number | Discount Amount (%) when term is set to net_xy. |
netterm.xy_late_fee | number | Late Fee (%) when term is set to net_xy. |
StoreCreditData
storecredit | Type | Description |
|---|---|---|
storecredit.is_enabled | string | Enable/Disable storecredit for this account 0 or 1 |
storecredit.send_email | string | Send email after updating balanace. 0 or 1 |
storecredit.balance | number | The new credit set to the account. |
storecredit.comment | string | A comment added to the store credit balance history. |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK
