Coupons

Base variables

The following variables are common to every feed types. This coincides with the product type, which can be considered the basic one.

All the variables are optional.

NameTypeDescription

title

stringthe element title

description

stringthe element description

thumb

stringthe url of the element thumbnail
active

string

on | off

this indicates the visibility of the element
data

string

yyyy-mm-dd hh:mm:ss

the element date

if empty, current timestamp

linkstringthe element link (url)
latitudestringthe element latitude
longitudestringthe element longitude

Type related variables

The coupons feed type has some extra variables that can be passed in the request.

NameTypeDescription

data

string

yyyy-mm-dd hh:mm:ss

in this case the data variable is used to indicate the coupon start validity date

option

string

yyyy-mm-dd hh:mm:ss

the coupon end validity date

E-commerce variables

On this feed type is possible to enable the e-commerce feature by passing this additional variable.

NameTypeDescription

sale

string

1 | 0

this enables or not the e-commerce feature

In case sale is set to "1", the following variables are available.

NameTypeDescription

price

string

the element price

currency

string

USD | EUR | GBP

the price currency
discounted

string

1 | 0

this indicates if the element is in discount or not
internal

string

1 | 0

this indicates whether the sale should be managed by AppsBuilder or externally
external_linkstringthe url to externally manage the sale, in case of variable internal set to "0"