Update Customer
Beta/v1/sales/customers/{id}Idempotent with Idempotency-Key header. Learn more
Partially updates a customer account. When a Stripe integration is active, customer changes are synced to Stripe.
idstringCustomer ID.
include[]optional arrayenumValues:bill_to_addressship_to_addresstypeSub-objects to expand in the response. When omitted, sub-objects are returned as null.
nameoptional stringCustomer name.
numberoptional stringCustomer number.
noteoptional stringnullableNote. Send null to clear.
statusoptional stringenumValues:normalpreferredhold_shipmentAccount status code.
emailoptional stringnullableEmail address. Send null to clear.
phoneoptional stringnullablePhone number. Send null to clear.
urloptional stringnullableWebsite URL. Send null to clear.
is_edi_enabledoptional booleanWhether EDI is enabled.
commission_policyoptional stringenumValues:commission_appliedcommission_exemptCommission policy.
freight_policyoptional stringenumValues:free_freightbilled_freightFreight policy.
default_carrier_idoptional stringDefault carrier ID.
default_service_level_idoptional stringnullableDefault service level ID. Send null to clear.
default_payment_term_idoptional stringDefault payment term ID.
default_shipping_term_idoptional stringDefault shipping term ID.
default_priorityoptional stringenumValues:lownormalhighDefault priority code.
default_sales_rep_user_idoptional stringnullableDefault sales rep user ID. Send null to clear.
bill_to_address_idoptional stringnullableBill-to address ID. Send null to clear.
ship_to_address_idoptional stringnullableShip-to address ID. Send null to clear.
customer_price_group_idsoptional array of stringPrice group IDs. Replaces all existing price groups when provided.
customer_type_group_idoptional stringCustomer type group ID.
carrier_billing_typeoptional stringenumValues:senderthird_partyCarrier billing type.
carrier_billing_accountoptional stringnullableCarrier billing account number. Send null to clear.
credit_limitoptional objectnullableCredit limit. Send null to clear.
valuestring (decimal)The decimal value.
unit_idstringThe unit ID for the value.
idstringCustomer ID.
objectstringenumValues:customerResource type identifier.
namestringDisplay name.
numberstringCustomer number.
statusstringenumValues:normalpreferredhold_shipmentAccount status code.
is_edi_enabledbooleanWhether EDI is enabled.
is_parent_accountbooleanWhether this is a parent account.
commission_policystringenumValues:commission_appliedcommission_exemptCommission policy.
notestringnullableNote.
credit_limitobjectExpandablenullableCredit limit.
idstringQuantity ID.
objectstringenumValues:quantityResource type identifier.
valuestring (decimal)Decimal value.
display_valuestringFormatted value with unit abbreviation (e.g. "$1,234.56" or "100 kg").
unitobjectnullableAssociated unit.
null in this endpoint.contact_infoobjectExpandablenullableContact information.
objectstringenumValues:customer_contact_infoResource type identifier.
emailstringnullableEmail address.
phonestringnullablePhone number.
urlstringnullableWebsite URL.
freight_preferencesobjectExpandablenullableFreight preferences.
objectstringenumValues:customer_freight_preferencesResource type identifier.
statusstringenumValues:free_freightbilled_freightFreight policy.
carrierobjectExpandablenullableDefault carrier.
idstringCarrier ID.
objectstringenumValues:carrierResource type identifier.
namestringDisplay name.
codestringnullableenumValues:fedexupsuspsCarrier code.
account_numberstringnullableAccount number.
customer_portal_visibilitystringenumValues:visiblehiddenCustomer portal visibility.
ownerobjectnullableOwner.
null in this endpoint.service_levelsobjectnullableService levels.
null in this endpoint.deleted_atstring (date-time)nullableSoft-delete timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
service_levelobjectExpandablenullableDefault service level.
idstringService level ID.
objectstringenumValues:service_levelResource type identifier.
namestringDisplay name.
service_level_tokenstringService level token.
customer_portal_visibilitystringenumValues:visiblehiddenCustomer portal visibility.
is_defaultbooleanDefault service level for the carrier.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
billing_typestringnullableenumValues:senderthird_partyCarrier billing type.
billing_accountstringnullableCarrier billing account number.
defaultsobjectExpandablenullableDefault settings.
objectstringenumValues:customer_defaultsResource type identifier.
payment_termobjectExpandablenullableDefault payment term.
idstringPayment term ID.
objectstringenumValues:payment_termResource type identifier.
namestringDisplay name.
statusstringenumValues:active|inactivePayment term status.
ownerobjectnullableOwner of this resource.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last-updated timestamp.
shipping_termobjectExpandablenullableDefault shipping term.
idstringShipping term ID.
objectstringenumValues:shipping_termResource type identifier.
namestringDisplay name.
typestringenumValues:free_freightflat_rate_freightcarrier_rate_freightShipping term type.
ownerobjectnullableOwner.
null in this endpoint.flat_rateobjectnullableFlat rate quantity, if any.
null in this endpoint.minimum_order_valueobjectnullableMinimum order value quantity, if any.
null in this endpoint.free_shipping_service_levelsobjectnullableService levels that qualify for free shipping.
null in this endpoint.created_atstring (date-time)When this shipping term was created.
updated_atstring (date-time)When this shipping term was last updated.
priorityobjectExpandablenullableDefault priority.
idstringPriority ID.
objectstringenumValues:priorityResource type identifier.
codestringenumValues:lownormalhighMachine-readable code.
namestringDisplay name.
ownerobjectnullableOwner of this resource.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
sales_repobjectExpandablenullableDefault sales rep.
idstringUser ID.
objectstringenumValues:userResource type identifier.
emailstringnullableEmail address.
namestringnullableDisplay name.
usernamestringnullableUsername.
email_verified_atstring (date-time)nullableEmail verified timestamp, null if unverified.
image_urlstringnullableProfile image URL.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
notification_preferencesobjectExpandablenullableNotification preferences.
objectstringenumValues:customer_notification_preferencesResource type identifier.
accepts_invoice_emailsbooleanWhether invoice emails are accepted.
bill_to_addressobjectExpandablenullableDefault billing address.
idstringAddress ID.
objectstringenumValues:addressResource type identifier.
namestringDisplay name of the address.
phonestringnullablePhone number associated with the address.
emailstringnullableEmail address associated with the address.
is_drop_shipbooleanWhether the address is a drop ship location.
geolocationobjectnullableGeolocation details for the address.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
ship_to_addressobjectExpandablenullableDefault shipping address.
idstringAddress ID.
objectstringenumValues:addressResource type identifier.
namestringDisplay name of the address.
phonestringnullablePhone number associated with the address.
emailstringnullableEmail address associated with the address.
is_drop_shipbooleanWhether the address is a drop ship location.
geolocationobjectnullableGeolocation details for the address.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
typeobjectExpandablenullableCustomer type group.
price_groupsobjectExpandablenullablePricing groups.
objectstringenumValues:listObject type for AccountGroup list
page_infoobjectPagination metadata for AccountGroup list
next_cursorstringnullableCursor to fetch the next page, null if no more pages.
prev_cursorstringnullableCursor to fetch the previous page, null if on the first page.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectArray of AccountGroup resources in this page
idstringAccount group ID.
objectstringenumValues:account_groupResource type identifier.
namestringDisplay name.
descriptionstringnullableDescription.
commission_policystringenumValues:commission_appliedcommission_exemptCommission policy.
freight_policystringenumValues:free_freightbilled_freightFreight policy.
typestringenumValues:pricing_grouptype_groupAccount group type.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
parent_accountobjectExpandablenullableParent account. Present if this is a child account.
idstringCustomer ID.
objectstringenumValues:customerResource type identifier.
namestringDisplay name.
numberstringCustomer number.
statusstringenumValues:normalpreferredhold_shipmentAccount status code.
is_edi_enabledbooleanWhether EDI is enabled.
is_parent_accountbooleanWhether this is a parent account.
commission_policystringenumValues:commission_appliedcommission_exemptCommission policy.
notestringnullableNote.
credit_limitobjectExpandablenullableCredit limit.
null in this endpoint.contact_infoobjectExpandablenullableContact information.
null in this endpoint.freight_preferencesobjectExpandablenullableFreight preferences.
null in this endpoint.defaultsobjectExpandablenullableDefault settings.
null in this endpoint.notification_preferencesobjectExpandablenullableNotification preferences.
null in this endpoint.bill_to_addressobjectExpandablenullableDefault billing address.
null in this endpoint.ship_to_addressobjectExpandablenullableDefault shipping address.
null in this endpoint.typeobjectExpandablenullableCustomer type group.
null in this endpoint.price_groupsobjectExpandablenullablePricing groups.
null in this endpoint.parent_accountobjectExpandablenullableParent account. Present if this is a child account.
null in this endpoint.child_accountsobjectExpandablenullableChild accounts. Present if this is a parent account.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
child_accountsobjectExpandablenullableChild accounts. Present if this is a parent account.
objectstringenumValues:listObject type for Customer list
page_infoobjectPagination metadata for Customer list
next_cursorstringnullableCursor to fetch the next page, null if no more pages.
prev_cursorstringnullableCursor to fetch the previous page, null if on the first page.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectArray of Customer resources in this page
idstringCustomer ID.
objectstringenumValues:customerResource type identifier.
namestringDisplay name.
numberstringCustomer number.
statusstringenumValues:normalpreferredhold_shipmentAccount status code.
is_edi_enabledbooleanWhether EDI is enabled.
is_parent_accountbooleanWhether this is a parent account.
commission_policystringenumValues:commission_appliedcommission_exemptCommission policy.
notestringnullableNote.
credit_limitobjectnullableCredit limit.
null in this endpoint.contact_infoobjectnullableContact information.
null in this endpoint.freight_preferencesobjectnullableFreight preferences.
null in this endpoint.defaultsobjectnullableDefault settings.
null in this endpoint.notification_preferencesobjectnullableNotification preferences.
null in this endpoint.bill_to_addressobjectnullableDefault billing address.
null in this endpoint.ship_to_addressobjectnullableDefault shipping address.
null in this endpoint.typeobjectnullableCustomer type group.
null in this endpoint.price_groupsobjectnullablePricing groups.
null in this endpoint.parent_accountobjectnullableParent account. Present if this is a child account.
null in this endpoint.child_accountsobjectnullableChild accounts. Present if this is a parent account.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Update Customer