Skip to content

Boilerplate Script Builder ​

Generate a Sprii SDK implementation starter script based on your specific use cases. Select the features you need and get a boilerplate with the required actions and helper functions. Implement the shop-specific TODOs before using it. Onsite and B2B selections generate a widget URL containing PAGE_ID; replace it with your actual script URL from Sprii. Social-only selections use the generic checkout URL; replace it if Sprii provides a per-integration script.

The generated checkout handler reports partial failures, but your integration must also show a shopper-facing notice. The checkout-only bundle continues to the redirect even after a returned FAILURE; see checkout results.

Script Builder ​

Select Your Use Cases

Choose one or more use cases based on how you want to integrate Sprii. Each use case requires different actions to be implemented.

Social media live shopping

Support checkout from social media directly on your site

Required Actions:
SOME_CHECKOUT
Optional Actions:
OPEN_CART

Onsite with product redirect

Live shopping on your website with product page redirects

Optional Actions:
GET_PRODUCT_REDIRECT_URL

Onsite with basket integration

Live shopping with fully integrated basket synchronization

Required Actions:
UPDATE_CART_CONTENTS, GET_CART_CONTENTS, OPEN_CART

B2B live shopping

Live shopping with customer-specific prices and user data

Required Actions:
GET_PRODUCT_DATA_LIST, GET_USER_DATA