Update Customer

Overview

This endpoint can be used to update an existing customer.

In order to consume the endpoint you must:

  • Be authenticated user

For information on how you can authenticate, see: Authentication

As soon as you do authentication and receive a valid token, it needs to be passed to the call.

Endpoint

Example for such endpoint for TT server is https://tt.api.sellercloud.com/rest/api/Customers/{id}

For your server endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/Customers/{id}

Request

  • Method Type: HttpPut
  • Authorization: Use Bearer Token + token received from token authentication
  • Header info: Content-Type: application/json

 

 

ParameterData TypeDescriptionIs Required
TitleStringCustomer title

Optional. Provide null or omit in the request if no update of this field is needed.

No
NameStringCustomer name

Optional. Provide null or omit in the request if no update of this field is needed.

No
EmailStringCustomer email

Optional. Provide null or omit in the request if no update of this field is needed.

No
EmailCCStringCustomer CC email

Optional. Provide null or omit in the request if no update of this field is needed.

No
BusinessNameStringCustomer business name

Field is required when customer is Wholesale and client setting ‘Enable Required Fields for WholeSale Customers’ is enabled.
Provide null or omit in the request if no update of this field is needed.

No
BusinessAliasesList<string>Customer business aliases

Optional. Provide null or omit in the request if no update of this field is needed.

No
SourceIdStringCustomer source id

Optional. Provide null or omit in the request if no update of this field is needed.

No
IsWholesaleBooleanIs wholesale customer

Optional. Provide null or omit in the request if no update of this field is needed.

No
CompanyIdIntegerCustomer company id

Optional. Provide null or omit in the request if no update of this field is needed.

No
AccountManager1IdIntegerCustomer account manager 1 id

Optional. Provide null or omit in the request if no update of this field is needed.

No
AccountManager1CommissionDecimalCustomer account manager 1 commission

Optional. Provide null or omit in the request if no update of this field is needed.

No
AccountManager2IdIntegerCustomer account manager 2 id

Optional. Provide null or omit in the request if no update of this field is needed.

No
AccountManager2CommissionDecimalCustomer account manager 2 commission

Optional. Provide null or omit in the request if no update of this field is needed.

No
AccountManager3IdIntegerCustomer account manager 3 id

Optional. Provide null or omit in the request if no update of this field is needed.

No
AccountManager3CommissionDecimalCustomer account manager 3 commission

Optional. Provide null or omit in the request if no update of this field is needed.

No
SalesmanStringCustomer salesman

Optional. Provide null or omit in the request if no update of this field is needed.

No
CommentsStringCustomer comments

Optional. Provide null or omit in the request if no update of this field is needed.

No
RatingEnumCustomer rating

Possible values:
-NotRated = 0
-Very_Disatisfied = 1
-Disatisfied = 2
-Neutral = 3
-Satisfied = 4
-Very_Satisfied = 5

Optional. Provide null or omit in the request if no update of this field is needed.

No
Phone1StringCustomer phone 1

Optional. Provide null or omit in the request if no update of this field is needed.

No
Phone2StringCustomer phone 2

Optional. Provide null or omit in the request if no update of this field is needed.

No
Phone3StringCustomer phone 3

Optional. Provide null or omit in the request if no update of this field is needed.

No
MobileStringCustomer mobile phone

Optional. Provide null or omit in the request if no update of this field is needed.

No
FaxStringCustomer fax

Optional. Provide null or omit in the request if no update of this field is needed.

No

Response

  • If user is authenticated and the request is successful, then response will be Status Code 200 => OK 
  • If user is not authenticated, then response will be Status Code 401 => Not Valid Token
  • In case of error, response will be Status Code 500 => Internal Server Error
  • In case of incorrect request, response will be with status code 400 Bad Request

Was this article helpful?

Next
Update Customer Order Options