Chat

Get Vendor List

get

Retrieves a list of vendors for chat administration.

Query parameters
keywordstringOptional

A search keyword to filter vendor details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully got vendor details

get
GET /backend/api/chat-admin/vendor-list HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully Got Vendor Details</message>
</object>

Get User Details

get

Fetches user details for chat administration.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved user details

get
GET /backend/api/chat-admin HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully Got User Details</message>
</object>

Get Vendor Details

get

Fetches vendor details by vendor ID.

Path parameters
vendorIdintegerRequired

ID of the vendor to fetch details for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved vendor details

get
GET /backend/api/chat-admin/vendor/{vendorId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully Got Vendor Details</message>
</object>

Get Chat History

get

Fetches the chat history for a given vendor.

Query parameters
vendorIdintegerRequired

ID of the vendor to fetch chat history for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved chat history

get
GET /backend/api/chat-admin/chat-history HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully Got Chat History..!</message>
</object>

Get Seller Product Count

get

Fetches the count of products listed by a given vendor.

Query parameters
vendorIdintegerRequired

ID of the vendor to fetch the product count for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved seller product count

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

Update Chat Seen Status

put

Updates the status of the chat to 'seen' for a given vendor.

Query parameters
vendorIdintegerRequired

ID of the vendor to update the chat seen status for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Chat seen status updated successfully

put
PUT /backend/api/chat-admin/chat-seen HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Chat seen Status Updated..!</message>
</object>

Upload File

post

Upload a file (image) to the server.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
imagestring · binaryRequired

The image file to upload

pathstringRequired

The folder path where the image will be saved

fileNamestringRequired

The name to assign to the uploaded file

fileTypeinteger · int32Required

The type of the file (e.g., image, document)

Responses
200

Image uploaded successfully

post
POST /backend/api/media/upload-file HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 63

"image='binary'&path='text'&fileName='text'&fileType=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Image Uploaded Successfully</message>
</object>

Delete a specific message

put
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
messageIdstringRequired

Unique identifier for the message to delete

fromIdinteger · int32Required

ID of the sender

toIdinteger · int32Required

ID of the recipient

Responses
200

Message Deleted Successfully

put
PUT /backend/api/chat-admin/delete HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 40

"messageId='text'&fromId=1&toId=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Message Deleted Successfully..!</message>
</object>

Last updated