Related Product Service

Back to Catalog

Overview

The Related Product service manages relationships between products (cross-sell / upsell / related items).

It allows you to:

This service stores relationships only (two product IDs).
It does not return full product objects - only link rows from the RelatedProducts table.

All operations are tenant-aware and audited.


Endpoints

Back to Catalog

GET

/api/v1/RelatedProduct/GetAllRelatedProductByProductid/{productId}

Returns all related-product links for a specific product.

Behavior:

Controller behavior:

Response:

Errors:

Authorization:


POST

/api/v1/RelatedProduct/AddNewRelatedProduct

Creates a relationship between two products.

Request body:

Behavior:

Validation notes (important):

Errors:

Authorization:


DELETE

/api/v1/RelatedProduct/DeleteRelatedProduct/{productId}/{relatedproductId}

Deletes a relationship between two products.

Route parameters:

Behavior:

Errors:

Authorization:


Notes