Override App Configuration

The Tweakwise API Merchandising response is generated based on default values or app configuration. If you need more flexibility, the API allows the use of parameters to override the default configuration on runtime.

Filter template

tn_ft

Explicitly specify the ID of the filter template to use. This will overrule any filter template that would otherwise be applied.

curl --request GET \
     --url 'https://gateway.tweakwisenavigator.com/navigation/c1a12e92?tn_cid=1001&tn_ft=1' \
     --header 'TWN-Source: Tweakwise API docs' \
     --header 'accept: application/json'

Use Catalog > Filter templates to retrieve all available filtertemplates for your instance.


Builder template

tn_b

Explicitly specify the ID of the builder to use. This will overrule any builder that would otherwise be applied.

curl --request GET \
     --url 'https://gateway.tweakwisenavigator.com/navigation/c1a12e92?tn_cid=1001&tn_b=2' \
     --header 'TWN-Source: Tweakwise API docs' \
     --header 'accept: application/json'

Use Catalog > Builders to retrieve all available builders for your instance.


Merchandising template (Sorting template)

tn_st

Explicitly specify the ID of the sorting template to use. This will overrule any sorting template that would otherwise be applied.

curl --request GET \
     --url 'https://gateway.tweakwisenavigator.com/navigation/c1a12e92?tn_cid=1001&tn_st=2' \
     --header 'TWN-Source: Tweakwise API docs' \
     --header 'accept: application/json'

Use Catalog > Sorting templates to retrieve all available merchandising templates for your instance.


Page size

tn_ps

The number of products that must be displayed per page. The overrides the default value that is configured at shop level.

curl --request GET \
     --url 'https://gateway.tweakwisenavigator.com/navigation/c1a12e92?tn_cid=1001&tn_ps=120' \
     --header 'TWN-Source: Tweakwise API docs' \
     --header 'accept: application/json'