API

Ubah penawaran khusus

POST/api/crm/v2/special_offers_list.updatev2
operationId: specialOffersList.update

Otorisasi

api-token + language + role

Parameter permintaan

branch_idinteger

Cabang tempat permintaan dijalankan. Mitra dengan beberapa cabang wajib mengirimkan parameter ini, jika tidak permintaan akan gagal. Untuk mitra dengan satu cabang, server akan mengisinya secara otomatis.

Contoh: 8778

Isi permintaan multipart/form-data

object

Aturan kerja disembunyikan jika operating_mode = informing

idnumberwajib

Contoh: 1

namestringwajib

Contoh: Free delivery

operating_modestring (TypeOperatingMode) wajib

Nilai:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Contoh: informing

platformstring (Platform) wajib

Nilai:androidiosallmobile_appssitesocial_apps

Contoh: all

descriptionstring

Ditampilkan dan wajib jika operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Contoh: informing description

imageobject (ImageSource)

Ditampilkan dan wajib jika operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Koordinat pemotongan gambar

offsetsobject
xintegerwajib

Contoh: 100

yintegerwajib

Contoh: 50

sizesobject
widthintegerwajib

Contoh: 800

heightintegerwajib

Contoh: 600

push_titlestring

Ditampilkan saat operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Contoh: the push title

push_messagestring

Ditampilkan saat operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Contoh: the push message

date_availablestring (DataTimeFormat)

Contoh: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Contoh: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Hari-hari dalam seminggu

time_periodsarray of array of string (TimePeriods)

Periode waktu

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Nilai:fixed_discount_on_all_orderpercent_discount_on_all_orderfixed_discount_on_items_from_categoriespercent_discount_on_items_from_categoriesfixed_discount_on_itemspercent_discount_on_itemsfree_item_to_choose_if_buy_itemsfree_item_to_choose_if_buy_items_from_categoriesfixed_discount_on_next_itempercent_discount_on_next_itemfixed_discount_on_next_item_from_categoriespercent_discount_on_next_item_from_categoriesfree_item_to_choosepercent_discount_on_item_with_minimum_cost_in_cartfixed_discount_on_item_with_minimum_cost_in_cartpercent_discount_on_item_with_minimum_cost_from_itemsfixed_discount_on_item_with_minimum_cost_from_itemspercent_discount_on_item_with_minimum_cost_from_categoriesfixed_discount_on_item_with_minimum_cost_from_categoriesbonusesfree_delivery

Contoh: free_delivery

subcategories_include_in_categories_enabledboolean

Ditampilkan jika type: fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, free_item_to_choose_if_buy_items_from_categories, percent_discount_on_next_item_from_categories, fixed_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

authorized_users_enabledboolean

Ditampilkan jika type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

work_with_pay_bonuses_enabledboolean

Ditampilkan jika type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

accrual_bonuses_enabledboolean

Ditampilkan jika type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

first_purchase_enabledboolean

Ditampilkan untuk semua tipe

Contoh: true

first_purchase_platformstring (Platform)

Nilai:androidiosallmobile_appssitesocial_apps

Contoh: all

reuse_enabledboolean

Ditampilkan untuk semua tipe

Contoh: true

use_only_in_birthday_enabledboolean

Ditampilkan untuk semua tipe

Contoh: true

birthday_validity_beforeinteger

Ditampilkan untuk semua tipe saat use_only_in_birthday_enabled diaktifkan

Contoh: 10

birthday_validity_afterinteger

Ditampilkan untuk semua tipe saat use_only_in_birthday_enabled diaktifkan

Contoh: 10

ignore_in_minimum_sum_enabledboolean

Ditampilkan jika type: fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

delivery_methodstring (DeliveryMethodUpdate)

Nilai:allcourierpickup

from_sumnumber

Ditampilkan jika type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: 100

to_sumnumber

Ditampilkan jika type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: 1000

multiple_sumnumber

Ditampilkan saat type: free_item_to_choose

Contoh: 100

from_to_sums_for_items_from_conditions_enabledboolean

Ditampilkan jika type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Contoh: true

discountnumber

Ditampilkan jika type: fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: 10

count_items_for_conditioninteger

Ditampilkan jika type: fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: 10

count_items_for_actioninteger

Ditampilkan jika type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Contoh: 10

one_item_from_conditions_enabledboolean

Ditampilkan jika type: fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

use_only_one_time_in_cart_enabledboolean

Ditampilkan jika type: fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Contoh: true

automatic_old_cost_for_items_enabledboolean

Ditampilkan saat type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Contoh: true

bonuses_sumnumber

Ditampilkan dan wajib jika type: bonuses

Contoh: 100

bonuses_validitynumber

Ditampilkan saat type: bonuses

Contoh: 100

actions_itemsarray of integer

Ditampilkan dan wajib jika type: percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_next_item, fixed_discount_on_next_item, percent_discount_on_items, fixed_discount_on_items, free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

conditions_itemsarray of integer

Ditampilkan dan wajib jika type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Ditampilkan dan wajib jika type: percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_next_item_from_categories, fixed_discount_on_next_item_from_categories

conditions_categoriesarray of integer

Ditampilkan dan wajib jika type: free_item_to_choose_if_buy_items_from_categories

Tanggapan

OK

object
statusstringwajib

Nilai:successerror

Contoh: success

dataobject