List the relationships of a listing
const url = 'https://acme.mykreezalid.com/front_api/v1/listings/4242/related?type=up-sell';const options = {method: 'GET'};
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/front_api/v1/listings/4242/related?type=up-sell'Returns the relationships from a parent listing, sorted by sort_priority. Works without an access token; a token changes nothing. Only the relationships are returned, not the related listings themselves.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the parent listing.
Example
4242Query Parameters
Section titled “Query Parameters”Only return relationships of this kind. Any other value is ignored.
Responses
Section titled “Responses”The relationships.
object
A relationship from a parent listing to a related listing (for example a cross-sell suggestion).
object
Listing the relationship starts from.
Related listing.
Member who created the relationship. Always null for relationships created through the Front API.
Kind of relationship. up-sell, cross-sell and other are the values the list and delete operations recognise.
Position of the related listing; lists are sorted on it, lowest first.
Free-form extra data.
Example
{ "relationships": [ { "id": 55, "parent_listing_id": 4242, "listing_id": 4243, "type": "cross-sell", "sort_priority": 0, "description": "Goes well with", "created": "2026-10-13T09:30:00+00:00", "modified": "2026-10-13T09:30:00+00:00" } ]}The parent listing ID is not a number.
Error body returned by the Front API when it refuses a request.
object
HTTP status code, repeated in the body.
Human-readable reason.
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}No listing with this ID.
Error body returned by the Front API when it refuses a request.
object
HTTP status code, repeated in the body.
Human-readable reason.
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}