Button - Request popup
Request availability popup and returns the right module if needed also provides the button.
gethttps://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: |
‘jc’ |
label | String | No |
Label type, required for showing the
right sizebar |
‘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. |
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: |
function(item){} |
Success 200
Veld | Type | Omschrijving |
---|---|---|
HTML | JSON |
Returns availability button and sends the corresponding module for accessing the popup. |