getProfile
get
/ccagent/v1/profiles/{id}
Get Profile. Get details of a customer profile. Optionally takes X-CCOrganization & x-ccsite header.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueThe customer profile id.
Header Parameters
- X-CCOrganization
-
Type:
stringThe organization Id to which the profile belongs to- x-ccsite
Type:stringthe site id corresponding to which site specific properties should be shown
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getProfile_response
- hasIncompleteOrder
-
Type:
booleanIndicates whether the profile has an incomplete order on the current site. - profileComments
-
Type:
arrayprofileCommentsAdditional Properties Allowed:The list of all logged comments for the customer profile. - profileDetail
-
Type:
objectprofileDetailAdditional Properties Allowed:The details of the customer profile. - receiveEmail
-
Type:
stringIndicates whether the customer should receive marketing emails on the current site.
Nested Schema : profileComments
Nested Schema : profileDetail
Type:
objectThe details of the customer profile.
- catalog
-
Type:
objectcatalogAdditional Properties Allowed:The catalog associated with this profile. - contactBillingAddress
-
Type:
objectcontactBillingAddressRequired:trueAdditional Properties Allowed:The default billing address for B2B contact. - contactShippingAddress
-
Type:
objectcontactShippingAddressAdditional Properties Allowed:The default shipping address for B2B contact - daytimeTelephoneNumber
-
Type:
stringThe day time telephone number of the customer profile. - dynamicProperties
-
Type:
arraydynamicPropertiesAdditional Properties Allowed:Read-only list of dynamic properties associated with profile along with meta-data. -
Type:
stringEmail of the customer profile. - firstName
-
Type:
stringThe first name of the customer profile. - id
-
Type:
stringThe customer profile id. - lastName
-
Type:
stringLast name of the customer profile. - parentOrganization
-
Type:
objectparentOrganizationAdditional Properties Allowed:The parent Organization associated with the B2B customer profile. - profileType
-
Type:
stringThe type of the user. Possible values are b2b_user and b2c_user. - receiveEmail
-
Type:
stringFlag indicating whether the customer opted for receiving emails. - repositoryId
-
Type:
stringThe repository id of the customer profile record. - secondaryAddresses
-
Type:
objectsecondaryAddressesRequired:trueAdditional Properties Allowed:Secondary addresses for B2B contact. - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:The default shipping address for the customer profile - shippingAddresses
-
Type:
arrayshippingAddressesAdditional Properties Allowed:The shipping addresses associated with the customer profile.
Nested Schema : items
Type:
object- comment
-
Type:
stringThe comment string. - creationDate
-
Type:
stringThe of creation date of the comment. - repositoryId
-
Type:
stringThe repository id of the comment record.
Nested Schema : catalog
Type:
objectThe catalog associated with this profile.
- repositoryId
-
Type:
stringRepositoryId of the catalog associated with this profile.
Nested Schema : contactBillingAddress
Type:
objectThe default billing address for B2B contact.
- address1
-
Type:
stringAddress line 1 for this billing address. - address2
-
Type:
stringAddress line 2 for this billing address. - address3
-
Type:
stringAddress line 3 for this billing address. - city
-
Type:
stringCity for this billing address. - companyName
-
Type:
stringCompany name for this billing address. - country
-
Type:
stringCountry for this billing address. - county
-
Type:
stringCounty for this billing address. -
Type:
stringEmail for this billing address. - faxNumber
-
Type:
stringFax number for this billing address. - firstName
-
Type:
stringFirst name for this billing address. - jobTitle
-
Type:
stringJob title for this billing address. - lastName
-
Type:
stringLast name for this billing address. - middleName
-
Type:
stringMiddle name for this billing address. - phoneNumber
-
Type:
stringPhone number for this billing address. - postalCode
-
Type:
stringPostal code for this billing address. - prefix
-
Type:
stringPrefix for this billing address. - state
-
Type:
stringState for this billing address. - suffix
-
Type:
stringSuffix for this billing address.
Nested Schema : contactShippingAddress
Type:
objectThe default shipping address for B2B contact
- address1
-
Type:
stringThe address line 1 in the shipping address. - address2
-
Type:
stringThe address line 2 in the shipping address. - city
-
Type:
stringThe city in the shipping address record. - country
-
Type:
stringThe country in the shipping address record. - county
-
Type:
stringThe county in the shipping address. - firstName
-
Type:
stringThe first name in the shipping address. - lastName
-
Type:
stringThe last name in the shipping address. - phoneNumber
-
Type:
stringThe phone number in the shipping address. - postalCode
-
Type:
stringThe postal code in the shipping address. - repositoryId
-
Type:
stringThe repository id of the shipping address record. - state
-
Type:
stringThe state in the shipping address.
Nested Schema : dynamicProperties
Nested Schema : parentOrganization
Type:
objectThe parent Organization associated with the B2B customer profile.
- id
-
Type:
stringThe id of the organization. - name
-
Type:
stringThe name of of the organization. - repositoryId
-
Type:
stringThe repository id of the comment record.
Nested Schema : secondaryAddresses
Type:
objectSecondary addresses for B2B contact.
- address1
-
Type:
stringAddress line 1 for this address. - address2
-
Type:
stringAddress line 2 for this address. - address3
-
Type:
stringAddress line 3 for this address. - city
-
Type:
stringCity for this address. - companyName
-
Type:
stringCompany name for this address. - country
-
Type:
stringCountry for this address. - county
-
Type:
stringCounty for this address. -
Type:
stringEmail for this address. - faxNumber
-
Type:
stringFax number for this address. - firstName
-
Type:
stringFirst name for this address. - jobTitle
-
Type:
stringJob title for this address. - lastName
-
Type:
stringLast name for this address. - middleName
-
Type:
stringMiddle name for this address. - phoneNumber
-
Type:
stringPhone number for this address. - postalCode
-
Type:
stringPostal code for this address. - prefix
-
Type:
stringPrefix for this address. - state
-
Type:
stringState for this address. - suffix
-
Type:
stringSuffix for this address.
Nested Schema : shippingAddress
Type:
objectThe default shipping address for the customer profile
- address1
-
Type:
stringThe address line 1 in the shipping address. - address2
-
Type:
stringThe address line 2 in the shipping address. - city
-
Type:
stringThe city in the shipping address record. - country
-
Type:
stringThe country in the shipping address record. - county
-
Type:
stringThe county in the shipping address. - firstName
-
Type:
stringThe first name in the shipping address. - lastName
-
Type:
stringThe last name in the shipping address. - phoneNumber
-
Type:
stringThe phone number in the shipping address. - postalCode
-
Type:
stringThe postal code in the shipping address. - repositoryId
-
Type:
stringThe repository id of the shipping address record. - state
-
Type:
stringThe state in the shipping address.
Nested Schema : shippingAddresses
Nested Schema : items
Type:
object- id
-
Type:
stringThe ID of the dynamic property. - type
-
Type:
stringThe type of the dynamic property. Supported types are boolean, date, float, string, timestamp, enumerated, big string. - value
-
Type:
stringThe value of the dynamic property.
Nested Schema : items
Type:
object- address1
-
Type:
stringThe address line 1 in the shipping address. - address2
-
Type:
stringThe address line 2 in the shipping address. - city
-
Type:
stringThe city in the shipping address record. - companyName
-
Type:
stringThe company name of the person in the shipping address. - country
-
Type:
stringThe country in the shipping address record. - county
-
Type:
stringThe county in the shipping address. - faxNumber
-
Type:
stringThe fax number in the shipping address. - firstName
-
Type:
stringThe first name in the shipping address. - isDefaultAddress
-
Type:
booleanIndicates if its the default shipping address. - jobTitle
-
Type:
stringThe job title of the person in the shipping address. - lastName
-
Type:
stringThe last name in the shipping address. - middleName
-
Type:
stringThe middle name in the shipping address. - phoneNumber
-
Type:
stringThe phone number in the shipping address. - postalCode
-
Type:
stringThe postal code in the shipping address. - repositoryId
-
Type:
stringThe repository id of the shipping address record. - selectedCountry
-
Type:
stringThe selected country in the shipping address. - selectedState
-
Type:
stringThe selected state in the shipping address. - state
-
Type:
stringThe state in the shipping address. - state_ISOCode
-
Type:
stringThe state ISO code in the shipping address. - suffix
-
Type:
stringThe suffix of the person in the shipping address
Example application/json
{
"profileDetail":{
"lastName":"Butt",
"catalog":{
"repositoryId":"cloudLakeCatalog"
},
"dynamicProperties":[
{
"id":"dynamicPropertyMaritalStatus",
"label":"Marital Status",
"type":"string",
"value":"Single"
}
],
"contactBillingAddress":{
"lastName":"Anderson",
"firstName":"Kim",
"country":"US",
"phoneNumber":"212-555-2150",
"address2":null,
"city":"Buffalo",
"address1":"451 Brooks Ave",
"postalCode":"14201",
"county":null,
"repositoryId":"se-990031",
"state":"NY"
},
"receiveEmail":"no",
"secondaryAddresses":{
"Work":{
"lastName":"Anderson",
"firstName":"Kim",
"country":"US",
"phoneNumber":"212-555-2150",
"address2":null,
"city":"Buffalo",
"address1":"451 Brooks Ave",
"postalCode":"14201",
"county":null,
"repositoryId":"se-970031",
"state":"NY"
},
"Mom' s house":{
"lastName":"Anderson",
"firstName":"Dolores",
"country":"US",
"phoneNumber":"212-555-4321",
"address2":null,
"city":"Dewitt",
"address1":"41 Wexford Rd ",
"postalCode":"13214",
"county":null,
"repositoryId":"se-140010",
"state":"NY"
},
"Home":{
"lastName":"dd",
"firstName":"sdf",
"country":"US",
"phoneNumber":"1231231231",
"address2":"f",
"city":"f",
"address1":"dd",
"postalCode":"36123",
"county":null,
"repositoryId":"se-980031",
"state":"AL"
}
},
"contactShippingAddress":{
"lastName":"dd",
"firstName":"sdf",
"country":"US",
"phoneNumber":"1231231231",
"address2":"f",
"city":"f",
"address1":"dd",
"postalCode":"36123",
"county":null,
"repositoryId":"se-980031",
"state":"AL"
},
"parentOrganization":{
"name":"Oracle India Pvt Ltd",
"repositoryId":"oracle",
"id":"oracle"
},
"firstName":"James",
"profileType":"b2b_user",
"repositoryId":"120099",
"shippingAddress":{
"lastName":"Butt",
"firstName":"James",
"country":"United States",
"phoneNumber":"504-845-1427",
"address2":"",
"city":"New Orleans",
"address1":"6649 N Blue Gum St",
"postalCode":"70116",
"county":"Orleans",
"repositoryId":"140010",
"state":"Los Angeles"
},
"id":"120099",
"email":"jbutt@gmail.com",
"daytimeTelephoneNumber":"",
"shippingAddresses":[
{
"lastName":"Anderson",
"country":"United States",
"address3":"",
"address2":"",
"city":"Syracuse",
"prefix":"",
"address1":"21 Cedar Ave",
"postalCode":"13202",
"jobTitle":"",
"companyName":"",
"county":"",
"isDefaultAddress":false,
"suffix":"",
"selectedCountry":"US",
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"faxNumber":"",
"middleName":"",
"state":"New York",
"selectedState":"NY",
"state_ISOCode":"US-NY"
},
{
"lastName":"Butt",
"country":"United States",
"address3":"",
"address2":"",
"city":"New Orleans",
"prefix":"",
"address1":"6649 N Blue Gum St",
"postalCode":"70116",
"jobTitle":"",
"companyName":"",
"county":"Orleans",
"isDefaultAddress":true,
"suffix":"",
"selectedCountry":"US",
"firstName":"James",
"phoneNumber":"504-845-1427",
"faxNumber":"",
"middleName":"",
"state":"Los Angeles",
"selectedState":"LA",
"state_ISOCode":"US-LA"
}
]
},
"profileComments":[
{
"repositoryId":"100002",
"comment":"Item not received.",
"creationDate":"2014-06-25 01:50:28.0"
},
{
"repositoryId":"100001",
"comment":"Issue with shipping address.",
"creationDate":"2014-06-25 01:50:20.0"
}
],
"hasIncompleteOrder":false
}
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|
|------------------|------------------|
|100094|Organization passed in the header is currently inactive|
|100098|Current operation is being performed in an organization context and the shopper profile is not associated to any organization|
|22000|Profile Id passed is null or empty.|
|22001|Internal error occured while processing the request.|
|100101|The shopper profile does not belong to organization passed in the header|
|200006|Profile comment retrieval failed.|
|22002|No profile found with profile id|
|100102|Organization passed in the header is invalid or does not exist|
|200016|Internal error occurred while processing the profile orders request.|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"profileDetail": {
"lastName": "Butt",
"catalog": {"repositoryId": "cloudLakeCatalog"},
"dynamicProperties": [{
"id": "dynamicPropertyMaritalStatus",
"label": "Marital Status",
"type": "string",
"value": "Single"
}],
"contactBillingAddress": {
"lastName": "Anderson",
"firstName": "Kim",
"country": "US",
"phoneNumber": "212-555-2150",
"address2": null,
"city": "Buffalo",
"address1": "451 Brooks Ave",
"postalCode": "14201",
"county": null,
"repositoryId": "se-990031",
"state": "NY"
},
"receiveEmail": "no",
"secondaryAddresses": {
"Work": {
"lastName": "Anderson",
"firstName": "Kim",
"country": "US",
"phoneNumber": "212-555-2150",
"address2": null,
"city": "Buffalo",
"address1": "451 Brooks Ave",
"postalCode": "14201",
"county": null,
"repositoryId": "se-970031",
"state": "NY"
},
"Mom' s house": {
"lastName": "Anderson",
"firstName": "Dolores",
"country": "US",
"phoneNumber": "212-555-4321",
"address2": null,
"city": "Dewitt",
"address1": "41 Wexford Rd ",
"postalCode": "13214",
"county": null,
"repositoryId": "se-140010",
"state": "NY"
},
"Home": {
"lastName": "dd",
"firstName": "sdf",
"country": "US",
"phoneNumber": "1231231231",
"address2": "f",
"city": "f",
"address1": "dd",
"postalCode": "36123",
"county": null,
"repositoryId": "se-980031",
"state": "AL"
}
},
"contactShippingAddress": {
"lastName": "dd",
"firstName": "sdf",
"country": "US",
"phoneNumber": "1231231231",
"address2": "f",
"city": "f",
"address1": "dd",
"postalCode": "36123",
"county": null,
"repositoryId": "se-980031",
"state": "AL"
},
"parentOrganization": {
"name": "Oracle India Pvt Ltd",
"repositoryId": "oracle",
"id": "oracle"
},
"firstName": "James",
"profileType": "b2b_user",
"repositoryId": "120099",
"shippingAddress": {
"lastName": "Butt",
"firstName": "James",
"country": "United States",
"phoneNumber": "504-845-1427",
"address2": "",
"city": "New Orleans",
"address1": "6649 N Blue Gum St",
"postalCode": "70116",
"county": "Orleans",
"repositoryId": "140010",
"state": "Los Angeles"
},
"id": "120099",
"email": "jbutt@gmail.com",
"daytimeTelephoneNumber": "",
"shippingAddresses": [
{
"lastName": "Anderson",
"country": "United States",
"address3": "",
"address2": "",
"city": "Syracuse",
"prefix": "",
"address1": "21 Cedar Ave",
"postalCode": "13202",
"jobTitle": "",
"companyName": "",
"county": "",
"isDefaultAddress": false,
"suffix": "",
"selectedCountry": "US",
"firstName": "Kim",
"phoneNumber": "212-555-1977",
"faxNumber": "",
"middleName": "",
"state": "New York",
"selectedState": "NY",
"state_ISOCode": "US-NY"
},
{
"lastName": "Butt",
"country": "United States",
"address3": "",
"address2": "",
"city": "New Orleans",
"prefix": "",
"address1": "6649 N Blue Gum St",
"postalCode": "70116",
"jobTitle": "",
"companyName": "",
"county": "Orleans",
"isDefaultAddress": true,
"suffix": "",
"selectedCountry": "US",
"firstName": "James",
"phoneNumber": "504-845-1427",
"faxNumber": "",
"middleName": "",
"state": "Los Angeles",
"selectedState": "LA",
"state_ISOCode": "US-LA"
}
]
},
"profileComments": [
{
"repositoryId": "100002",
"comment": "Item not received.",
"creationDate": "2014-06-25 01:50:28.0"
},
{
"repositoryId": "100001",
"comment": "Issue with shipping address.",
"creationDate": "2014-06-25 01:50:20.0"
}
],
"hasIncompleteOrder": false
}