List Collection Products
#
Method#
/catalogs/collection-products/{{catalog-owner-phone}}#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptUsing this method, you will be able to list the products that are part of a collection in your catalog.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
collectionId | string | Collection ID |
#
OptionalAttributes | Type | Description |
---|---|---|
nextCursor | string | Token used for pagination of records |
#
Request Params#
Example URLMethod
#
Response#
200Attributes | Type | Description |
---|---|---|
nextCursor | string or null | Token that defines the records of the next request |
products | array object | List with product data |
Object (products)
Attributes | Type | Description |
---|---|---|
id | string | Product ID |
name | string | Product name |
description | string | Product description |
url | string | Product URL |
price | string | Product price |
currency | string | Currency type |
isHidden | boolean | Hidden product |
availability | string | Attribute to determine product availability |
retailerId | string | Retailer ID |
images | string | Product image link |
quantity | string | Product quantity attribute |
Example
#
405In this case, ensure that you are sending the method specification correctly, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending in the request headers; in most cases, it should be "application/json".