Related Documents
Reference - WebShop REST API 7.8
Document Properties
Kbid
27648T
Last Modified
31-May-2022
Added to KB
29-Jun-2016
Public Access
Everyone
Status
Online
Doc Type
References
Product
ICM 7.10
REST API - Update address details as suggested


Note

Starting with Intershop 7.10 our REST API is provided in the Open API 3.0 format, see Reference - Intershop Commerce Management 7.10 REST API.

URI

/customers/<customer-id>/addresses/<address-id>/suggestions/<suggested-address-id>

OR

/customers/-/addresses/<address-id>/suggestions/<suggested-address-id> (deprecated)

Http Method

PUT

Short Description

Updates address details by using the ones provided from the suggestion address

Query Parameters

none

Example Requests

/customers/Ik0KAB2YzNcAAAFU54ZToKlg/addresses/cokKCgoKKaEAAAE_4SIKfNMG/suggestions/USCO123

HTTP Status Codes

200 OK
204 No Content
401 Unauthorized
404 Not found

Possible values for header ‘error-key’:

  • customer.address_not_found

Description

Updates address details by using the ones provided from the suggested address. Updated address details are present to the client.

Cartridge

app_sf_rest

Application

B2C Web Shop, SMB Web Shop

Product Version

7.8

Product To Version

 
Status

New Labels

JSON

Request Data Format

n.a.

Request related java object

n/a

Request Example

n/a

Response Data Format

application/json

Response related java object

com.intershop.sellside.rest.common.capi.resource.customer.address.CustomerAddressItemSuggestionItemResource
com.intershop.sellside.rest.common.capi.resourceobject.AddressRO

Response Example

{
  "type": "Address",
  "urn": "urn:address:customer:hjMKAB2YDEAAAAFVIBk1ICSi:WFMKAB2YkZoAAAFVVlRMRDBT",
  "id": "WFMKAB2YkZoAAAFVVlRMRDBT",
  "addressName": "new_street1,Patricia,Miller,07743,Jena,US",
  "firstName": "Patricia",
  "lastName": "Miller",
  "addressLine1": "new_street1",
  "postalCode": "07743",
  "country": "United States",
  "countryCode": "US",
  "city": "Jena",
  "usage": [
    true,
    true
  ],
  "invoiceToAddress": true,
  "shipFromAddress": false,
  "serviceToAddress": false,
  "installToAddress": false,
  "shipToAddress": true,
  "street": "new_street1"
}

XML

XML Request Data Format

n.a.

XML Request Java Objects

n/a

XML Request Example

n/a

XML Response Data Format

text/xml

XML Response Java Objects

com.intershop.sellside.rest.common.capi.resource.customer.address.CustomerAddressItemSuggestionItemResource
com.intershop.sellside.rest.common.capi.resourceobject.AddressRO

XML Response Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Address type="Address">
    <addressLine1>new_street1</addressLine1>
    <addressName>new_street1,Patricia,Miller,07743,Jena,US</addressName>
    <city>Jena</city>
    <country>United States</country>
    <countryCode>US</countryCode>
    <firstName>Patricia</firstName>
    <id>4VYKAB2YzA0AAAFVzyNMRDBQ</id>
    <installToAddress>false</installToAddress>
    <invoiceToAddress>true</invoiceToAddress>
    <lastName>Miller</lastName>
    <postalCode>07743</postalCode>
    <serviceToAddress>false</serviceToAddress>
    <shipFromAddress>false</shipFromAddress>
    <shipToAddress>true</shipToAddress>
    <street>new_street1</street>
    <urn>urn:address:customer:hjMKAB2YDEAAAAFVIBk1ICSi:4VYKAB2YzA0AAAFVzyNMRDBQ</urn>
</Address>
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