The Monetate JavaScript API allows you to pass data from your site to the Monetate platform.
All strings passed to Monetate need to be in a valid format. These strings are listed below. The API references the following types:
string
is a JavaScripttypeof
string that cannot be empty.idString
is a string with no spaces.pidString
is anidString
with no more than 50 characters.quantityString
is anidString
composed only of numerals. The number must be greater than zero and less than one billion.priceString
is anidString
made up of any number of numerals followed by an optional period and by one or two optional numerals.currencyString
is anidString
that must adhere to the ISO 4217 format of three capital letters and no spaces.