List customer accounts details for the provided organization id.

get

/ccstore/v1/organizations/current/customerAccounts

List customer accounts details for the provided organization id.

Request

Supported Media Types
Query Parameters
  • This is the field to determine number of records to be fetched per REST call.
  • This field determines the offset/starting index from which data to be fetched.
  • SCIM query to filter on the customer accounts. It does not support properties: defaultShipTo, defaultBillTo and repositoryId.
  • This is the field to provide sort on customer accounts. It does not support properties: defaultShipTo, defaultBillTo and repositoryId.
  • Tells whether to include total and totalResults in the SCIM query.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listCustomerAccounts_response
Type: object
Show Source
Nested Schema : invalidItemIds
Type: array
Invalid/Failed external Address Ids of the Customer Account's addresses which are not synced.
Show Source
Nested Schema : items
Type: array
List of customer account details for given organization.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : defaultBillTo
Type: object
Default bill-to address for the Customer Account
Show Source
Nested Schema : defaultShipTo
Type: object
Default ship-to address for the Customer Account
Show Source
Nested Schema : types
Type: array
The types tagged to the address
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : types
Type: array
The types tagged to the address
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "items":[
        {
            "defaultShipTo":{
                "country":"US",
                "address3":null,
                "address2":null,
                "city":"St Cloud",
                "externalNumber":"4831",
                "address1":"933 Blackberry Creek Ave",
                "addressType":[
                    {
                        "displayName":"Shipping",
                        "repositoryId":"SHIPPING",
                        "id":"SHIPPING"
                    }
                ],
                "postalCode":"34769",
                "county":"Osceola",
                "externalId":"12356",
                "siteUseId":null,
                "formattedAddress":"933 Blackberry Creek Ave,ST CLOUD, FL 34769",
                "repositoryId":"240016",
                "partyName":"Miller Manufacturing",
                "state":"FL",
                "id":"240016",
                "partyId":"1234",
                "partyNumber":"3456"
            },
            "repositoryId":"ca150002",
            "partyName":"Miller Manufacturing",
            "defaultBillTo":{
                "country":"US",
                "address3":null,
                "address2":null,
                "city":"St Cloud",
                "externalNumber":"4831",
                "address1":"933 Blackberry Creek Ave",
                "addressType":[
                    {
                        "displayName":"Billing",
                        "repositoryId":"BILLING",
                        "id":"BILLING"
                    }
                ],
                "postalCode":"34769",
                "county":"Osceola",
                "externalId":"12345",
                "accountId":"4564",
                "siteUseId":"5282",
                "formattedAddress":"933 Blackberry Creek Ave,ST CLOUD, FL 34769",
                "repositoryId":"240014",
                "partyName":"Miller Manufacturing",
                "state":"FL",
                "id":"240014",
                "partyId":"1234",
                "partyNumber":"3456"
            },
            "billingAccounts":[
                {
                    "accountId":"4564",
                    "accountName":"Miller Manufacturing",
                    "repositoryId":"ba10001",
                    "id":"ba10001",
                    "accountNumber":"2058"
                }
            ],
            "defaultBillingAccountId":"4564",
            "id":"ca150002",
            "partyId":"12747",
            "partyNumber":"10252"
        }
    ]
}

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| |------------------|------------------| |100193|Internal error occurred while fetching customer accounts| |100001|invalid organization Id|
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