Ejoyshop
  1. SubscriptionPlans
Ejoyshop
  • Customer
    • Shops
      • Fetch Shops
      • Fetch Specific Shop
      • Book Appointment
    • Auth
      • Signup-email-password
      • Signup-google auth
      • Get user Role and Info
      • New Request
      • Update Profile
      • Reset Password Send OTP
      • Reset Password OTP Verification
      • Reset Password Update new password
    • Meetings
      • Fetch meeting slots
      • book meet
      • Fetch Invited Meets
      • Fetch Meetings for specific users
      • Join Meet
      • Fetch Meetings
    • Categories|sub-categories|languages|occasions|genders
      • Fetch categories
      • Fetch Sub-categories
      • Fetch Languages
      • Fetch Occassions
    • Offers
      • Fetch offers
    • Credits
      • Fetch credits plans
      • Create Pg order
      • Fetch user credit transactions
    • Order
      • Fetch order by id
      • Fetch order by id Copy
      • Fetch Orders
      • Updated Order status
      • Update order delivery address
      • Track Order
    • Address
      • Add address
      • Delete address
      • Mark Address as default
      • Fetch addresses
      • Fetch specific address
    • Favourite Shops
      • Add favourite shop
      • Fetch Favourite shops
      • Delete Favourite Shop
    • Support
      • Add support
      • Update support
      • Fetch supports
      • Fetch Specific Support
    • Fetch Customers list
      GET
  • Admin
    • Shipment
      • shipment track
    • Auth
      • Fetch admin details
      • Update account status
    • vendors
      • Fetch all vendor without pagination
  • Product
    • Create Product
      POST
    • Update the product
      PUT
    • Patch Product
      PATCH
    • Fetch Product by id
      GET
    • fetch products
      GET
    • Delete Product
      DELETE
    • fetch premium products
      GET
    • fetch products by vendor id
      GET
  • SubscriptionPlans
    • Create Subscription Plan
      POST
    • Update Subscription Plan
      PUT
    • Patch Subscription
      PATCH
    • get subscription by id
      GET
    • get subscriptions
      GET
    • Delete subscription id
      DELETE
    • Subscription Plan Purchase
      POST
  • general
    • Generate presigned url
    • Payment webhook test
  • Stitching Service
    • Create Stitching Service
    • Update Stitching Service
    • Patch stitching service invoice
    • Fetch the invoices
    • Fetch the invoices by id
  • settings
    • Update hero banners
    • Fetch hero banners
    • create hero banners
    • Fetch specific hero banner
    • Delete hero banner
  • reviews
    • Add order review
    • Update order review
    • Fetch all order feedbacks
    • Fetch order review by id
    • Delete order review
    • Add order review reply
    • Update order review reply
    • Delete order review reply
    • Fetch order review by order id
    • Add Customer review
    • Update Customer review
    • Fetch all customers feedbacks
    • Fetch customer review by customer id
    • Delete customer review
    • Add customer review reply
    • Update customer review reply
    • Delete customer review reply
    • Fetch customer review metrics
    • Add meet review
    • Update order review
    • Fetch all meet feedbacks
    • Fetch meet review by id
    • Add meet review reply
    • Update meet review reply
    • Fetch meet review by meet id
    • Fetch meet review metrics
    • Delete meet review
    • Delete meet review reply
    • Fetch order review metrics
    • Top 10 platform review
    • get top 10 review of meet & order
  • Referral
  • WalletTxn
    • get all customer wallet transaction
    • get-all-referral
    • get single user referral
    • get single Transaction
  • verification
    • send mobile verification otp
    • verify mobile verification otp
    • resend mobile verification otp
    • send email verification otp
    • verify otp for mail
  • GEO Location
    • fetch all country
    • fetch all state
    • fetch all cities
    • fetch all postal code
  • Order
  • chat-service
    • Fetch user
    • Fetch chat rooms for user
    • Fetch unseen counts for user
    • Fetch messages by chat id
    • Fetch read-receipt for msg
    • Fetch chat id info
  • Offers
    • get all feature offers
    • update premium offers
    • Update offer
    • delete offer
  1. SubscriptionPlans

Update Subscription Plan

Developing
PUT
/subscription-plans/{id}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "name": "Offer + Product",
    "durationInDays": 7,
    "maxProducts": 2,
    "price": 10,
    "description": "Libero quas ut. Deleniti est dicta omnis odio soluta illum neque voluptatum voluptatibus. Beatae cumque dolorum voluptate repellat voluptatibus quibusdam aut iste. Nam expedita ratione tempore. Doloremque quas temporibus. Dolor hic perferendis itaque atque.",
    "maxOffers": 1
}

Responses

🟢200Success
application/json
Body

Example
{
    "statusCode": 201,
    "status": true,
    "message": "Subscription plan updated successfully",
    "response": {
        "_id": "6887089304eb4908923c29d5",
        "name": "Offer + Product",
        "durationInDays": 7,
        "maxProducts": 2,
        "maxOffers": 1,
        "price": 10,
        "description": "Iste nam consequatur ducimus tempora explicabo dicta esse. Quos rerum corrupti eveniet officiis maxime dignissimos eveniet laudantium aspernatur. Assumenda suscipit delectus modi quae doloribus.",
        "currency": "INR",
        "status": "active",
        "createdAt": "2025-07-28T05:20:19.226Z",
        "updatedAt": "2025-07-28T05:52:06.106Z",
        "__v": 0
    }
}
🔴500Server Error
🟠404Not found response
🟠403Forbidden Response
🟠401Unauthorized Response
🟠400Bad Request Response
Modified at 2025-07-28 11:43:56
Previous
Create Subscription Plan
Next
Patch Subscription
Built with