All endpoints require the Authorization: Bearer {access_token} header and return application/json. Build the URLs as {BASE_URL} + the indicated path.
GET {BASE_URL}/api/v2/shopping-lists/
Returns, paginated, all the recommendations for your organization's domain.
<aside> âšī¸
This endpoint uses pagination with a fixed size of 500 records; the limit parameter does not apply here. Go through the results with page.
</aside>
GET {BASE_URL}/api/v2/shopping-lists/{commerceId}/lists/
| Path parameter | Description |
|---|---|
commerceId |
Commerce identifier in YOM. |
GET {BASE_URL}/api/v2/shopping-lists/{commerceId}/lists/{id}
| Path parameter | Description |
|---|---|
commerceId |
Commerce identifier. |
id |
Shopping list identifier. |
These apply to the listing endpoints (list all recommendations and recommendations for a commerce):
| Parameter | Type | Default | Description |
|---|---|---|---|
page |
integer | 1 |
Page number. |
limit |
integer | 10 |
Records per page. Applies only to the per-commerce endpoint (maximum 100). The domain endpoint uses a fixed size of 500. |
sort |
string | -updatedAt |
Sort field. Prefix - = descending (e.g. -updatedAt). |
type |
string | â | Filters by list type (e.g. recommendation). |
q |
string | â | Search by name (name). |
populate |
boolean | false |
Enriches the response by resolving commerce and product references. |
Example â cURL:
curl "{BASE_URL}/api/v2/shopping-lists/{commerceId}/lists/?limit=100&page=1&sort=-updatedAt" \
-H "Authorization: Bearer {access_token}"
Adding ?populate=true enriches the response by resolving references directly. It resolves:
commerceId.contact.externalId, commerceId.channel).sku of each item.<aside> âšī¸
</aside>