Update

ParamTypeDescription
companyIdstringID for the company being updated. ( You can provide a non-numeric id for reference when creating a new layout. )
companyDataCompanyDataData being updated.

CompanyData

Data to update set on an account.

ParamTypeDescription
namestringName of the company.
statusint0 for inactive, or 1 for active.
new_customer_group_idstringCustomer Group ID. This customer group will be assigned to new customers added to this account by the Account Owner.
sales_rep_user_idsarrayList of Sales Rep User IDs.
customer_manage_customer_settingintAllow Owner to Add Customers. 0 or 1
customer_manage_location_settingintAllow Owner to Manage Locations. 0 or 1
customer_manage_address_settingintAllow Owner to Manage Addresses. 0 or 1
addressesarrayList of address objects described below. This will replace all address data.
address_updatesarrayList of address objects described below. This will update provided address data.
locationsarrayList of location objects described below. This will replace all location data.
location_updatesarrayList of location objects described below. This will update provided location data.
payment_methodsarrayList of payment methods allowed by this account. This will replace all payment method data.
shipping_methodsarrayList of shipping methods allowed by this account. This will replace all shipping method data.
nettermobjectUsed to configure netterm for the account. netterm object described below.
enable_all_shipping_methodsintShould allow all shipping methods. 0 or 1
enable_all_payment_methodsintShould allow all payment methods. 0 or 1
enable_all_invoice_payment_methodsintShould allow all payment methods for invoicing. 0 or 1
storecreditStoreCreditDataStore Credit config defined below
tax_class_idintnull

Location

locationTypeDescription
location.idstringID of the location being updated.
location.namestringName of the location.
location.statusstringEnable/Disable the location. 0 or 1
location.customersstringThis will replace all customers.
location.customer_updatesarrayList of customer_update objects used to remove customer.
location.payment_methodsarrayList of payment methods allowed by this location. This will replace all payment method data.
location.payment_method_updatesarrayList of payment_method_update objects used to remove payment method.
location.shipping_methodsarrayList of shipping methods allowed by this location. This will replace all shipping method data.
location.shipping_method_updatesarrayList of shipping_method_update objects used to remove shipping method.
location.is_default_locationnumber1 or 0. Set to 1 if you want to make this the default location.

Customer Update

customer_updateTypeDescription
customer_update.customer_idstringUsed to look up the customer to edit. Isn't required if using customer_email
customer_update.customer_emailstringUsed to look up the customer to edit. Isn't required if using customer_id
customer_update.is_deletednumberRemove customer. 1 or 0
customer_update.role_idstringID of the role. Isn't required if using role_label
customer_update.role_labelstringLabel of the role. Isn't requied if using role_id
customer_update.is_mainnumberSet customer as a Main Contact. 1 or 0
customer_update.is_default_mainnumberSet customer as a default Main Contact. 1 or 0
customer_update.customer_dataobjectOptional. Set customer attribute data such as firstname.

Shipping Method Update

shipping_method_updateTypeDescription
shipping_method_update.methodstringUsed to look up the method to delete.
shipping_method_update.is_deletedstringDelete the shipping method. 1 or 0

Payment Method Update

payment_method_updateTypeDescription
payment_method_update.methodstringUsed to look up the method to delete.
payment_method_update.is_deletedstringDelete the payment method. 1 or 0

Invoice Payment Method Update

invoice_payment_method_updateTypeDescription
invoice_payment_method_update.methodstringUsed to look up the method to delete.
invoice_payment_method_update.is_deletedstringDelete the payment method. 1 or 0

Address

addressTypeDescription
address.idstringUsed to look up the address.
address.location_idsstring[]Used to connect address to a location. Not required for billing address.
address.address_typestringbilling, shipping, or billing,shipping
address.emailstringemail
address.prefixstringName prefix. (Mrs., Mr.)
address.firstnamestringFirst name.
address.middlenamestringMiddle name.
address.lastnamestringLast name.
address.suffixstringName suffix. (Sr., Jr.)
address.companystringAddress company.
address.streetstringAddress street. Separate lines using \n.
address.citystringAddress city.
address.regionstringAddress region. Only used if country doesn't support region_id.
address.region_idstringAddress region. Only used if supported by the country.
address.postcodestringPostal or zipcode.
address.country_idstringCountry ID. (US, UK)
address.vat_idstringVAT ID.
address.telephonestringTelephone.
address.faxstringFax number.
address.zoey_shipping_typenumberSet to 1 for "Residential", set to 0 for "Commercial"
address.is_default_shipping_addressnumber1 or 0. Set to 1 if you want to make this the default shipping address. Must match the address_type.
address.is_default_billing_addressnumber1 or 0. Set to 1 if you want to make this the default billing address. Must match the address_type.

Address Update

address_updateTypeDescription
address_update.address_idstringUsed to look up the address to delete.
address_update.is_deletedstringDelete the shipping method. 1 or 0

Net Term

nettermTypeDescription
netterm.enabledstringEnable/Disable netterms for this account 0 or 1
netterm.termstringOne of the following. net10, net15, net20, net30, net45, net60, net90, net120, net_xy
netterm.creditnumberThe amount of credit being applied to the account term.
netterm.detailnumberDescriptive paragraph about the term details.
netterm.xy_daysnumberTerm days when term is set to net_xy.
netterm.xy_discount_daysnumberDiscount Within (days) when term is set to net_xy.
netterm.xy_discount_amountnumberDiscount Amount (%) when term is set to net_xy.
netterm.xy_late_feenumberLate Fee (%) when term is set to net_xy.

StoreCreditData

storecreditTypeDescription
storecredit.is_enabledstringEnable/Disable storecredit for this account 0 or 1
storecredit.send_emailstringSend email after updating balanace. 0 or 1
storecredit.balancenumberThe new credit set to the account.
storecredit.commentstringA comment added to the store credit balance history.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Response
200

OK

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!