Yelo
  1. Product Discount
Yelo
  • Acl
    • Create Role
      POST
    • Get Role
      POST
    • Edit Role
      POST
    • Delete Role
      POST
    • Get Role Permissions
      POST
  • Custom PG
    • paymentStatus
      POST
  • CSV Import
    • csv
      POST
  • Menu
    • Add Menu
      POST
    • Get Menu
      POST
  • Notification
    • getCreds
      POST
    • sendCustomPushNotification
      POST
  • Tax
    • delete
      POST
    • edit
      POST
    • get
      POST
    • add
      POST
  • Themes
    • configure
      POST
    • resetTemplate
      POST
    • cloneFeatures
      POST
    • editTemplate
      POST
    • getTemplate
      POST
    • getPagesAndComponents
      POST
    • updateUserTheme
      POST
    • getThemeSemantics
      POST
    • enableTheme
      POST
    • getThemeJson
      POST
    • editTheme
      POST
    • getThemes
      POST
    • forkTheme
      POST
    • getUserTheme
      POST
  • Customer
    • customer Deletion
    • Add Customer
    • customer verifyOtp
    • customerForgotPassword
    • View Customer
    • Customer Details
    • Edit Customer
    • Add Customer Subscription Plan
    • Get Customer Subscriptions List
    • Edit Customer Subscription Plan
    • googleLogin
    • Assign Customer Subscription Plan
    • Customer login
    • getFavLocation
    • Forgot Password
  • Wallet
    • addMoney
    • customer/getWalletTxnHistory
  • Loyality Points
    • Update Loyality Points
    • Reward Loyalty Points
  • City
    • Get City
  • Promo
    • Delete Promo
    • Change Promo Status
    • Edit Promo
    • Add Promo
    • Get Promo
  • Order
    • Order review
    • Get All Orders
    • Get Order Details
    • Create Order
    • Custom Order
    • orderPrepTime
  • Search
    • searchGlobalProduct
    • searchProducts
    • searchGlobalMerchants
  • Marketplace
    • Settings
    • Edit Merchant details
    • Get Banner
    • get Activity Logs
    • marketplaceVendorFacebookLogin
    • Add Debt For Job
    • addMerchant
    • getMerchantList
    • getAccountTranslations
    • getfilter
    • Cancellation reason
  • Task
    • edit task prep time
    • addRemarks
    • getTookanRequest
    • Edit Task
    • Accept Reject Order
    • updateStatus
  • Merchant
    • Add Store Availability
    • Update Store Availability for day
    • Get merchant custom field
    • Edit Store Status
    • Get Store FrontDateSchedule
    • Add Store FrontDateSchedule
    • Update Store FrontDateSchedule
    • Get merchant
    • Merchant settings
    • user_login
  • Catalogue
    • Catagory
      • Add Catalogue
      • Update Catalogue
      • Get Catalogue
      • Get All Catalogues
      • Get Catalogue Products
      • Enable Disable Category wise
      • Delete catalogue
    • Products
      • disable
      • Add product
      • Edit Product
      • delete
      • Disable Products
      • Get product
      • Get All Products
      • Get Products For Category
    • Product Customization
      • Deprecated
        • Get Customization
        • Add Customization
        • Delete Customization
        • Edit Customization
      • Customizations
    • tags
      • Get All tags
      • Get tags Products
  • Business Categories
    • Assign Business Category
    • Get Business Category
    • businessCategory
  • Send SMS
    • Send App Link SMS
  • Admin
    • Edit Order
    • Add Address
    • Get address
    • Delete Address
    • Edit address
    • Admin Detail
  • Billing
    • getPlans
    • getInvoices
    • getBillBreakDown
  • Project
    • get
  • Discount
    • merchant Discount
      • /open/merchant/discount/get
      • merchant/discount/edit
      • merchantDiscount/add
    • Product Discount
      • productDiscount/add
        POST
      • product/discount/get
        POST
      • product/discount/edit
        POST
      • product/discount/delete
        POST
  • Store Reviews
    • getStoreAllReviews
  • checkout template
    • template/getCheckoutTemplate
  • Payment
    • activePaymentMethods
    • getPaymentUrl
  1. Product Discount

product/discount/edit

POST
/open/product/discount/edit
NameTypeDescription
api_keystring(required)Your API-key
marketplace_user_idnumber(required)marketplace_user_id
user_idnumber(required)User Id

discount_idnumber(required)Discount Id
user_typenumber(optional)2 : for admin, 3 : for merchant
namestring(optional)Discount Name
descriptionstring(optional)Discount Description
valuenumber(optional)Discount Value min(0)-max(100)
start_datetime_utcstring(optional)Discount Start Date -Time
expiry_datetime_utcstring(optional)Discount Expiry Date -Time
add_on_discountnumber(optional)Add On Discount

Request

Body Params application/json
object {0}
Example
{
    "api_key": {{api key}},
"add_on_discount": 0,
"description": "b",
"discount_id": 311981,
"expiry_datetime_utc": "2022-03-29T07:41:53.000Z",
"marketplace_user_id": 1234199,
"max_discount_amount": "35.00",
"name": "30% pro",
"start_datetime_utc": "2022-03-28T07:41:38.165Z",
"user_id": 1234199,
"user_type": 2,
"value": 21
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.yelo.red/open/product/discount/edit' \
--header 'Content-Type: application/json' \
--data-raw '{
    "api_key": {{api key}},
"add_on_discount": 0,
"description": "b",
"discount_id": 311981,
"expiry_datetime_utc": "2022-03-29T07:41:53.000Z",
"marketplace_user_id": 1234199,
"max_discount_amount": "35.00",
"name": "30% pro",
"start_datetime_utc": "2022-03-28T07:41:38.165Z",
"user_id": 1234199,
"user_type": 2,
"value": 21
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-04-17 07:11:33
Previous
product/discount/get
Next
product/discount/delete
Built with