REST API - Adobe Update private customer profile

URI

/customers/-

Http Method

PUT

Short Description

Updates private customer profile.

Query Parameters

none

Example Requests

/customers/-

HTTP Status Codes

200 OK
400 Bad Request

Possible values for header value "error-key":

customer.missing_fields.error

customer.invalid_fields.error

customer.customerno.already_exists.error

401 Unauthorized

Description

Updates the profile of the currently logged in customer.

Cartridge

adobe_app_sf_rest

Application

B2C Web Shop

Product Version

7.5.1

Product To Version

 

Status

New Labels

JSON

Request Data Format

application/json

Request related java object

com.intershop.adobe.application.storefront.rest.capi.resource.PrivateCustomerItemResource
com.intershop.adobe.application.storefront.rest.capi.resourceobject.PrivateCustomerRO

Request Example

{
  "customerNo": "Patricia1",
  "firstName" : "Patricia",
  "lastName" : "blubb",
  "email" : "patricia@test.intershop.de",
  "preferredLanguage" : "de_DE",
  "gender" : "Female"
}


Response Data Format

application/json

Response related java object

com.intershop.adobe.application.storefront.rest.capi.resource.PrivateCustomerItemResource
com.intershop.adobe.application.storefront.rest.capi.resourceobject.PrivateCustomerRO

Response Example

With 200 status:

{
    "type": "PrivateCustomer",
    "phoneBusiness": "",
    "fax": "",
    "phoneHome": "",
    "firstName": "Patricia",
    "lastName": "blubb",
    "title": "",
    "email": "patricia@test.intershop.de",
    "preferredLanguage": "de_DE",
    "phoneMobile": "",
    "customerNo": "Patricia1"
    "gender": "Female",
    "aboutMe": "",
    "hobbies": ""
}
 

XML

XML Request Data Format

text/xml

XML Request Java Objects

com.intershop.adobe.application.storefront.rest.capi.resource.PrivateCustomerItemResource
com.intershop.adobe.application.storefront.rest.capi.resourceobject.PrivateCustomerRO

XML Request Example

<PrivateCustomer type="PrivateCustomer">
  <customerNo>Patricia1</customerNo>
  <email>patricia@test.intershop.de</email>
  <firstName>Patricia</firstName>
  <lastName>blubb</lastName>
  <preferredLanguage>de_DE</preferredLanguage>
</PrivateCustomer>

XML Response Data Format

text/xml

XML Response Java Objects

com.intershop.adobe.application.storefront.rest.capi.resource.PrivateCustomerItemResource
com.intershop.adobe.application.storefront.rest.capi.resourceobject.PrivateCustomerRO

XML Response Example

With 200 status:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PrivateCustomer type="PrivateCustomer">
  <customerNo>Patricia1</customerNo>
  <email>patricia@test.intershop.de</email>
  <fax></fax>
  <firstName>Patricia</firstName>
  <lastName>blubb</lastName>
  <phoneBusiness></phoneBusiness>
  <phoneHome></phoneHome>
  <phoneMobile></phoneMobile>
  <preferredLanguage>de_DE</preferredLanguage>
  <title></title>
  <gender>Female</gender>
</PrivateCustomer>

And header:

Location: -

With 400 status:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Validation>
    <errors>error.customer.customerno.already-exists</errors>
    <reason>error.customer.customerno.already-exists</reason>
    <valid>false</valid>
</Validation>

Reference - Intershop Commerce Pro for Adobe REST API

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.

The Intershop Customer Support website uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties.

Further information on privacy can be found in the Intershop Privacy Policy and Legal Notice.
Customer Support
Knowledge Base
Product Resources
Tickets