younifyd
Menu

Get Customer Product Lists

Get Customer Product Lists

GET/organizations/{organizationId}/customers/{customerId}/product-lists

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Customer Product Lists action (under Shopper Customers).
  3. Fill in the fields below, then reference the result from later steps as {{getCustomerProductLists.response.data}}.

Request

Path parameters

customerIdstringrequired

The customer ID.

organizationIdstringrequired

An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).

Query parameters

siteIdstringrequired

The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.

Response

Returns 200 with an object. Read it in later steps with {{getCustomerProductLists.response.data.<field>}}.

dataarray<object>

The customer product lists.

coRegistrantany

The coregistrant of this product list.

creationDatestring (date-time)

Returns the value of attribute 'creationDate'.

currentShippingAddressInfoany

The resource link to the current shipping address of this customer product list.

customerProductListItemsarray<object>8 fields

The list of customer product list items.

descriptionstring

The description of this product list.

eventany

The event of this product list.

idstring

The ID of this product list.

lastModifiedstring (date-time)

Returns the value of attribute 'lastModified'.

namestring

The name of this product list.

postEventShippingAddressInfoany

The resource link to the post event shipping address of this customer product list.

productListShippingAddressany

The abbreviated shipping address of this product list representing what an anonymous user can see.

publicboolean

Indicates whether the owner made this product list available for access by other customers.

registrantany

The registrant of this product list.

shippingAddressInfoany

The resource link to the shipping address of this customer product list.

typestring

The type of the product list.

One ofwish_listgift_registryshopping_listcustom_1custom_2custom_3

json
{
  "data": [
    {
      "coRegistrant": null,
      "creationDate": "9999-12-31T00:00:00.0Z",
      "currentShippingAddressInfo": null,
      "customerProductListItems": [
        {
          "priority": 1,
          "public": true,
          "quantity": 2,
          "id": "Main Product",
          "product": null,
          "productId": "Toaster",
          "purchasedQuantity": 1,
          "type": "product"
        }
      ],
      "description": "My Product List",
      "event": null,
      "id": "MyList",
      "lastModified": "9999-12-31T00:00:00.0Z",
      "name": "Danny's Product List",
      "postEventShippingAddressInfo": null,
      "productListShippingAddress": null,
      "public": true
    }
  ]
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.