Related Products

get

Retrieves a list of vendor-related products for the vendor, based on specified query parameters.

Query parameters
limitintegerOptional

The number of products to return per page.

offsetintegerOptional

The offset (starting point) to fetch products from.

countintegerOptional

Filter to get the total count of related products.

Header parameters
AuthorizationstringRequired
Responses
200

Successfully got your product list.

get
GET /backend/api/vendor-related-product/vendor-related-product-list HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got your product list.</message>
</object>
get

Retrieves detailed information of a specific vendor-related product.

Path parameters
idintegerRequired

The ID of the vendor-related product to fetch details for.

Header parameters
AuthorizationstringRequired
Responses
200

Successfully got the data.

get
GET /backend/api/vendor-related-product/vendor-related-product-details/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the data</message>
</object>

Update vendor related products

post

Updates the related products for a specific product.

Header parameters
AuthorizationstringRequired
Body
relatedProductId[]integer[]Required

List of related product IDs to be updated.

productIdinteger · int32Required

ID of the main product.

Responses
200

Successfully updated the vendor related products.

post
POST /backend/api/vendor-related-product/update-vendor-related-product HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 40

"relatedProductId[]=[1]&productId=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated the vendor related products.</message>
</object>

Last updated