updateProfileAddress

put

/ccstore/v1/profiles/current/addresses/{addressId}

Update profile address of the customer. If the customer is B2B, then the customer should have profile address manager role in that organization.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : updateProfileAddress_request
Type: object
Show Source
Example:
{
    "address":{
        "country":"US",
        "lastName":"Anderson",
        "address3":"abc",
        "city":"Syracuse",
        "address2":"xyz",
        "prefix":null,
        "address1":"21 Cedar Ave",
        "postalCode":"13202",
        "jobTitle":null,
        "companyName":null,
        "county":null,
        "suffix":null,
        "firstName":"Kim",
        "phoneNumber":"212-555-1977",
        "repositoryId":"se-980031",
        "faxNumber":null,
        "middleName":null,
        "state":"NY"
    },
    "addressType":"Address12"
}
Nested Schema : address
Type: object
The address object of the profile
Show Source
Nested Schema : types
Type: array
The types tagged to the address
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateProfileAddress_response
Type: object
Show Source
Nested Schema : address
Type: object
The address object of the profile
Show Source
Nested Schema : types
Type: array
The types tagged to the address
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "address":{
        "lastName":"Anderson",
        "country":"US",
        "types":[
            {
                "displayName":"Billing",
                "repositoryId":"ss-10002",
                "id":"ss-10001"
            }
        ],
        "address3":"abc",
        "address2":"xyz",
        "city":"Syracuse",
        "address1":"21 Cedar Ave",
        "postalCode":"13202",
        "county":null,
        "firstName":"Kim",
        "phoneNumber":"212-555-1977",
        "repositoryId":"se-980031",
        "state":"NY"
    },
    "addressType":"Address",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/profiles/current/addresses/se-980031"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |22030|User is not logged in| |22031|Internal error during get profile| |22032|Error occured due to invalid data| |22002|No profile found with profile id| |89103|The current user does not have administrator privileges and is not associated to an account| |100190|Error occurred while attempting to fetch addresses from the repository.| |22038|Invalid Address ID : address is not associated with user profile.| |89101|User {0} does not have required permission to manage addresses.| |100186|Updating of multiple address is not allowed| |100183|Addresses is required| |23010|City not specified in shipping address| |23011|Address line 1 not specified in shipping address| |22000|The profile id passes is null or empty.| |23012|No last name specified in shipping address| |22001|Internal error while getting the profile.| |23013|No first name specified in shipping address| |23015|Phone number not specified in shipping address| |23005|Invalid phone number in shipping address| |23007|No country specified in shipping address| |23008|Postal code not specified in shipping address| |180104|Invalid address type ID {0}| |180106|One or more address type ID is invalid| |180118|Error while getting the address types|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top