listProfileAddresses
get
/ccstore/v1/profiles/current/addresses
Get list of addresses associated with the current profile.
Request
Supported Media Types
- application/json
Query Parameters
-
addressType(optional): string
Exact nick name to search.
-
limit(optional): string
This is the field to determine number of records to be fetched per REST call.
-
offset(optional): string
This field determines the offset/starting index from which data to be fetched.
-
q(optional): string
SCIM query to search on the address properties.
-
queryFormat(optional): string
queryFormat to search on the address properties. Possible values SCIM or null.
-
sort(optional): string
This field determines the sort order of the list to be fetched.
-
totalResults(optional): boolean
Tells whether to include total and totalResults in the SCIM query.By default the value is true
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listProfileAddresses_response
Type:
Show Source
object
-
items(optional):
array items
Addresses related properties
-
limit(optional):
integer
The batch size of the records to be fetched together.
-
offset(optional):
integer
The start index of the list of records to be fetched
-
sort(optional):
string
Sorting format
Nested Schema : items
Type:
Show Source
object
-
address(optional):
object address
The address object of the profile
-
addressType(optional):
string
The nickname for the address.
Nested Schema : address
Type:
object
The address object of the profile
Show Source
-
address1(optional):
string
address line 1 for the address
-
address2(optional):
string
Address line 2 for the address
-
address3(optional):
string
Address line 3 for the address
-
city(optional):
string
city for the address
-
companyName(optional):
string
companyName for the address. It is not mandatory for the profile addresses.
-
country(optional):
string
The country of the address
-
county(optional):
string
county for the address
-
externalAddressId(optional):
string
External address id
-
faxNumber(optional):
string
Fax number for this address.
-
firstName(optional):
string
The first name of the user for whom the address is created. This field can be null also
-
id(optional):
string
Id for this address.
-
jobTitle(optional):
string
Job title for this address.
-
lastName(optional):
string
The last name of the user for whom the address is created. This field can be null also
-
middleName(optional):
string
Middle name for this address.
-
phoneNumber(optional):
string
Phone number of the address
-
postalCode(optional):
string
postalCode for the address
-
prefix(optional):
string
Prefix for this address.
-
repositoryId(optional):
string
Unique Id for the address
-
state(optional):
string
state for the address
-
suffix(optional):
string
Suffix for this address.
-
types(optional):
array types
The types tagged to the address
Nested Schema : items
Type:
Show Source
object
-
displayName(optional):
string
The name of the address type
-
id(optional):
string
repository Id of the address type
-
repositroyId(optional):
string
repository Id of the address type
Example Response (application/json)
{
"total":2,
"totalResults":2,
"offset":0,
"limit":250,
"links":[
{
"rel":"self",
"href":"http://localhost:8080/ccstoreui/v1/profiles/current/addresses"
}
],
"items":[
{
"address":{
"country":"US",
"lastName":"Anderson",
"types":[
],
"address3":"null",
"city":"Syracuse",
"address2":"null",
"prefix":"null",
"address1":"21 Cedar Ave",
"postalCode":"13202",
"jobTitle":"null",
"companyName":"null",
"county":"null",
"suffix":"null",
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"repositoryId":"170236",
"faxNumber":"null",
"middleName":"null",
"state":"NY"
},
"addressType":"Home"
},
{
"address":{
"country":"US",
"lastName":"Anderson",
"types":[
],
"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"
}
]
}
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.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code