Lightspeed

Tags:

Updated:

4 minute read

Application configuration is an integral activity prior to the process of integration. If your chosen application is Salesforce, credentials need to be provided for validating the agent. Here you will find the detailed description on how to configure the agents for the application of Lightspeed, Troubleshooting issues and the attributes and action.

Lightspeed, is a REST Application which supports OAUTH 2.0 authentication. The Adapter of the application Lightspeed, provides the leverage to communicate and adapt with the AEC Portal. This section provides you the detailed process of validating the credential of the application Lightspeed.

Pre-requisites for Lightspeed Configuration

  1. You need to have valid credentials of the portal.
  2. You need to choose the Lightspeed Application from the APP section.
  3. Create a connectionwith Lightspeed.
  4. Publish the workflow and the connection in the portal. Update Configuration & Update Adapter to deploy the configurations made in Portal to the On-Premise Agent. Exit and Restart the On-Premise Agent after Updating Adapters.

If you are using Process Flow, you just need to deploy the designed Process Flow, for getting the configuration page of the chosen application.

Steps to Configure Lightspeed Credential in OP Agent

  1. In the App Configurational Panel of the agent, Click on the + button beside the app Lightspeed.
  2. The Adapter configurations will get downloaded automatically (within a timespan). You can now proceed with credential authorization.
    Lightspeed Agentconfig1
  3. You can view the fields for validating the Lightspeed adapter, after the configurations setup is over. The following are the fields available for validating the adapter.
    • API Path - This is the Base URL of the Lightspeed application you are using.
    • Client ID - This is the ID obtained authorization from the user which is generated in the application.
    • Client Secret - A secret key that establishes the ownership of the Consumer Key generated by you.
    • Redirect URL - This is the secondary URL or the Call Back URL required for data restoration.
    • Auth URL - This URL obtains the user authorization for Consumer access.
    • Access Token URL - The URL used to exchange the User-authorized Request Token for an Access Token Lightspeed Agentconfig2
  4. To register for an OAuth client, use the OAuth Client Registration Page. You can view the below screen with the fields for API Client Details & Contact Person. Lightspeed Agentconfig3
  5. The following are the details you need to provide for completing the Registration Process. For API Client Details:
    • Name (mandatory): This field requires the integration name which users will see when approving access for your OAuth client. This name should describe your application well so that users understand which application is asking for permission to their account.
    • Website (mandatory): The Website URL point to any valid website.
    • Redirect URL (mandatory): This URL will receive the temporary code that you can use to request an access token. The users will be redirected to this location after granting permission to any valid website. For Contact Person Details
    • Name (mandatory): This field requires the main contact person name
    • Email (mandatory): This field requires a valid email address. We will use this email address to send you API-related announcements. Make sure you can receive email at this address and keep it up to date as needed.
    • Phone (Optional): A valid phone number.
      Lightspeed Agentconfig4
  6. Once the details are provided, click on the Register API Client Button. The Client ID & Client Secret would be generated. It is recommended to store and save the generated Client ID and Secret as you will not be able to look them up after as it takes 24-48 hours for the generated credentials to validate and get registered. Lightspeed Agentconfig5
  7. Navigate back to the Agent Credential page and enter the generated details. You will get the details of the API Path, Auth URL & Access Token URL in the API Documentation of Lightspeed. Lightspeed Agentconfig6
  8. After giving details of all the fields, click the Authorize button. The following window appears. Lightspeed Agentconfig7
  9. Enter the lightspeed application credentials to authorize the validation process. Lightspeed Agentconfig8
  10. Click on the Authorize Application button after providing the credentials. Lightspeed Agentconfig9
  11. You will be redirected to the Call back URL. Upon successful redirection, you can view the successful validation message in the Agent. Lightspeed Agentconfig10
  12. Click SAVE Button.
    Lightspeed Agentconfig11

    Attributes and Actions

    While defining a connection to an API endpoint in Lightspeed, you require clear understanding about the data requirements and endpoint configurations. You can refer to this document to find all the endpoint details of your Lightspeed Application. To define the endpoint in APPSeCONNECT, you need Actions and Entities. Actions are specifically targeted for an endpoint while schema is the data needed to execute the API. Here, is the list of some of the pre-packaged API actions defined for you which you can easily plug and play while doing your integrations.

Endpoint Action Action Type Schema API Help
Customer Customer GET Customer Fetch Customer from Lightspeed
Customer Post/Customers POST Customer Adding Customers to Lightspeed
Item Item GET Item Fetching Items from Lightspeed
Item Post/Item POST Item Adding Items to Lightspeed
Image Image GET Image Fetching Images of Items from Lightspeed
Sale Sale GET Sale Fetching Sales or fulfillments from Lightspeed
Sale POST/Sales Post Sale Adding Orders/Sales to Lightspeed