addProfileAddress

post

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

Add profile address for a shopper. Any B2C user can add profile address. The B2B user needs to have profileAddressManager role in the current organization.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : addProfileAddress_request
Type: object
Show Source
Nested Schema : address
Type: object
The address object of the profile
Show Source
Nested Schema : dynamicProperty
Type: object
The value of the dynamic Property
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : addProfileAddress_response
Type: object
Show Source
Nested Schema : address
Type: object
The address object of the profile
Show Source
Example Response (application/json)
{
    "address":{
        "country":"US",
        "phoneNumber":"907-385-4412",
        "address2":"",
        "city":"Anchorage",
        "address1":"639 Main St",
        "postalCode":"99501",
        "companyName":"National Discount Auto Parts",
        "repositoryId":"210026",
        "state":"AZ"
    },
    "addressType":"Addr3ess313333312-Profile"
}

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| |------------------|------------------| |22031|Internal error during get profile| |22032|Error occurred due to invalid data| |22033|User is not logged in.| |22000|The profile id passes is null or empty.| |22001|Internal error while getting the profile.| |22002|No profile found with the given id.| |23005|Invalid phone number is specified| |23007|No country is specified| |23008|Postal code is not specified| |23010|City is not specified| |23011|Address line 1 not specified| |100077|One of the dynamic properties is not writable by the Agent user|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top