Skip to main content

Introduction

Use the Partoo JavaScript SDK to embed Partoo views into your website via an iframe. The SDK provides utilities to configure, initialize, and control the embedded experience.
The SDK dynamically inserts an iframe and returns a helper instance that you can use to authenticate users and navigate pages.

Environments

Partoo offers two environments:
  • Sandbox: For development and testing
    URL: https://static.sandbox.partoo.co/jssdk/partoo.js
  • Production: For live deployment
    URL: https://static.partoo.co/jssdk/partoo.js

Integration Steps

1

Import the SDK

Include the SDK in your HTML <head>:
This exposes a global Partoo object for use in your scripts.
2

Generate a Connection Token

Before rendering any views, generate a connection token for your authenticated user.
Refer to the authentication API documentation for details on generating this token.
3

Insert a Target Container

Add a target <div> where the Partoo iframe will load:
Do not use partoo-iframe as the container ID—it’s reserved internally.
4

Initialize and Login

Use the SDK to create and display the iframe:
This logs in the user and displays the startPage.
5

Display a Specific Business

To load a business edit view directly, pass both startPage and selectedBusinessId:

Page Navigation

Use the partooPage instance to programmatically navigate:

Next Steps

Thanks to this quick tutorial, you learned how to display your first Partoo app view thanks to the JS SDK. To build a production ready integration, you might want to check the Integration Guide.