Skip to main content

Get all Related Product IDs of a Products' attached Custom Relationship

GET 

/pcm/products/:productID/custom-relationships/:customRelationshipSlug

Prerequisites

Request

Path Parameters

    productID stringrequired

    A unique identifier for the product.

    customRelationshipSlug stringrequired

    A custom relationship slug.

Query Parameters

    page[offset] int64

    Possible values: <= 10000

    The number of records to offset the results by.

    page[limit] int64

    Possible values: <= 10000

    The number of records per page. The maximum limit is 100.

Responses

Returns all related product ids.

Schema
    data object[]required
  • Array [
  • id stringrequired

    A unique identifier generated when a product association is created.

    type stringrequired

    Possible values: [product]

    This represents the type of resource object being returned. Always product.

    attributes object
    sort_order integernullable

    The order in which the product to product should be displayed in relation to others. A lower value represents a higher priority in the display order. If set to NULL, the sort order will be removed.

  • ]
Loading...