Offers Model

Action

Method

Resource

Description

Update

POST

/offers/:offer_id

Update offers with new params

Remove

POST

/offers/remove_offer

Remove offer

**Change_paymethod

POST

/offers/change_paymethod

Change the paymethod the offer

The Offers model is composed of the following attributes:

attribute

type

required

description

description

string

No

min:1

label

string

No

min:1

rank

integer

No

max_discount

integer or nullable

No

discount_type

integer

Yes

Can be: 1,2 or 3

target

integer

Yes

Can be: 1,2 or 3

stackable

boolean

Yes

auto

boolean

Yes

public

boolean

Yes

order_priority

integer

No

limit_per_user

integer

No

user_order_count

integer

No

user_order_count_condition

string

No

Can be: >, =, <, >=, <=, <>

valid_form_after_user_last_order_minutes

integer

No

*valid_until_after_user_last_order_minutes

integer

No

products

nullable or array

No

products.*.id

integer

Yes

the product id must exist

products.*.is_condition

boolean

Yes

categories

nullable or array

No

categories.*.id

integer

Yes

categorires.*.is_condition

boolean

Yes

the categories id must exist

users

nullable or array

No

min: 1

users.*

integer

No

the user id must exist

sites

integer

No

min: 1

delivery_zones

nullable or array

No

min: 1

delivery_zones.*

integer

No

the delivery_zones id must exist

paymethods

nullable or array

No

min: 1

paymethods.*

integer

No

the paymethods id must exist

order_types_allowed

nullable or array

No

min:1

order_types_allowed.*

integer

No

Can be: 1,2,3,4 or 5

include_products_with_offer

boolean

No