Offer Optics API trial integration steps

Our endpoint is pretrained and we propose having your engineers do a minimal integration into your e-commerce platform with the support of our staff.

The Offer Optics endpoint system provides a series of access apis to make predictions and further train the model, such as by logging outcomes. The simplified combination of these APIs greatly reduces the friction of integrating into existing POS and E-commerce systems while maximizing outcomes. Only 2 calls predict and predictLog are essential for use of Offer Optics.

The API is loaded from a CDN with <script src="<cdnlocation>/offeroptics.min.js">


The primary APIs we recommend using are:


offeroptics.setApiKey(apikey)
offeroptics.predict(…)
offeroptics.predictList(…)
offeroptics.redeemLog(…)

Each API has the parameter list of the attributes used to anticipate redemption, an API key to authorize use, and settings around data types passed in and return types. All of the parameters have default values, and data can be an ordered array or a JSON object.


Example call to predict a single result:

predict = offeroptics.predict(inputType, returnType, httpMethod, data);

The minimum code looks like:

predict = offeroptics.predict(data)