Lightspeed integration manual
This manual will talk you through the process of linking your Lightspeed shop to the Trunkrs Shipping portal. Please follow the steps below for a seamless integration.
Requirements
The connection requires three accounts:
Lightspeed account, accessible via the Lightspeed API Key
Trunkrs customer account, accessible via a client id and client secret
Trunkrs shipping portal account
The first two accounts are created for you and you will only have to obtain the credentials (see instructions below). The last account you can create yourself, we will guide you through it all in this manual.
1. Obtaining a Lightspeed API Key
In order for us to manipulate the front-end of your store (show a Shipping option on selected times) and to pull in the shipments where Trunkrs was selected as Shipping provider, we need to gain access to your store. This is done via an API Key. Unfortunately Lightspeed does not offer an automated way to do this, so if you did not request a key before you will have to do this by writing to the customer service: https://ecom-support.lightspeedhq.com/hc/nl/articles/220320568-API-documentatie
Lightspeed only allows the main user (the one who created the shop) to request an API key. The process takes some time, so make sure to do it from the main user account to avoid extra delays.
2. Obtaining a Trunkrs API credentials
Once we are able to talk to Lightspeed through the Lightspeed API key, we also need to be able to talk our API. To connect your Shipping Portal account to our main system we ask for a:
Client ID,
and Client Secret
If you are a new customer, these will be sent to you by our Sales team once our IT has created the account. If you are an existing customer you can request this information by sending an email to tech.support@trunkrs.nl.
3. Creating a shipping portal account
Creating a Shipping Portal account is super easy and can be done by you yourself. Please follow these steps:
Fill in the form and register for an account
You can now login!
Currently, we only allow for 1 account per customer. This means whoever will be handling the printing of labels should have access to this account. We will change this behavior in the near future.
4. Configuring the Shipment Method
After login in you will see
Your Shipments
page wherein you will find and manage all Trunkrs Shipments.Let’s hit the
Plugin configurations
in the menu for the:shipping method configuration
You will see
Configure Plugin
button for the first time, this means the plugin is not yet configured and it needs to be configured.Start with completing your account details. These will be used as the sender information in our system.
Now let’s continue to the actual configuration:
under
enable
selectyes
to enable the pluginunder
title
enter the title of the shipment method (this is visible to your customer). We would suggest something likeTrunkrs
orTrunkrs Same Day Delivery
under
description
you can give a super short description of the shipment method (also visible to the customer). We would suggestSuper snelle bezorging met Trunkrs
under
price 1st shift
enter the price (in euro’s) you want to charge to your customer for selecting Trunkrs during the first-shift time span (check the blue information box below for clarification)under
timespan 1st shift
select the time span for the first shift. This is the time the shipment option will be shown in your front-end for the price of the 1st shift.under
price 2nd shift
enter the price (in euro’s) you want to charge to your customers for the second trunkrs shift (often next day delivery)under
timespan 2nd shift
select the timespan. If you do not want to offer a second shift drag both handles all the way to the left. It should show 12:00AM - 0:00AMThe plugin will automatically be enabled in the weekends (delivery will be on monday). Under
price weekend
you can enter the price (in euro’s) you want to charge your customer.
Finally let’s setup the connection with Trunkrs:
under
client id (staging)
enter the staging client id you have received from Trunkrsunder
client secret (staging)
enter the staging client secret you have received from Trunkrsunder
client id (production)
enter the production client id you have received from Trunkrsunder
client secret (production)
enter the production client secret you have received from Trunkrsset the
API mode
toggle to the left forstaging (test mode)
to create test shipments for which you will not be charged, or to the right forlive
mode to actually start shipping.finally let’s hit the blue button
Test staging/live API Connection
after loading it should show: connected! If this does not happen, please check the credentials.Let’s now hit the save button to return to the configuration steps overview
1st and 2nd shift
We allow for the setup of two shifts with two different prices. In general shift one will go up to the cut-off time provided by Trunkrs and is used for same day deliveries. Shift two can then be used for next day deliveries.
For example: your Trunkrs cut-off time is 11AM, you also use PostNL and there cut off time is 16PM.
We would suggest setting shift 1 from 12AM-11AM (midnight to 11AM) for your same day shipments.
Shift 2 could be setup from 16PM - 11:59PM to offer a next day option after the PostNL cut off time.
5. Configuring the Lightspeed connection
After configuring the Shipment Method, you can configure the
Lightspeed API configuration
hit the buttonconfigure
Let’s configure lightspeed:
under
Lightspeed API key
enter the api key provided by Lightspeed (see step 1 of this manual)under
Lightspeed API secret
enter the api secret provided by Lightspeedunder store language select
dutch
orenglish
under cluster select the cluster you are in. This should be
webshopapp
if you are a dutch webshop (https://ecom-support.lightspeedhq.com/hc/en-us/articles/115000272353-2-b-Cluster-information)hit
save api credentials
to return to the overview
6. Connecting / Disconnecting the Shipping Portal
The final step of configuration is connecting the shipping portal to Lightspeed. This will setup the actual shipping method. Under Lightspeed API configuration, you will see two buttons, which is the Connect
and Disconnect
, hit the button connect
to connect the plugin to the Lightspeed checkout or hit the button disconnect
to disconnect the plugin. If all goes well it will show a status: Connected
if not, please check the lightspeed credentials.
Lightspeed is cached. It might take up to 10 minutes for the shipping method to actually become visible in your front-end. Likewise changes made to the configuration might take up to 10 minutes to actually show