Merge Customers
Beta/v1/sales/customers/{id}/actions/mergeIdempotent with Idempotency-Key header. Learn more
Merges one or more source customers into a target customer, reassigning all associated records and deleting the source accounts.
idstringTarget customer ID.
include[]optional arrayenumValues:bill_to_addressship_to_addresstypeSub-objects to expand in the response. When omitted, sub-objects are returned as null.
source_customer_idsarray of stringSource customer IDs.
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 Merge Customers