Skip to main content

Discount

v1

Description

Get notified on discount-related events.


Supported Type

  • Create
  • Update
  • Delete
  • Start
  • End

Payload

{
"event":{
"id":"8MI+3+ovRqHpJwkbF0yJQ5e1WxIgy95BsUflUWOf97A=",
"name":"discount",
"type":"update",
"version":"1",
"trace_id":[
"galvatron.2cffac70-095b-11ec-9a38-dbeafa21f4f5"
],
"created_timestamp":1630054413585
},
"payload":{
"discount":{
"is_active":true,
"app_ids":[
"5caf4f967583794673424d77",
"5f2181d3ce0d4f003bfa6a97",
"5dfb1c224d62375bd990cbf7",
"5f71dc7226dcea004e208527",
"000000000000000000000001"
],
"name":"AUGUST DISCOUNT",
"job_type":"app|brand|product",
"discount_type":"percentage",
"discount_level":"application",
"company_id":1244,
"validity":{
"start":"2021-08-27T12:15:35.088Z",
"end":"2021-08-30T18:30:00.000Z"
},
"value":null,
"file_path":"https://hdn-1.fynd.com/company/1244/self/documents/product-import/free/original/F3gGAy8MW-Q6qEWhcAT-2CNPzYas5-LtfRkRasP-KxMtTuNS8-kD8O9xBZP-discount_product_sample-(1).xlsx",
"created_by":{
"username":"919986982685_11683",
"user_id":"23265346"
},
"modified_by":{
"username":"kishore_batragroup_com_71924",
"user_id":"23528520"
},
"created_on":"2021-07-13T11:23:44.711Z",
"modified_on":"2021-08-30T06:26:14.231Z",
"brand_ids":[
366
],
"id":"60ed77c09b7c710008863969"
}
},
"contains":[
"discount"
],
"company_id":2
}

Object Properties

KeyTypeDescription
idstringUnique ID, Auto Generated
namestringName added by user
company_idintegerSeller ID
is_activeboolDiscount is live or not
app_idsarray of stringsList of applications where discount is applicable
job_typestringsDiscount Type defines what type of discount it is.
There are 2 different types, Basic and Custom Discounts

Basic: [
"app", // company level
"app or brand", // company x brand level
"app or store", // company x store level
"app or brand or store", // company x brand x store level
]

Custom : [
// file uploads
"app or brand or product", // company x brand x item level
"app or brand or store or product", // company x brand x store x item level
"app or brand or inventory", // company x brand x seller_identifier level
"app or brand or store or inventory", // company x brand x store x seller_identifier level
]
discount_typestringFor basic, it is percentage. For custom, ignore this field in your discount payload
discount_levelstringAll the discounts are application-level only
validity.startdatetimeDate and time when discount will do LIVE
validity.enddatetimeDate and time when discount will expire
valueintegerIn case of basic, it represents how much discount to apply
In case of custom, it is null and we use value from discount-item
file_pathstring (url)File path for custom discount. In case of basic, it is null
created_byjsonDetails of user who created the discount
created_ondatetimeCreation timestamp
modified_byjsonDetails of user who modified the discount
modified_ondatetimeModification timestamp
brand_idsarray if integersList of brand ids if selected by seller

Basic: [
"app or brand", // company x brand level
"app or brand or store", // company x brand x store level
]

Custom : [
// file uploads
"app or brand or product", // company x brand x item level
"app or brand or store or product", // company x brand x store x item level
"app or brand or inventory", // company x brand x seller_identifier level
"app or brand or store or inventory", // company x brand x store x seller_identifier level
]
store_idsarray if integersList of store ids if selected by seller

Basic: [
"app or store", // company x store level
"app or brand or store", // company x brand x store level
]

Custom : [
// file uploads
"app or brand or store or product", // company x brand x store x item level
"app or brand or store or inventory", // company x brand x store x seller_identifier level
]