My Shop

Get list of vendor documents

get
/vendor-document

Fetches a list of vendor documents based on the provided filters.

Query parameters
limitintegerOptional

Number of documents to return per page

offsetintegerOptional

The offset for pagination

countintegerOptional

Flag to indicate if count is requested

vendorIdintegerRequired

ID of the vendor

Header parameters
AuthorizationstringRequired

Bearer token for vendor authentication

Responses
200

Successfully retrieved the list of vendor documents.

get
/vendor-document

Upload a vendor document

post
/vendor-document

This endpoint allows the upload of a document for a vendor.

Header parameters
AuthorizationstringRequired

Bearer token for vendor authentication

Body
filestring · binaryOptional

The document file to upload.

vendorIdinteger · int32Optional

The ID of the vendor uploading the document.

documentTypestringOptional

The type of the document being uploaded (e.g., 'invoice', 'contract').

Responses
200

Document uploaded successfully.

post
/vendor-document

Upload a media file

post
/media/upload-file

This endpoint allows uploading a media file (such as an image or document) to the server.

Header parameters
AuthorizationstringRequired

Bearer token for vendor authentication

Body
fileNamestringOptional

The name of the file being uploaded.

fileTypeinteger · int32Optional

The type of file being uploaded (e.g., image = 1, document = 2).

pathstringOptional

The path where the file should be stored.

imagestringOptional

Base64 encoded image or document file content.

documentIdinteger · int32Optional

The document ID (for documents).

Responses
200

Successfully uploaded the file.

post
/media/upload-file

Get the details of a specific vendor document by ID

get
/vendor-document/{id}

This endpoint allows fetching details of a specific vendor document by its unique ID.

Path parameters
idintegerRequired

The unique identifier of the document.

Header parameters
AuthorizationstringRequired

Bearer token for vendor authentication

Responses
200

Document details fetched successfully.

get
/vendor-document/{id}

Edit vendor details

put
/vendor/edit-vendor/{customerId}

Update the vendor details by providing the vendor ID and the new data via form data.

Path parameters
customerIdintegerRequired

ID of the vendor to be updated

Header parameters
AuthorizationstringRequired

Bearer token for vendor authentication

Body
dobstring · dateOptional

Date of Birth

emailstringOptional

Email address

firstNamestringOptional

First Name

genderstringOptional

Gender

lastNamestringOptional

Last Name

mobileNumberstringOptional

Mobile number

usernamestringOptional

Username

vendorMediastring[]Optional

Media related to the vendor

passwordstringOptional

Password

resetinteger · int32Optional

Flag to reset password

Responses
200

Successfully updated the vendor details.

put
/vendor/edit-vendor/{customerId}

Get vendor profile details

get
/vendor/vendor-profile

Retrieve the profile information for the authenticated vendor.

Header parameters
AuthorizationstringRequired

Bearer token for vendor authentication

Responses
200

Successfully retrieved vendor profile.

get
/vendor/vendor-profile

Last updated