getMember
get
/ccagent/v1/organizationMembers/{id}
Get Member. This operation is used to get the profile information of a customer that is associated to an account from Oracle Commerce Cloud. Takes X-CCAgentContext header which is a JSON object with 'shopperProfileId' as a property. If 'shopperProfileId' is not provided, it is considered as an anonymous profile. Optionally takes the x-ccasset-language header to get translated content in another language. Also it takes X-CCOrganization header which is a JSON field with organization ID as value. If this header is not provided, then the endPoint will consider first active organization as the current organization. This endpoint is different from getProfile endpoint. Certain additional details like hasIncompleteOrder property, etc which are necessary for creating or editing orders are returned by getProfile endpoint, whereas only profile and account specific details are returned by getMember endpoint.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueThe ID of the requested shopper profile.
Header Parameters
- X-CCAgentContext
-
Type:
stringRequired:trueThe Agent Context is a JSON object with shopperProfileId as a property.- X-CCAsset-Language
Type:stringThe asset language of the request. E.g., en,de,fr_CA.- X-CCOrganization
Type:stringThe organization Id associated with the shopper profile- X-CCSite
Type:stringThe site Id to retrieve the site specific shopper profile propertiesResponse
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : getMember_response- active
-
Type:
booleanThis is active status of the profile should be true or false. - derivedOrderPriceLimit
-
Type:
numberIts order limit value for the profile, if order limit is more than this value the approval is needed for the order -
Type:
stringThe email address of the profile. - firstName
-
Type:
stringThe first name of the profile. - id
-
Type:
stringThe ID of the shopper profile. - lastName
-
Type:
stringThe last name of the profile. - locale
-
Type:
stringThe locale of the request/response. - parentOrganization
-
Type:
objectparentOrganizationAdditional Properties Allowed:This attribute is added for 'Account-Based Commerce', this is required only in case of 'Account-Based Commerce', this is the id of organization to which user is associated - profileType
-
Type:
stringThis attribute is added for account-based commerce, It's value is 'b2b_user'. - receiveEmail
-
Type:
stringThis is an email marketing flag which indicates to notify user by mail or not, can be yes or no. - repositoryId
-
Type:
stringThe repository id of the profile. - roles
-
Type:
arrayrolesAdditional Properties Allowed:List of user roles
Nested Schema : parentOrganizationType:objectThis attribute is added for 'Account-Based Commerce', this is required only in case of 'Account-Based Commerce', this is the id of organization to which user is associated- active
-
Type:
booleanThis is active status of the profile should be true or false. - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:Default billing address of the organization - description
-
Type:
stringDescription of the Organization - id
-
Type:
stringthe id of the parent organization - name
-
Type:
stringthe name of the parent organization - repositoryId
-
Type:
stringthe id of the parent organization - secondaryAddresses
-
Type:
objectsecondaryAddressesAdditional Properties Allowed:List of shipping addresses associated with the profile. - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:Default shipping address of the organization
Nested Schema : rolesNested Schema : billingAddressType:objectDefault billing address of the organization- repositoryId
-
Type:
stringthe id of the billing address
Nested Schema : secondaryAddressesType:objectList of shipping addresses associated with the profile.- AddressType
-
Type:
objectAddressTypeAdditional Properties Allowed:Address type represents nick-name of address.
Nested Schema : shippingAddressType:objectDefault shipping address of the organization- repositoryId
-
Type:
stringthe id of the shipping address
Nested Schema : AddressTypeType:objectAddress type represents nick-name of address.- repositoryId
-
Type:
stringRepository ID of the shipping address
Nested Schema : itemsType:object- function
-
Type:
stringThe function of the role which can be admin or buyer. - repositoryId
-
Type:
stringThe repository id of the role.
Example application/json
{ "lastName":"Blooming", "dynamicProperties":[ ], "roles":[ { "function":"admin", "relativeTo":"or-100001", "repositoryId":"100001" }, { "function":"buyer", "relativeTo":"or-100001", "repositoryId":"100002" }, { "function":"buyer", "relativeTo":"or-100002", "repositoryId":"100004" } ], "receiveEmail":"yes", "active":true, "locale":"en", "parentOrganization":{ "approvalRequired":true, "repositoryId":"or-100001", "name":"National Discount Auto Parts", "active":true, "description":null, "shippingAddress":{ "repositoryId":"ci-110024" }, "secondaryAddresses":{ "Address2":{ "repositoryId":"ci-110024" }, "Address1":{ "repositoryId":"ci-110023" } }, "billingAddress":{ "repositoryId":"ci-110024" }, "id":"or-100001", "orderPriceLimit":50 }, "orderPriceLimit":50, "firstName":"Ron", "profileType":"b2b_user", "repositoryId":"bb-110023", "links":[ { "rel":"self", "href":"ccagent/v1/organizationMembers/bb-110023" } ], "id":"bb-110023", "secondaryOrganizations":[ { "approvalRequired":false, "repositoryId":"or-100002", "name":"US Motor Works, Inc.", "active":true, "description":"US Motor Works, Inc.", "shippingAddress":{ "repositoryId":"ci-110029" }, "secondaryAddresses":{ "Address1":{ "repositoryId":"ci-110029" } }, "billingAddress":{ "repositoryId":"ci-110029" }, "id":"or-100002", "orderPriceLimit":null } ], "email":"ron@example.com" }Default ResponseThe 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| |------------------|------------------| |22010|If the profile id passed is not associated to the account of the profileId passed in the AgentContext header.| |22000|If the profile id passed 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| |82005000|If there is an error while processing the AgentContext header. Possible reasons include invalid profileId, incorrect JSON format or other errors| |89103|If no shopperProfileId is passed in the AgentContext header| |89102|If the shopperProfile passed in the AgentContext header or the associated account is inactive| |89101|If the shopperProfile passed in the AgentContext header is not an administrator for the account| |22007|If the profile id passed is not associated to the account of the profileId passed in the AgentContext header.|BodyRoot Schema : errorModelType: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 : errorsNested Schema : itemsType: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": "Blooming", "dynamicProperties": [], "roles": [ { "function": "admin", "relativeTo": "or-100001", "repositoryId": "100001" }, { "function": "buyer", "relativeTo": "or-100001", "repositoryId": "100002" }, { "function": "buyer", "relativeTo": "or-100002", "repositoryId": "100004" } ], "receiveEmail": "yes", "active": true, "locale": "en", "parentOrganization": { "approvalRequired": true, "repositoryId": "or-100001", "name": "National Discount Auto Parts", "active": true, "description": null, "shippingAddress": {"repositoryId": "ci-110024"}, "secondaryAddresses": { "Address2": {"repositoryId": "ci-110024"}, "Address1": {"repositoryId": "ci-110023"} }, "billingAddress": {"repositoryId": "ci-110024"}, "id": "or-100001", "orderPriceLimit": 50 }, "orderPriceLimit": 50, "firstName": "Ron", "profileType": "b2b_user", "repositoryId": "bb-110023", "links": [{ "rel": "self", "href": "ccagent/v1/organizationMembers/bb-110023" }], "id": "bb-110023", "secondaryOrganizations": [{ "approvalRequired": false, "repositoryId": "or-100002", "name": "US Motor Works, Inc.", "active": true, "description": "US Motor Works, Inc.", "shippingAddress": {"repositoryId": "ci-110029"}, "secondaryAddresses": {"Address1": {"repositoryId": "ci-110029"}}, "billingAddress": {"repositoryId": "ci-110029"}, "id": "or-100002", "orderPriceLimit": null }], "email": "ron@example.com" }