Skip to main content

Discount Items

Payload

{
"payload":{
"discount-items":[
{
"discount":[
{
"value":80.52,
"min_items":1
}
],
"discount_type":"percentage",
"app_ids":[
"000000000000000000000001"
],
"company_id":1697,
"seller_identifier":"URM005271PM",
"job_id":"61542f11d1230f00079d7f3b",
"item_id":7928250,
"brand_ids":[
2930
]
}
]
},
"meta":{
"event":{
"name":"discount-items",
"type":"create",
"version":"1"
},
"service":{
"name":"Galvatron"
},
"company_id":1697,
"application_id":"000000000000000000000001",
"trace_id":[
"galvatron.04517390-2106-11ec-918b-93fef49764a8"
],
"created_timestamp":1632907026761
}
}

Object Properties

KeyTypeDescription
company_idintegerSeller ID
item_idintegerProduct uid
brand_idsarray if integersList of brand ids if selected any 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 any 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
]
item_codestringProduct code given by the seller
seller_identifierstringProduct Size code given by seller (ean or sku or alu or upc)
job_idstringDiscount unique ID
app_idsarray of stringsList of applications where discount is applicable
discount_typestringFlat or Percentage
discountarray of json(currently only hold once json)

discount[0].value is discount value

In case of flat, use this as a selling price
In case of percentage, use this to subtract it from MRP