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:
string
The 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:
object
contactBillingAddressAdditional Properties Allowed:Default billing address of the b2b profile. - contactShippingAddress
-
Type:
object
contactShippingAddressAdditional Properties Allowed:Default shipping address of the b2b profile. - currentOrganization
-
Type:
object
currentOrganizationAdditional Properties Allowed:current organization of the logged in b2b user. - dateOfBirth
-
Type:
string
The date of birth of the profile user. - daytimeTelephoneNumber
-
Type:
string
The phone Number of the profile. - dynamicProperties
-
Type:
array
dynamicPropertiesAdditional Properties Allowed:Read-only list of dynamic properties associated with profile along with meta-data. -
Type:
string
The email address of the profile. - firstName
-
Type:
string
The first name of the profile. - gender
-
Type:
string
The gender of the profile user. - id
-
Type:
string
The ID of the profile to retrieve. - lastName
-
Type:
string
The last name of the profile. - parentOrganization
-
Type:
object
parentOrganizationAdditional Properties Allowed:The parent organisation information. - receiveEmail
-
Type:
string
This is email marketing flag. Can be yes or no. - repositoryId
-
Type:
string
The repository ID of the profile. - secondaryAddresses
-
Type:
array
secondaryAddressesAdditional Properties Allowed:List of addresses associated with an Organization that profile belongs to. - shippingAddress
-
Type:
object
shippingAddressAdditional Properties Allowed:Default shipping address of the profile (Deprecated, please use 'shippingAddresses' instead). - shippingAddresses
-
Type:
array
shippingAddressesAdditional Properties Allowed:List of shipping addresses associated with profile.
Nested Schema : contactBillingAddress
Type:
object
Default billing address of the b2b profile.
- address1
-
Type:
string
the address1 of the address - address2
-
Type:
string
the address2 of the address - address3
-
Type:
string
the address3 of the address - city
-
Type:
string
the city of the address - companyName
-
Type:
string
the company name of the address - country
-
Type:
string
the country of the address - phoneNumber
-
Type:
string
the phone Number of the address - postalCode
-
Type:
string
the postal Code of the address - prefix
-
Type:
string
the prefix of the address - repositoryId
-
Type:
string
Repository Id of the address - state
-
Type:
string
the state of the address
Nested Schema : contactShippingAddress
Type:
object
Default shipping address of the b2b profile.
- address1
-
Type:
string
the address1 of the address - address2
-
Type:
string
the address2 of the address - address3
-
Type:
string
the address3 of the address - city
-
Type:
string
the city of the address - companyName
-
Type:
string
the company name of the address - country
-
Type:
string
the country of the address - phoneNumber
-
Type:
string
the phone Number of the address - postalCode
-
Type:
string
the postal Code of the address - prefix
-
Type:
string
the prefix of the address - repositoryId
-
Type:
string
Repository Id of the address - state
-
Type:
string
the state of the address
Nested Schema : currentOrganization
Type:
object
current organization of the logged in b2b user.
- delegateApprovalManagement
-
Type:
boolean
The delegateApprovalManagement of user's current organization. - derivedDescription
-
Type:
string
The derivedDescription attribute of user's current organization. - derivedDunsNumber
-
Type:
string
The derivedDunsNumber attribute of user's current organization. - derivedOrganizationLogo
-
Type:
string
The derivedOrganizationLogo attribute of user's current organization. - derivedTaxReferenceNumber
-
Type:
string
The derivedTaxReferenceNumber attribute of user's current organization. - derivedType
-
Type:
string
The derivedType attribute of user's current organization. - derivedUniqueId
-
Type:
string
The derivedUniqueId attribute of user's current organization. - derivedVatReferenceNumber
-
Type:
string
The derivedVatReferenceNumber attribute of user's current organization. - description
-
Type:
string
The description of user's current organization. - name
-
Type:
string
The name of user's current organization. - organizationLogo
-
Type:
string
The relative path of user's current organization's logo. - organizationLogoURL
-
Type:
string
The path of user's current organization's logo. - repositoryId
-
Type:
string
The repositoryId of user's current organization.
Nested Schema : dynamicProperties
Nested Schema : parentOrganization
Type:
object
The parent organisation information.
- description
-
Type:
string
The description of the organisation. - name
-
Type:
string
The name of the organisation. - organizationLogoURL
-
Type:
string
The organisation logo URL. - repositoryId
-
Type:
string
The organisation repository Id.
Nested Schema : secondaryAddresses
Nested Schema : shippingAddress
Type:
object
Default shipping address of the profile (Deprecated, please use 'shippingAddresses' instead).
- address1
-
Type:
string
The address line 1 of the shipping address. - address2
-
Type:
string
The address line 2 of the shipping address. - address3
-
Type:
string
The address line 3 of the shipping address. - alias
-
Type:
string
The alias of the shipping address. - city
-
Type:
string
The city of the shipping address. - companyName
-
Type:
string
The company name of the shipping address. - country
-
Type:
string
The country code of the shipping address. - county
-
Type:
string
The county of the shipping address. - firstName
-
Type:
string
The first name of the shipping address. - lastName
-
Type:
string
The last name of the shipping address. - phoneNumber
-
Type:
string
The phone Number of the shipping address. - postalCode
-
Type:
string
The postal Code of the shipping address. - prefix
-
Type:
string
The prefix of the shipping address. - repositoryId
-
Type:
string
The id of the shipping address. - state
-
Type:
string
The state code of the shipping address.
Nested Schema : shippingAddresses
Nested Schema : items
Type:
object
- default
-
Type:
string
The default value of the dynamic property. - id
-
Type:
string
The ID of the dynamic property. - label
-
Type:
string
The label of the dynamic property. - length
-
Type:
number
The length attribute of the dynamic property. - required
-
Type:
boolean
The required attribute of the dynamic property. - type
-
Type:
string
The type of the dynamic property. Supported types are boolean, date, float, string, timestamp, enumerated, big string. - uiEditorType
-
Type:
string
The uiEditorType attribute of the dynamic property. - value
-
Type:
string
The value of the dynamic property.
Nested Schema : items
Type:
object
- address1
-
Type:
string
The address1 of the secondary address - address2
-
Type:
string
The address2 of the secondary address - address3
-
Type:
string
The address3 of the secondary address - city
-
Type:
string
The city of the secondary address - companyName
-
Type:
string
Company name of the secondary address - country
-
Type:
string
The country of the address - phoneNumber
-
Type:
string
Phone Number of the address - postalCode
-
Type:
string
Postal Code of the address - prefix
-
Type:
string
The prefix of the address - repositoryId
-
Type:
string
Repository Id of the address - state
-
Type:
string
The State of the address
Nested Schema : items
Type:
object
- address1
-
Type:
string
The address line 1 of the shipping address. - address2
-
Type:
string
The address line 2 of the shipping address. - address3
-
Type:
string
The address line 3 of the shipping address. - alias
-
Type:
string
The alias of the shipping address. - city
-
Type:
string
The city of the shipping address. - companyName
-
Type:
string
The company name of the shipping address. - country
-
Type:
string
The country code of the shipping address. - countryName
-
Type:
string
The display name for the country of the shipping address - county
-
Type:
string
The county of the shipping address. - firstName
-
Type:
string
The first name of the shipping address. - lastName
-
Type:
string
The last name of the shipping address. - phoneNumber
-
Type:
string
The phone Number of the shipping address. - postalCode
-
Type:
string
The postal Code of the shipping address. - prefix
-
Type:
string
The prefix of the address - regionName
-
Type:
string
The display name for the state of the shipping address - repositoryId
-
Type:
string
The ID of the shipping address. - state
-
Type:
string
The 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:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The 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" }] }