Skip to content

If you need to do a CarTrack integration, this repo is a good starting point. It contains a Linx solution that has some basic calls to the CarTrack API and that will assist you in making your CarTrack integration as efficient and as simple as possible. Use the pre-created functions as an example, or to assist in your own integration.

License

Notifications You must be signed in to change notification settings

linx-software/CarTrack_Integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartrack Integration Sample

Description

This repo contains a Linx 6 solution that shows how you can consume the Cartrack API. Use this solution as a base for your Cartrack integration. Add your system integration and uses the pre-created functions to interact with the Cartrack API. It makes use of a REST call to call the web service with a JSON body (handled by Types). The result is a JSON object that can be manipulated and consumed by other Linx functions or processes. The solution was made to be generic enough so that it will only call the endpoints and use them as you need to in your integration project.

You can download this sample and manipulate it to suit your integration using Linx 6.

Installation

You will need the Linx 6 Designer, get it here

The solution also makes use of two Settings that you will need to set:

  • CarTrackBaseURL: Set the base URL for the Cartrack API, this is preconfigured

  • CarTrackToken: Your CarTrack Token

  • CarTrackUser: Your CarTrack User

Usage

All authentication details (Token and User) are placed in the settings.

The solution has 4 main functions:

CT_GetDrivers:

This function will get all drivers. It works by calling the drivers endpoint. It will return a list of drivers.

CT_GetJobs:

This function will get a list of Jobs based on input dates. The function has two parameters:

  • Created_From: This is the date that the order was create, and the filter will be applied on the API to filter only orders from the specified date. It is sent in the filter[ create_ts_from ] query parameter
  • Created_To: This is the date that the order was create, and the filter will be applied on the API to filter only orders to the specified date. It is sent in the filter[ create_ts_to ] query parameter.

The date filter is applied between the two entered dates.

It works by calling the jobs endpoint. It will return a list of Jobs.

CT_GetSpecificJob:

This function will get a specific job based on the JobID. The function has an input parameter for the JobID. It works by calling the jobs endpoint.

CT_SaveNewJob:

This function will create a new Job. It has a type input parameter that will require you to input all delivery information, use the CarTrackDelivery type to know what fields are to be added. It works by calling the jobs POST endpoint. It will return a list of Jobs.

Contributing

For questions please ask the Linx community.

License

MIT

About

If you need to do a CarTrack integration, this repo is a good starting point. It contains a Linx solution that has some basic calls to the CarTrack API and that will assist you in making your CarTrack integration as efficient and as simple as possible. Use the pre-created functions as an example, or to assist in your own integration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published