The Update Feature Offer API toggles the premium status of a specific offer for a vendor. It ensures the offer is active and not expired. Vendors can only have a limited number of premium offers.Endpoint
Path Parameters
Name
Type
Required
Description
id
string
Yes
The ID of the offer to be updated (MongoDB ObjectId).
AuthenticationVendor must be authenticated.Response
Status Code
Description
200
Offer status updated successfully to premium or normal.
400
Invalid offer ID, expired offer, or premium limit reached.
401
Unauthorized - authentication required.
403
Forbidden - user does not have permission to update this offer.
404
Not Found - offer not found or does not belong to vendor.
500
Internal Server Error.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
Responses
🟢200OK
application/json
Body
Example
{"statusCode":200,"status":true,"message":"Offer status updated successfully to premium","response":{"_id":"687a15c983fc71f8e97c2f5b","approvalStatus":"Approved","vendor":"647587fc52f887dacdeb76b3","title":"offer-lalaland","description":"jingala","offerType":"Seasonal Sales","startDate":"2025-07-18T18:30:00.000Z","endDate":"2025-07-25T18:30:00.000Z","image":"https://ejoyshopdevbucket.s3.ap-south-1.amazonaws.com/images/mIJgUWbmgiLx.jpg","status":"active","offeror":"VENDOR","creatorEntity":"VendorOffer","createdAt":"2024-09-19T07:17:13.168Z","updatedAt":"2025-07-25T06:25:35.252Z","__v":0,"premium":true}}