API Documentation fashionfitr™


Button

Button - Request popup

Request availability popup and returns the right module if needed also provides the button.

get
https://api.fashionfitr.com/button

Parameter

Field Type Required Description Default
shopId Number Yes

Your given unique shopID.

0
brand String Yes

Comparable brand

gender String No

Gender type. ‘w’ or ‘m’ (woman or man)

‘w’
module String No

Module type. ‘jc’ (jeans), ‘clt’ (casual leasure top), or ‘clb’ (casual leasure bottom). Or enter the full category name which makes sense to the product for example:

Product product is jeans, give us the category “Jeans” we will map those parameters to the correct module

‘jc’
label String No

Label type, required for showing the right sizebar
‘label’: shows label, e.g. S, M, X, XL..
‘size’: shows size, e.g. 32, 34, 36, 38..
‘combi’: shows combi e.g. S-32, M-34, X-36..

‘label’
measurement String No

One random measurement which is available for the given product we will use this to return a size bar in the same label and override the given label when different (used for mapping) and not all shop owners know the label for each product, so when using this label is still required but can set static to “label”

name String No

Productname or titel from the product, used to make sure or determine if the right module is given for the product

language String No

Language code for the language to be used in the popup, default will be showing the language set for the shopID but if you have a multi-language shop this might be handy.

Available codes:
‘en-EN’: English
‘nl-NL’: Dutch
‘de-DE’: German

en-EN
container String Yes

Enter the container div ID, in this place we will place the button if available

addToCart Boolean No

‘true’ or ‘false’ if set to true we will show “Add to cart” button on the result page instead of close or select size. Use the callback to handle events

false
selectSize Boolean No

‘true’ or ‘false’ if set to true addToCart must be ‘false’ will show “Select size” Used to select the size in your shop. If both are set to false we will show a “Close“ button

false
callback function No

Callback function. This function will be called after the user presses the ‘Add to cart’ button in the popup. A object ‘item’ will be passed to this function with the following variables:
item = {
    action: ‘add-to-shopcart’
    selected-size: e.g. ‘W36-L32’, ‘XL’, ‘32’, ‘S’ or ‘S-32’
}
the variable selected-size contains the selected size in the fit-results page of the popup.

function(item){}

Success 200

Veld Type Omschrijving
HTML JSON

Returns availability button and sends the corresponding module for accessing the popup.