Question and Answer

Retrieve vendor product question list

get
/vendor-product-question/vendor-product-question-list

Fetches the list of product questions with optional filters.

Query parameters
limitintegerOptional

Number of records to return.

offsetintegerOptional

Number of records to skip.

keywordstringOptional

Search keyword to filter results.

countintegerOptional

Flag to include count in the response.

startDatestringOptional

Start date for filtering results (YYYY-MM-DD).

endDatestringOptional

End date for filtering results (YYYY-MM-DD).

productNamestringOptional

Filter results by product name.

pricestringOptional

Filter results by price.

statusstringOptional

Filter results by status.

Header parameters
AuthorizationstringRequired
Responses
200

Successfully got the complete product list.

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

Retrieve product question list

get
/vendor-product-question/question-list

Fetches a list of product questions based on filters such as product ID, SKU, and search keyword.

Query parameters
productIdintegerRequired

The ID of the product to fetch questions for.

limitintegerOptional

Number of records to return. Use 0 for no limit.

offsetintegerOptional

Number of records to skip.

keywordstringOptional

Search keyword to filter questions.

countbooleanOptional

Flag to include a count in the response. Use 'true' or 'false'.

skuIdstringOptional

The SKU ID of the product.

Header parameters
AuthorizationstringRequired
Responses
200

Successfully retrieved the product question list.

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

Retrieve product details

get
/vendor-product/{id}

Fetches detailed information about a specific product by its ID.

Path parameters
idintegerRequired

The ID of the product to retrieve details for.

Header parameters
AuthorizationstringRequired
Responses
200

Successfully retrieved product details.

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

Add a new product question

post
/vendor-product-question/add-question

Allows a user to post a new question for a product.

Header parameters
AuthorizationstringRequired
Body
questionstringRequired

The question being asked about the product

answerstringRequired

The answer to the question

productIdintegerRequired

The ID of the product related to the question

skuIdintegerRequired

The SKU ID of the product related to the question

Responses
200

Successfully posted the question.

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

"question='text'&answer='text'&productId=1&skuId=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>text</message>
</object>

Update the status of a product question

put
/vendor-product-question/update-question-status/{questionId}

Updates the status (active/inactive) of a specific product question by its ID.

Path parameters
questionIdintegerRequired

The ID of the question to update

Header parameters
AuthorizationstringRequired
Body
questionIdintegerRequired

The ID of the question

statusintegerRequired

The new status of the question (e.g., 0 for inactive, 1 for active)

Responses
200

Successfully updated the question status.

put
/vendor-product-question/update-question-status/{questionId}
PUT /backend/api/vendor-product-question/update-question-status/{questionId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 27

"questionId=1&status=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Updated Your Question Status</message>
</object>

Delete a product question

delete
/vendor-product-question/delete-question/{questionId}

Deletes a product question by its ID.

Path parameters
questionIdintegerRequired

The ID of the question to delete

Header parameters
AuthorizationstringRequired
Responses
200

Successfully deleted the question.

delete
/vendor-product-question/delete-question/{questionId}
DELETE /backend/api/vendor-product-question/delete-question/{questionId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>text</message>
</object>

Last updated