getCurrentProfile
get
/ccstore/v1/profiles/current
Get Current Profile. Get the current profile. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getCurrentProfile_response
- contactBillingAddress
-
Type:
objectcontactBillingAddressAdditional Properties Allowed:Default billing address of the b2b profile. - contactShippingAddress
-
Type:
objectcontactShippingAddressAdditional Properties Allowed:Default shipping address of the b2b profile. - currentOrganization
-
Type:
objectcurrentOrganizationAdditional Properties Allowed:current organization of the logged in b2b user. - dateOfBirth
-
Type:
stringThe date of birth of the profile user. - daytimeTelephoneNumber
-
Type:
stringThe phone Number of the profile. - dynamicProperties
-
Type:
arraydynamicPropertiesAdditional Properties Allowed:Read-only list of dynamic properties associated with profile along with meta-data. -
Type:
stringThe email address of the profile. - firstName
-
Type:
stringThe first name of the profile. - gender
-
Type:
stringThe gender of the profile user. - id
-
Type:
stringThe ID of the profile to retrieve. - lastName
-
Type:
stringThe last name of the profile. - parentOrganization
-
Type:
objectparentOrganizationAdditional Properties Allowed:The parent organisation information. - receiveEmail
-
Type:
stringThis is email marketing flag. Can be yes or no. - repositoryId
-
Type:
stringThe repository ID of the profile. - secondaryAddresses
-
Type:
arraysecondaryAddressesAdditional Properties Allowed:List of addresses associated with an Organization that profile belongs to. - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:Default shipping address of the profile (Deprecated, please use 'shippingAddresses' instead). - shippingAddresses
-
Type:
arrayshippingAddressesAdditional Properties Allowed:List of shipping addresses associated with profile.
Nested Schema : contactBillingAddress
Type:
objectDefault billing address of the b2b profile.
- address1
-
Type:
stringthe address1 of the address - address2
-
Type:
stringthe address2 of the address - address3
-
Type:
stringthe address3 of the address - city
-
Type:
stringthe city of the address - companyName
-
Type:
stringthe company name of the address - country
-
Type:
stringthe country of the address - phoneNumber
-
Type:
stringthe phone Number of the address - postalCode
-
Type:
stringthe postal Code of the address - prefix
-
Type:
stringthe prefix of the address - repositoryId
-
Type:
stringRepository Id of the address - state
-
Type:
stringthe state of the address
Nested Schema : contactShippingAddress
Type:
objectDefault shipping address of the b2b profile.
- address1
-
Type:
stringthe address1 of the address - address2
-
Type:
stringthe address2 of the address - address3
-
Type:
stringthe address3 of the address - city
-
Type:
stringthe city of the address - companyName
-
Type:
stringthe company name of the address - country
-
Type:
stringthe country of the address - phoneNumber
-
Type:
stringthe phone Number of the address - postalCode
-
Type:
stringthe postal Code of the address - prefix
-
Type:
stringthe prefix of the address - repositoryId
-
Type:
stringRepository Id of the address - state
-
Type:
stringthe state of the address
Nested Schema : currentOrganization
Type:
objectcurrent organization of the logged in b2b user.
- delegateApprovalManagement
-
Type:
booleanThe delegateApprovalManagement of user's current organization. - derivedDescription
-
Type:
stringThe derivedDescription attribute of user's current organization. - derivedDunsNumber
-
Type:
stringThe derivedDunsNumber attribute of user's current organization. - derivedOrganizationLogo
-
Type:
stringThe derivedOrganizationLogo attribute of user's current organization. - derivedTaxReferenceNumber
-
Type:
stringThe derivedTaxReferenceNumber attribute of user's current organization. - derivedType
-
Type:
stringThe derivedType attribute of user's current organization. - derivedUniqueId
-
Type:
stringThe derivedUniqueId attribute of user's current organization. - derivedVatReferenceNumber
-
Type:
stringThe derivedVatReferenceNumber attribute of user's current organization. - description
-
Type:
stringThe description of user's current organization. - name
-
Type:
stringThe name of user's current organization. - organizationLogo
-
Type:
stringThe relative path of user's current organization's logo. - organizationLogoURL
-
Type:
stringThe path of user's current organization's logo. - repositoryId
-
Type:
stringThe repositoryId of user's current organization.
Nested Schema : dynamicProperties
Nested Schema : parentOrganization
Type:
objectThe parent organisation information.
- description
-
Type:
stringThe description of the organisation. - name
-
Type:
stringThe name of the organisation. - organizationLogoURL
-
Type:
stringThe organisation logo URL. - repositoryId
-
Type:
stringThe organisation repository Id.
Nested Schema : secondaryAddresses
Nested Schema : shippingAddress
Type:
objectDefault shipping address of the profile (Deprecated, please use 'shippingAddresses' instead).
- address1
-
Type:
stringThe address line 1 of the shipping address. - address2
-
Type:
stringThe address line 2 of the shipping address. - address3
-
Type:
stringThe address line 3 of the shipping address. - alias
-
Type:
stringThe alias of the shipping address. - city
-
Type:
stringThe city of the shipping address. - companyName
-
Type:
stringThe company name of the shipping address. - country
-
Type:
stringThe country code of the shipping address. - county
-
Type:
stringThe county of the shipping address. - firstName
-
Type:
stringThe first name of the shipping address. - lastName
-
Type:
stringThe last name of the shipping address. - phoneNumber
-
Type:
stringThe phone Number of the shipping address. - postalCode
-
Type:
stringThe postal Code of the shipping address. - prefix
-
Type:
stringThe prefix of the shipping address. - repositoryId
-
Type:
stringThe id of the shipping address. - state
-
Type:
stringThe state code of the shipping address.
Nested Schema : shippingAddresses
Nested Schema : items
Type:
object- default
-
Type:
stringThe default value of the dynamic property. - id
-
Type:
stringThe ID of the dynamic property. - label
-
Type:
stringThe label of the dynamic property. - length
-
Type:
numberThe length attribute of the dynamic property. - required
-
Type:
booleanThe required attribute of the dynamic property. - type
-
Type:
stringThe type of the dynamic property. Supported types are boolean, date, float, string, timestamp, enumerated, big string. - uiEditorType
-
Type:
stringThe uiEditorType attribute of the dynamic property. - value
-
Type:
stringThe value of the dynamic property.
Nested Schema : items
Type:
object- address1
-
Type:
stringThe address1 of the secondary address - address2
-
Type:
stringThe address2 of the secondary address - address3
-
Type:
stringThe address3 of the secondary address - city
-
Type:
stringThe city of the secondary address - companyName
-
Type:
stringCompany name of the secondary address - country
-
Type:
stringThe country of the address - phoneNumber
-
Type:
stringPhone Number of the address - postalCode
-
Type:
stringPostal Code of the address - prefix
-
Type:
stringThe prefix of the address - repositoryId
-
Type:
stringRepository Id of the address - state
-
Type:
stringThe State of the address
Nested Schema : items
Type:
object- address1
-
Type:
stringThe address line 1 of the shipping address. - address2
-
Type:
stringThe address line 2 of the shipping address. - address3
-
Type:
stringThe address line 3 of the shipping address. - alias
-
Type:
stringThe alias of the shipping address. - city
-
Type:
stringThe city of the shipping address. - companyName
-
Type:
stringThe company name of the shipping address. - country
-
Type:
stringThe country code of the shipping address. - countryName
-
Type:
stringThe display name for the country of the shipping address - county
-
Type:
stringThe county of the shipping address. - firstName
-
Type:
stringThe first name of the shipping address. - lastName
-
Type:
stringThe last name of the shipping address. - phoneNumber
-
Type:
stringThe phone Number of the shipping address. - postalCode
-
Type:
stringThe postal Code of the shipping address. - prefix
-
Type:
stringThe prefix of the address - regionName
-
Type:
stringThe display name for the state of the shipping address - repositoryId
-
Type:
stringThe ID of the shipping address. - state
-
Type:
stringThe state code of the shipping address.
Example application/json
{
"lastName":"Anderson",
"gender":"female",
"contactBillingAddress":{
"country":"US",
"phoneNumber":"973-974-1234",
"address3":"block 3",
"address2":"Street 2",
"city":"Montgomery",
"address1":"600 Dexter Avenue",
"prefix":"",
"postalCode":"36130",
"companyName":"Oracle",
"repositoryId":"180003",
"state":"AL"
},
"receiveEmail":"yes",
"dateOfBirth":"null",
"secondaryAddresses":{
"Office Address":{
"country":"US",
"address3":"block 3",
"address2":"Street 2",
"city":"Montgomery",
"address1":"600 Dexter Avenue",
"prefix":"",
"postalCode":"36130",
"companyName":"Oracle",
"jobTitle":null,
"suffix":null,
"phoneNumber":"973-974-1234",
"repositoryId":"180003",
"faxNumber":null,
"middleName":null,
"state":"AL"
}
},
"contactShippingAddress":{
"country":"US",
"address3":"block 3",
"address2":"Street 2",
"city":"Montgomery",
"address1":"600 Dexter Avenue",
"prefix":"",
"postalCode":"36130",
"companyName":"Oracle",
"jobTitle":null,
"suffix":null,
"phoneNumber":"973-974-1234",
"repositoryId":"180003",
"faxNumber":null,
"middleName":null,
"state":"AL"
},
"firstName":"Kim",
"repositoryId":"110033",
"currentOrganization":{
"derivedDunsNumber":"213403478",
"derivedTaxReferenceNumber":"901-73-7073",
"organizationLogo":"/general/city-background.jpg",
"description":"US Motor Works - US Division",
"delegateApprovalManagement":false,
"derivedOrganizationLogo":"/general/city-background.jpg",
"derivedUniqueId":null,
"derivedType":"division",
"organizationLogoURL":"http://localhost:8080/file/v4998724338791971926/general/city-background.jpg",
"derivedVatReferenceNumber":null,
"repositoryId":"or-100003",
"name":"US Motor Works - US Division",
"derivedDescription":"US Motor Works - US Division"
},
"id":"se-570031",
"email":"kim@example.com",
"daytimeTelephoneNumber":"212-555-1977",
"shippingAddresses":[
{
"lastName":"Anderson",
"country":"US",
"address3":"",
"address2":"",
"city":"Montgomery",
"address1":"21 Cedar Ave",
"prefix":"",
"postalCode":"13202",
"regionName":"Georgia",
"companyName":"",
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"repositoryId":"se-980031",
"alias":"Home",
"faxNumber":null,
"middleName":null,
"state":"NY",
"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|
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:
{
"lastName": "Anderson",
"gender": "female",
"contactBillingAddress": {
"country": "US",
"phoneNumber": "973-974-1234",
"address3": "block 3",
"address2": "Street 2",
"city": "Montgomery",
"address1": "600 Dexter Avenue",
"prefix": "",
"postalCode": "36130",
"companyName": "Oracle",
"repositoryId": "180003",
"state": "AL"
},
"receiveEmail": "yes",
"dateOfBirth": "null",
"secondaryAddresses": {"Office Address": {
"country": "US",
"address3": "block 3",
"address2": "Street 2",
"city": "Montgomery",
"address1": "600 Dexter Avenue",
"prefix": "",
"postalCode": "36130",
"companyName": "Oracle",
"jobTitle": null,
"suffix": null,
"phoneNumber": "973-974-1234",
"repositoryId": "180003",
"faxNumber": null,
"middleName": null,
"state": "AL"
}},
"contactShippingAddress": {
"country": "US",
"address3": "block 3",
"address2": "Street 2",
"city": "Montgomery",
"address1": "600 Dexter Avenue",
"prefix": "",
"postalCode": "36130",
"companyName": "Oracle",
"jobTitle": null,
"suffix": null,
"phoneNumber": "973-974-1234",
"repositoryId": "180003",
"faxNumber": null,
"middleName": null,
"state": "AL"
},
"firstName": "Kim",
"repositoryId": "110033",
"currentOrganization": {
"derivedDunsNumber": "213403478",
"derivedTaxReferenceNumber": "901-73-7073",
"organizationLogo": "/general/city-background.jpg",
"description": "US Motor Works - US Division",
"delegateApprovalManagement": false,
"derivedOrganizationLogo": "/general/city-background.jpg",
"derivedUniqueId": null,
"derivedType": "division",
"organizationLogoURL": "http://localhost:8080/file/v4998724338791971926/general/city-background.jpg",
"derivedVatReferenceNumber": null,
"repositoryId": "or-100003",
"name": "US Motor Works - US Division",
"derivedDescription": "US Motor Works - US Division"
},
"id": "se-570031",
"email": "kim@example.com",
"daytimeTelephoneNumber": "212-555-1977",
"shippingAddresses": [{
"lastName": "Anderson",
"country": "US",
"address3": "",
"address2": "",
"city": "Montgomery",
"address1": "21 Cedar Ave",
"prefix": "",
"postalCode": "13202",
"regionName": "Georgia",
"companyName": "",
"jobTitle": null,
"county": null,
"suffix": null,
"firstName": "Kim",
"phoneNumber": "212-555-1977",
"repositoryId": "se-980031",
"alias": "Home",
"faxNumber": null,
"middleName": null,
"state": "NY",
"countryName": "United States"
}]
}