Swag catalog manager
Embed the swag catalog manager iframe inside your platform. This will allow your customers to automatically create and customize their company swag catalog.
How to embed the swag catalog manager
Create a company
If this is the first visit of a customer, you should create a company using the Create Company API.
In response, you will receive a companyId
and a companySlug
.
Create a token for this company
Use the Create OAuth Tokens API to get a refreshToken
and accessToken
for this company.
Make sure to pass the companyId
to get a token for this specific customer.
Show a pre-authenticated iframe
Use the accessToken
, refreshToken
and companySlug
in the iframe URL as follows:
dev-admin.covver.io
to admin.covver.io
when using the live environmentDeep linking the iframe
You can choose to show the iframe on a specific page:
Catalog page (manage collections):
Collection page (manage products):
Design editor (edit a specific product):
?covverAccessToken=${accessToken}&covverRefreshToken=${refreshToken}
query paramsListen to post messages
Register to post messages to listen to events within the iframe:
Event types: