Offers Model

ActionMethodResourceDescription
UpdatePOST/offers/:offer_idUpdate offers with new params
RemovePOST/offers/remove_offerRemove offer
**Change_paymethodPOST/offers/change_paymethodChange the paymethod the offer

The Offers model is composed of the following attributes:

attributetyperequireddescription
descriptionstringNomin:1
labelstringNomin:1
rankintegerNo
max_discountinteger or nullableNo
discount_typeintegerYesCan be: 1,2 or 3
targetintegerYesCan be: 1,2 or 3
stackablebooleanYes
autobooleanYes
publicbooleanYes
order_priorityintegerNo
limit_per_userintegerNo
user_order_countintegerNo
user_order_count_conditionstringNoCan be: >, =, <, >=, <=, <>
valid_form_after_user_last_order_minutesintegerNo
*valid_until_after_user_last_order_minutesintegerNo
productsnullable or arrayNo
products.*.id integerYesthe product id must exist
products.*.is_conditionbooleanYes
categoriesnullable or arrayNo
categories.*.id integerYes
categorires.*.is_conditionbooleanYesthe categories id must exist
usersnullable or arrayNomin: 1
users.* integerNothe user id must exist
sitesintegerNomin: 1
delivery_zonesnullable or arrayNomin: 1
delivery_zones.* integerNothe delivery_zones id must exist
paymethodsnullable or arrayNomin: 1
paymethods.* integerNothe paymethods id must exist
order_types_allowednullable or arrayNomin:1
order_types_allowed.* integerNoCan be: 1,2,3,4 or 5
include_products_with_offerbooleanNo