Get associated listings
const url = 'https://acme.mykreezalid.com/api/v1/collections/example/listings?by=handle';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://acme.mykreezalid.com/api/v1/collections/example/listings?by=handle' \ --header 'Authorization: Basic <credentials>'Get all listings associated with a specific collection or sub-collection
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The handle (code) of the collection or sub-collection, or its id with by=id
Query Parameters
Section titled “Query Parameters”How the path names the collection: handle (the default, which also finds an integrator’s source handle) or id. A handle may be made of digits only, so an id is never guessed.
Responses
Section titled “Responses”The listings attached to the collection, each with its own fields as stored. This list does not use the listing format of the Listings endpoints.
object
Example generated
[ {}]by is not handle or id, or with by=id the reference is not a whole number
Why a collection or collection model request was refused.
object
The problems found: for a collection, field by field, the rules not met and their messages. Present only when there are some.
Example
{ "success": false, "message": "Collection handle is required"}Collection not found
Why a collection or collection model request was refused.
object
The problems found: for a collection, field by field, the rules not met and their messages. Present only when there are some.
Example
{ "success": false, "message": "Collection handle is required"}