getProfileAddress

get

/ccagent/v1/profiles/{id}/addresses/{addressId}

Get Profile Address specific to the customer profile based on the address Id

Request

Supported Media Types
  • application/json
Path Parameters
addressId
Type: string
Required: true
The address Id associated to profile.
id
Type: string
Required: true
The customer profile id.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getProfileAddress_response
Nested Schema : address
Type: object
The address object of the profile
Example application/json

{
    "address":{
        "firstName":"tr",
        "lastName":"et",
        "country":"US",
        "phoneNumber":"631-748-6479",
        "address2":"et",
        "city":"te",
        "address1":"et",
        "postalCode":"35005",
        "repositoryId":"130023",
        "state":"AL"
    },
    "addressType":"tertr",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccagentui/v1/profiles/se-570031/addresses/130023"
        }
    ]
}
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.| |22038|Invalid Address ID : address is not associated with user profile.|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "address": {
    "firstName": "tr",
    "lastName": "et",
    "country": "US",
    "phoneNumber": "631-748-6479",
    "address2": "et",
    "city": "te",
    "address1": "et",
    "postalCode": "35005",
    "repositoryId": "130023",
    "state": "AL"
  },
  "addressType": "tertr",
  "links": [{
    "rel": "self",
    "href": "http://localhost:9080/ccagentui/v1/profiles/se-570031/addresses/130023"
  }]
}