Related Documents
Document Properties
KbidX24901
Last Modified10-Jul-2017
Added to KB12-Jul-2013
Public AccessEveryone
StatusOnline
Doc TypeReferences
Product
  • ICM 7.6
  • ICM 7.7
  • ICM 7.8

REST API - Update profile of a customer's user (until 7.8)

URI

/customers/-/users/-

Http Method

PUT

Short Description

Updates the profile of the currently logged in user.

Query Parameters

none

Example Requests

/customers/-/users/-

HTTP Status Codes

200 OK
400 Bad Request

Possible values for header value "error-key":
customer.businesspartnerno.already_exists.error
customer.invalid_fields.error

401 Unauthorized

Description

Update

  • Title
  • First Name ( * )
  • Last Name ( * )
  • Birthday
  • Department
  • Phone Home
  • Phone Business
  • Mobile
  • Fax
  • Email ( * )
  • Preferred Language ( * )
  • BusinessPartnerNo ( * )

of the currently logged in user. Fields marked with ( * ) are mandatory. The BusinessPartnerNo has to be provided for validation purposes.

Cartridge

app_sf_rest, app_sf_rest_smb

Application

SMB Web Shop

Product Version

7.4

Product To Version

7.8

Status

final

JSON

Request Data Format

application/json

Request related java object

com.intershop.sellside.rest.smb.capi.resource.CustomerItemUserItemResource
com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerUserRO

Request Example

{
  "name": "",
  "type": "SMBCustomerUser",
  "department": "",
  "email": "educking@test.intershop.de",
  "fax": "",
  "phoneHome": "",
  "preferredLanguage": "de_DE",
  "phoneMobile": "",
  "phoneBusiness": "",
  "businessPartnerNo": "educking",
  "firstName": "Emil",
  "lastName": "Ducking",
  "title": ""
}

Response Data Format

application/json

Response related java object

com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerUserRO
com.intershop.sellside.rest.b2c.capi.resourceobject.customer.ValidationRO

Response Example

{
  "name": "",
  "type": "SMBCustomerUser",
  "department": "",
  "email": "educking@test.intershop.de",
  "fax": "",
  "phoneHome": "",
  "preferredLanguage": "de_DE",
  "phoneMobile": "",
  "phoneBusiness": "",
  "businessPartnerNo": "educking",
  "firstName": "Emil",
  "lastName": "Ducking",
  "title": ""
}

XML

XML Request Data Format

text/xml

XML Request Java Objects

com.intershop.sellside.rest.smb.capi.resource.CustomerItemUserItemResource
com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerUserRO

XML Request Example

<SMBCustomerUser name="" type="SMBCustomerUser">
    <businessPartnerNo>educking</businessPartnerNo>
    <firstName>Emil</firstName>
    <lastName>Ducking</lastName>
    <title>
    </title>
    <department>
    </department>
    <email>educking@test.intershop.de</email>
    <fax>
    </fax>
    <phoneBusiness>
    </phoneBusiness>
    <phoneHome>
    </phoneHome>
    <phoneMobile>
    </phoneMobile>
    <preferredLanguage>de_DE</preferredLanguage>
</SMBCustomerUser>

XML Response Data Format

text/xml

XML Response Java Objects

com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerUserRO
com.intershop.sellside.rest.b2c.capi.resourceobject.customer.ValidationRO

XML Response Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SMBCustomerUser name="" type="SMBCustomerUser">
  <businessPartnerNo>educking</businessPartnerNo>
  <firstName>Emil</firstName>
  <lastName>Ducking</lastName>
  <title>
  </title>
  <department>
  </department>
  <email>educking@test.intershop.de</email>
  <fax>
  </fax>
  <phoneBusiness>
  </phoneBusiness>
  <phoneHome>
  </phoneHome>
  <phoneMobile>
  </phoneMobile>
  <preferredLanguage>de_DE</preferredLanguage>
</SMBCustomerUser>

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Tickets