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

REST API - Update SMB customer profile (until 7.8)

URI

/customers/-

Http Method

PUT

Short Description

Updates existing customer

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.customerno.already_exists.error

401 Unauthorized

Description

Updates the customer company profile the currently logged in user belongs to.

Cartridge

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.CustomerItemResource
com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerRO

Request Example

    {
       "type": "SMBCustomer",
       "description": "Agro Net is one of the leading companies for agricultural equipment.",
       "companyName": "Agro Net Neu",
       "companyName2": "",
       "taxationID": "986d35608155",
       "industry": "",
       "customerNo": "AgroNetNeu"
    }

Response Data Format

application/json

Response related java object

com.intershop.sellside.rest.smb.capi.resource.CustomerItemResource
com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerRO

Response Example

{
 "type": "SMBCustomer",
 "description": "Agro Net is one of the leading companies for agricultural equipment.",
 "taxationID": "986d35608155",
 "industry": "",
 "companyName": "Agro Net Neu",
 "companyName2": "",
 "customerNo": "AgroNet"
}

XML

XML Request Data Format

text/xml

XML Request Java Objects

com.intershop.sellside.rest.smb.capi.resource.CustomerItemResource
com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerRO

XML Request Example

<SMBCustomer type="SMBCustomer">
  <customerNo>AgroNet</customerNo>
  <companyName>Agro Net Neu</companyName>
  <companyName2>
  </companyName2>
  <description>Agro Net is one of the leading companies for agricultural equipment.</description>
  <industry>
  </industry>
  <taxationID>986d35608155</taxationID>
</SMBCustomer>

XML Response Data Format

text/xml

XML Response Java Objects

com.intershop.sellside.rest.smb.capi.resource.CustomerItemResource
com.intershop.sellside.rest.smb.capi.resourceobject.SMBCustomerRO

XML Response Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SMBCustomer type="SMBCustomer">
  <customerNo>AgroNet</customerNo>
  <companyName>Agro Net Neu</companyName>
  <companyName2>
  </companyName2>
  <description>Agro Net is one of the leading companies for agricultural equipment.</description>
  <industry>
  </industry>
  <taxationID>986d35608155</taxationID>
</SMBCustomer>

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