updateProfile

put

/ccstore/v1/profiles/current

Update Profile. Updates customer profile attributes. Optionally takes the x-ccasset-language header to get translated content in another language. Dynamic Properties of profile can also be updated like any other attribute ("dynamicPropertyKey":"dynamicPropertyValue").

Request

Supported Media Types
Header Parameters
Body ()
A registered shopper has changed their account details
Root Schema : updateProfile_request
Type: object
A registered shopper has changed their account details
Show Source
Example:
{
    "profileId":"160004",
    "profile":{
        "lastPurchaseDate":null,
        "dynamicPropertyMapLong":{
        },
        "GDPRProfileP13nConsentDate":"2018-01-01T00:00:00.000Z",
        "GDPRProfileP13nConsentGranted":true,
        "secondaryAddresses":{
        },
        "shippingSurchargePriceList":null,
        "firstPurchaseDate":null,
        "profileType":null,
        "loyaltyPrograms":[
        ],
        "lastPurchaseAmount":0,
        "registrationDate":"2017-09-14T07:30:12.428Z",
        "sessionOrganization":null,
        "id":"160004",
        "lifetimeAOV":0,
        "daytimeTelephoneNumber":null,
        "derivedSalePriceList":null,
        "homeAddress":{
            "country":null,
            "lastName":null,
            "address3":null,
            "city":null,
            "address2":null,
            "prefix":null,
            "address1":null,
            "companyName":null,
            "postalCode":null,
            "county":null,
            "suffix":null,
            "firstName":null,
            "phoneNumber":null,
            "item-id":null,
            "repositoryId":"180004",
            "faxNumber":null,
            "middleName":null,
            "state":null
        },
        "customerContactId":"CRMID_12345",
        "taxExempt":false,
        "dynamicPropertyMapBigString":{
        },
        "active":true,
        "previousVisitDate":null,
        "lastVisitDate":null,
        "taxExemptionCode":null,
        "version":7,
        "abandonedOrderCount":0,
        "firstName":"SepNew",
        "defaultCreditCard":null,
        "creditCards":{
        },
        "derivedTaxExemptionCode":null,
        "currentOrganization":null,
        "secondaryOrganizations":[
        ],
        "shippingAddresses":[
        ],
        "derivedPriceListGroup":null,
        "lastName":"SepNew",
        "roles":[
        ],
        "numberOfOrders":0,
        "locale":"en",
        "login":"sepnew@ca.com",
        "receiveEmailDate":"2018-01-01T00:00:00.000Z",
        "sitePropertiesList":[
            {
                "site":{
                    "id":"100001"
                },
                "properties":{
                    "GDPRProfileP13nConsentDate":"2018-01-01T00:00:00.000Z",
                    "GDPRProfileP13nConsentGranted":true,
                    "receiveEmail":"no",
                    "receiveEmailDate":"2018-01-01T00:00:00.000Z"
                }
            },
            {
                "site":{
                    "id":"100002"
                },
                "properties":{
                    "GDPRProfileP13nConsentDate":"2018-01-01T00:00:00.000Z",
                    "GDPRProfileP13nConsentGranted":true,
                    "receiveEmail":"no",
                    "receiveEmailDate":"2018-01-01T00:00:00.000Z"
                }
            },
            {
                "site":{
                    "id":"siteUS"
                },
                "properties":{
                    "GDPRProfileP13nConsentDate":"2018-01-01T00:00:00.000Z",
                    "GDPRProfileP13nConsentGranted":true,
                    "receiveEmail":"no",
                    "receiveEmailDate":"2018-01-01T00:00:00.000Z"
                }
            }
        ],
        "lifetimeSpend":0,
        "dynamicPropertyMapString":{
        },
        "email":"sepnew@ca.com",
        "siteProperties":{
            "100001":{
                "receiveEmail":"no"
            },
            "100002":{
                "receiveEmail":"no"
            },
            "siteUS":{
                "receiveEmail":"no"
            }
        },
        "comments":[
        ],
        "priceListGroup":null,
        "receiveEmail":"no",
        "dateOfBirth":null,
        "shippingAddress":null,
        "lastActivity":"2017-09-14T07:30:12.428Z",
        "middleName":null,
        "billingAddress":null,
        "derivedShippingSurchargePriceList":null,
        "dynamicPropertyMapDouble":{
        },
        "abandonedOrders":[
        ]
    },
    "siteId":"100002",
    "type":"atg.dps.ProfileUpdate"
}
Nested Schema : profile
Type: object
Show Source
Nested Schema : abandonedOrders
Type: object
Set of Abandoned orders
Show Source
Nested Schema : billingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : comments
Type: array
the notes on the customer.
Show Source
Nested Schema : currentOrganization
Type: object
The current Organization
Show Source
Nested Schema : defaultCreditCard
Type: array
List of user credit cards.
Show Source
Nested Schema : derivedPriceListGroup
Type: object
Show Source
Nested Schema : derivedSalePriceList
Type: object
Show Source
Nested Schema : derivedShippingSurchargePriceList
Type: object
Show Source
Nested Schema : homeAddress
Type: object
Home address
Show Source
Nested Schema : loyaltyPrograms
Type: array
Loyalty Programs Information
Show Source
Nested Schema : priceListGroup
Type: object
Show Source
Nested Schema : relativeTo
Type: array
If not provided organization id will be cosidered as its parent organization ID.
Show Source
Nested Schema : roles
Type: array
List of user roles.
Show Source
Nested Schema : secondaryAddresses
Type: array
List of secondary addresses associated with profile.
Show Source
Nested Schema : secondaryOrganizations
Type: array
List of secondary organizations that need to associate with the user.
Show Source
Nested Schema : sessionOrganization
Type: object
The session Organization
Show Source
Nested Schema : shippingAddress
Type: object
Shipping address
Show Source
Nested Schema : shippingAddresses
Type: array
List of shipping addresses associated with profile.
Show Source
Nested Schema : shippingSurchargePriceList
Type: object
Show Source
Nested Schema : siteProperties
Type: object
Site Properties
Show Source
Nested Schema : sitePropertiesList
Type: array
The list of site related properties for the profile
Show Source
Nested Schema : items
Type: object
The info of the customer
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : cardProps
Type: object
Nested Schema : currency
Type: object
Show Source
Nested Schema : listPriceList
Type: object
Show Source
Nested Schema : salePriceList
Type: object
Show Source
Nested Schema : shippingSurchargePriceList
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : currency
Type: object
Show Source
Nested Schema : listPriceList
Type: object
Show Source
Nested Schema : salePriceList
Type: object
Show Source
Nested Schema : shippingSurchargePriceList
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : properties
Type: object
The site related properties for the profile
Show Source
Nested Schema : site
Type: object
The site data
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateProfile_response
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : creditCards
Type: array
List of user credit cards.
Show Source
Nested Schema : derivedPriceListGroup
Type: object
The derived price list group from the user's parent organization
Show Source
Nested Schema : derivedSalePriceList
Type: object
The derived sale price list from the user's parent organization
Show Source
Nested Schema : derivedShippingSurchargePriceList
Type: object
The derived shipping surcharge price list from the user's parent organization
Show Source
Nested Schema : dynamicInternalOnlyProperty
Type: object
the value of the internal only dynamic property
Nested Schema : dynamicProperty
Type: object
the value of the dynamic property
Nested Schema : loyaltyPrograms
Type: array
Loyalty Programs Information
Show Source
Nested Schema : parentOrganization
Type: object
This attribute is added for 'Account Based Commerce', this is required only in case of 'Account Based Commerce', this is the id of organization to which user is associated
Show Source
Nested Schema : priceListGroup
Type: object
The associated price list group for this user
Show Source
Nested Schema : roles
Type: array
List of user roles.
Show Source
Nested Schema : secondaryOrganizations
Type: array
List of secondary organizations associated to profile. It will be empty always. Secondary Organizations associated to the profile can be fetched using organization endpoints
Show Source
Nested Schema : shippingAddress
Type: object
Default shipping address of the profile
Show Source
Nested Schema : shippingAddresses
Type: array
List of shipping addresses associated with profile.
Show Source
Nested Schema : shippingSurchargePriceList
Type: object
The shipping surcharge price list for this user
Show Source
Nested Schema : translations
Type: array
List of available locales for the user
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : cardProps
Type: object
Nested Schema : items
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : secondaryAddresses
Type: array
List of shipping addresses associated with profile.
Show Source
Nested Schema : shippingAddress
Type: object
Default shipping address of the profile
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : relativeTo
Type: object
Organization in which the role applies. Present only if type is organizationalRole.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : billingAddress
Type: object
Default billing address of the profile
Show Source
Nested Schema : secondaryAddresses
Type: array
List of shipping addresses associated with profile.
Show Source
Nested Schema : shippingAddress
Type: object
Default shipping address of the profile
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "lastPurchaseDate":null,
    "numberOfVisits":1,
    "lastName":"Anderson",
    "GDPRProfileP13nConsentDate":null,
    "GDPRProfileP13nConsentGranted":false,
    "gender":"female",
    "receiveEmail":"yes",
    "dateOfBirth":"null",
    "numberOfOrders":0,
    "lastVisitDate":null,
    "previousVisitDate":null,
    "locale":"en",
    "receiveEmailDate":null,
    "firstPurchaseDate":null,
    "firstName":"Kim",
    "repositoryId":"110033",
    "firstVisitDate":null,
    "shippingAddress":{
        "lastName":"Black",
        "country":"US",
        "address3":"",
        "address2":"",
        "city":"Wake Forest",
        "address1":"405 Kilmarnock",
        "postalCode":"27587",
        "county":"",
        "firstName":"Jack",
        "phoneNumber":"555123456",
        "repositoryId":"110053",
        "alias":"Address",
        "state":"NC"
    },
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/profiles/current"
        }
    ],
    "id":"se-570031",
    "email":"kim@gmail.com",
    "daytimeTelephoneNumber":"212-555-1977",
    "shippingAddresses":[
        {
            "lastName":"Anderson",
            "country":"US",
            "address3":"",
            "address2":"Broadway",
            "address1":"326",
            "prefix":"",
            "postalCode":"30005",
            "regionName":"Georgia",
            "companyName":"",
            "county":null,
            "firstName":"Kim",
            "phoneNumber":"9898989898",
            "repositoryId":"se-980032",
            "alias":"Address",
            "state":"GA",
            "countryName":"United States"
        },
        {
            "lastName":"anderson",
            "country":"US",
            "address3":"",
            "address2":"",
            "address1":"anderson",
            "prefix":"",
            "postalCode":"13202",
            "regionName":"Georgia",
            "companyName":"",
            "county":null,
            "firstName":"kim",
            "phoneNumber":"",
            "repositoryId":"se-980031",
            "alias":"Address##0",
            "state":"GA",
            "countryName":"United States"
        }
    ]
}

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| |------------------|------------------| |22000|If the profile id passes is null or empty| |22001|If there was any internal error while getting the profile| |22002|If there was no profile found with the given id| |22024|{0}({1}) must be a String|
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