Related Products

Get product list

get

Retrieves a list of products with optional limit and offset parameters.

Query parameters
limitintegerOptional

The number of products to retrieve

offsetintegerOptional

The number of products to skip before starting to collect results

countintegerOptional

If set to 1, returns the total count of products

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the product list

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

Retrieves the details of a specific product by its ID.

Path parameters
productIdintegerRequired

ID of the product to retrieve details for

Query parameters
productIdintegerOptional

Product ID in query parameter

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the product details

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

Update related products

post

Updates the related products for a given product.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
productIdintegerRequired

ID of the product to update related products for

relatedProductIdinteger[]Required

Array of related product IDs to associate with the given product

Responses
200

Successfully updated the related products

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

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

Last updated