Promo

Menampilkan diskon

post
Body
user_idstringRequiredExample: +6285228990120
outlet_idstringRequiredExample: OTL-001
Responses
chevron-right
200

Berhasil menampilkan daftar diskon

application/json
idstringOptionalExample: DSC-001
user_idstringOptionalExample: +6285228990120
outlet_idstringOptionalExample: OTL-001
namestringOptionalExample: Diskon Ramadhan
typestringOptionalExample: percentage
valuenumberOptionalExample: 10
is_activebooleanOptionalExample: true
create_dtmstring · date-timeOptionalExample: 2025-06-02T10:00:00Z
post
/discounts/show

Menambahkan diskon

post
Body
user_idstringRequiredExample: +6285228990120
outlet_idstringRequiredExample: OTL-001
namestringRequiredExample: Diskon Akhir Tahun
descriptionstringOptionalExample: Diskon besar akhir tahun
start_dtmstring · date-timeRequiredExample: 2025-12-01T00:00:00Z
end_dtmstring · date-timeRequiredExample: 2025-12-31T23:59:59Z
custom_daysstringOptionalExample: Senin,Rabu,Jumat
productsstring[]OptionalExample: ["SKU-001","SKU-002"]
amountnumberRequiredExample: 15000
percentage_or_rupiahstring · enumRequiredExample: rupiahPossible values:
minimum_salesnumberOptionalExample: 100000
quantity_or_rupiahstring · enumOptionalExample: rupiahPossible values:
is_activebooleanRequiredExample: true
Responses
chevron-right
200

Diskon berhasil ditambahkan atau nama sudah ada

application/json
user_idstringOptional
messagestringOptionalExample: discount created
post
/discount/add

Set diskon

post
Body
user_idstringRequiredExample: +6285228990120
outlet_idstringRequiredExample: OTL-001
discount_idstringRequiredExample: DISC-0001
is_activebooleanRequiredExample: false
Responses
chevron-right
200

Diskon berhasil diupdate

application/json
user_idstringOptional
messagestringOptionalExample: discount set
post
/discount/set

Update diskon

post
Body
user_idstringRequiredExample: +6285228990120
outlet_idstringRequiredExample: OTL-001
discount_idstringRequiredExample: DISC-0001
namestringRequiredExample: Diskon Spesial Lebaran
descriptionstringOptionalExample: Diskon 20% untuk semua produk makanan
start_dtmstring · date-timeOptionalExample: 2025-06-01T00:00:00Z
end_dtmstring · date-timeOptionalExample: 2025-06-30T23:59:59Z
custom_daysstring[]OptionalExample: ["Monday","Friday"]
productsstring[]OptionalExample: ["SKU-001","SKU-002"]
amountnumberOptionalExample: 5000
percentage_or_rupiahstringOptionalExample: Rupiah
minimum_salesnumberOptionalExample: 10000
quantity_or_rupiahstringOptionalExample: Quantity
is_activebooleanRequiredExample: true
outletsstring[]OptionalExample: ["OTL-001","OTL-002"]
Responses
chevron-right
200

Diskon berhasil diupdate

application/json
user_idstringOptional
messagestringOptionalExample: discount edit successfully
post
/discount/update

Hapus diskon

post
Body
user_idstringRequiredExample: +6285228990120
outlet_idstringRequiredExample: OTL-001
discount_idstringRequiredExample: DISC-0001
Responses
chevron-right
200

Diskon berhasil dihapus

application/json
user_idstringOptional
messagestringOptionalExample: discount delete
post
/discount/del

Menampilkan diskon terbaru

post
Body
user_idstringRequiredExample: +6285228990120
outlet_idstringRequiredExample: OTL-001
Responses
chevron-right
200

Diskon aktif terbaru berhasil ditampilkan

application/json
or
post
/activelatestdiscounts/show

Last updated

Was this helpful?