Movatterモバイル変換


[0]ホーム

URL:


DOCS >INTEGRATIONS >SAAS >ONFLEET (V1)

Get started with a free trial today

Already have an account? Sign in

Onfleet (v1)

Onfleet is supported by the Singer community
This integration is powered bySinger's Onfleet tap. For support,visit the GitHub repo orjoin the Singer Slack.

Onfleet integration summary

Stitch’s Onfleet integration replicates data using theOnfleet REST API. Refer to theSchema section for a list of objects available for replication.

Onfleet feature snapshot

A high-level look at Stitch's Onfleet (v1) integration, including release status, useful links, and the features supported in Stitch.

STITCH
Release status

Released on July 23, 2019

Supported by

Singer Community

Stitch plan

Standard

API availability

Available

Singer GitHub repository

singer-io/tap-onfleet

REPLICATION SETTINGS
Anchor Scheduling

Supported

Advanced Scheduling

Supported

Table-level reset

Unsupported

Configurable Replication Methods

Unsupported

DATA SELECTION
Table selection

Supported

Column selection

Supported

Select all

Supported

TRANSPARENCY
Extraction Logs

Supported

Loading Reports

Supported

Connecting Onfleet

Onfleet setup requirements

To set up Onfleet in Stitch, you need:

  • An Onfleet Basic plan or above. Onfleet limits API access to these plans, which is required to use Stitch’s Onfleet integration. Refer toOnfleet’s pricing page for more info.

  • Administrator privileges in Onfleet. Onlyadministrators can create API keys, which is required to use Stitch’s Onfleet integration.


Step 1: Create an Onfleet API key

Note: This step requiresadministrator privileges in Onfleet.
  1. Sign into yourOnfleet account.
  2. Navigate to theAPI & Webhooks tab.
  3. Click the+ button in the bottom of theAPI Keys section to create a new API key.
  4. In theName prompt that displays, enter a name for the API key. For example:Stitch
  5. ClickCreate Key.

Keep the API key somewhere handy - you’ll need it in the next step.

Step 2: Add Onfleet as a Stitch data source

  1. Sign into your Stitch account.
  2. On the Stitch Dashboard page, click theAdd Integration button.

  3. Click theOnfleet icon.

  4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

    For example, the name “Stitch Onfleet” would create a schema calledstitch_onfleet in the destination.Note: Schema names cannot be changed after you save the integration.

  5. In theAPI Key field, paste the Onfleet API key you created inStep 1.
  6. In theQuota Limit field, enter the percentage of the Onfleet API quota that Stitch is allowed to use. For example: Entering10 would allow Stitch to use 10% of the API quota.

    Onfleet limits API requests to 20 requests per second across all API keys in a given Onfleet account. Refer toOnfleet’s documentation for more info.

Step 3: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your Onfleet integration. This means that dataequal to or newer than this date will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond Onfleet’s default setting of1 year. For a detailed look at historical replication jobs, check out theSyncing Historical SaaS Data guide.

Step 4: Create a replication schedule

Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to theReplication Scheduling documentation for more information.

In theReplication Frequency section, you’ll create the integration’sreplication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Onfleet integrations support the following replication scheduling methods:

To keep your row usage low, consider setting the integration to replicate less frequently. See theUnderstanding and Reducing Your Row Usage guide for tips on reducing your usage.

Step 5: Set objects to replicate

Is an object missing or not replicating? Verify that the object meets the requirements forselection andreplication.

The last step is to select the tables and columns you want to replicate.Learn about the available tables for this integration.

Note: If a replication job is currently in progress, new selections won’t be used until the next job starts.

For Onfleet integrations, you can select:

  1. Individual tables and columns

  2. All tables and columns

Click the tabs to view instructions for each selection method.

  1. In the integration’sTables to Replicate tab, locate a table you want to replicate.
  2. To track a table, click thecheckbox next to the table’s name. A blue checkmark means the table is set to replicate.

  3. To track a column, click thecheckbox next to the column’s name. A blue checkmark means the column is set to replicate.

  4. Repeat this process for all the tables and columns you want to replicate.
  5. When finished, click theFinalize Your Selections button at the bottom of the screen to save your selections.
Important: Using theSelect All feature will overwrite any previous selections. However, selections aren’t final untilFinalize Your Selections is clicked. ClickingCancel will restore your previous selections.Refer to theSelect All guide for more info about this feature.
  1. Click into the integration from the Stitch Dashboard page.
  2. Click theTables to Replicate tab.

  3. In the list of tables, click the box next to theTable Names column.
  4. In the menu that displays, clickTrack all Tables and Fields:

    The Track all Tables and Fields menu in the Tables to Replicate tab

  5. Click theFinalize Your Selections button at the bottom of the page to save your data selections.

Initial and historical replication jobs

After you finish setting up Onfleet, itsSync Status may show asPending on either the Stitch Dashboard or in the Integration Details page.

For a new integration, aPending status indicates that Stitch is in the process of scheduling the initial replication job for the integration.This may take some time to complete.

Initial replication jobs with Anchor Scheduling

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to theAnchor Scheduling documentation for more information.

Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Replication will continue after the seven days are over. If you’re no longer interested in this source, be sure topause ordelete the integration to prevent unwanted usage.

Onfleet table reference

Schemas and versioning

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is forversion 1 of this integration.

This is the latest version of the Onfleet integration.

Table and column names in your destination

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (CusTomERs >customers), while case is maintained in PostgreSQL destinations (CusTomERs >CusTomERs). Refer to theLoading Guide for your destination for more info.

administrators

Theadministrators table contains info about the administrators in your Onfleet account.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

timeLastModified

Useful links

administrators schema on GitHub

Onfleet API method

Join administrators withon
tasks
administrators.id = tasks.creator
administrators.organization = tasks.organization
teams
administrators.id = teams.managers
organizations
administrators.organization = organizations.id
administrators.organization = organizations.delegatees
workers
administrators.organization = workers.organization

email

STRING

id

STRING

isActive

BOOLEAN

metadata

ARRAY

name

STRING

organization

STRING

phone

STRING

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

type

STRING

hubs

Thehubs table contains info about the hubs, or depots, for teams in your Onfleet account. A hub is the location from which all deliveries for a team’s workers start.

Replication Method

Full Table

Primary Key

id

Useful links

Onfleet documentation

hubs schema on GitHub

Onfleet API method

Join hubs withon
teams
hubs.id = teams.hub
hubs.teams = teams.id
workers
hubs.teams = workers.teams

address

OBJECT

apartment

STRING

city

STRING

country

STRING

number

STRING

postalCode

STRING

state

STRING

street

STRING

id

STRING

location

ARRAY

name

STRING

teams

ARRAY

organizations

Theorganizations table contains info about the organizations in your Onfleet account. In Onfleet, an organization is the top-most entity - it contains administrators, teams, works, and tasks, all of which belong to the organization.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

timeLastModified

Useful links

Onfleet documentation

organizations schema on GitHub

Onfleet API method

Join organizations withon
administrators
organizations.id = administrators.organization
organizations.delegatees = administrators.organization
tasks
organizations.id = tasks.organization
organizations.delegatees = tasks.organization
workers
organizations.id = workers.organization
organizations.delegatees = workers.organization

country

STRING

delegatees

ARRAY

email

STRING

id

STRING

image

STRING

name

STRING

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

timezone

STRING

tasks

Thetasks table contains info about the tasks in your Onfleet account. Tasks are units of work thatadministrators create and assign toworkers for completion.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

timeLastModified

Useful links

Onfleet documentation

tasks schema on GitHub

Onfleet API method

Join tasks withon
administrators
tasks.creator = administrators.id
tasks.organization = administrators.organization
teams
tasks.creator = teams.managers
tasks.id = teams.tasks
tasks.worker = teams.workers
organizations
tasks.organization = organizations.id
tasks.organization = organizations.delegatees
workers
tasks.organization = workers.organization
tasks.id = workers.activeTask
tasks.id = workers.tasks
tasks.worker = workers.id

completeAfter

NUMBER

completeBefore

NUMBER

completionDetails

OBJECT

events

ARRAY

failureReason

STRING

firstLocation

ARRAY

lastLocation

ARRAY

time

DATE-TIME

unavailableAttachments

ARRAY

creator

STRING

delayTime

NUMBER

dependencies

ARRAY

destination

OBJECT

address

OBJECT

apartment

STRING

city

STRING

country

STRING

number

STRING

postalCode

STRING

state

STRING

street

STRING

id

STRING

location

ARRAY

metadata

ARRAY

notes

STRING

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

estimatedCompletionTime

NUMBER

executor

STRING

feedback

ARRAY

id

STRING

identity

OBJECT

checksum

STRING

failedScanCount

NUMBER

merchant

STRING

metadata

ARRAY

notes

STRING

organization

STRING

overrides

OBJECT

pickupTask

BOOLEAN

quantity

NUMBER

recipients

ARRAY

id

STRING

metadata

ARRAY

name

STRING

notes

STRING

organization

STRING

phone

STRING

skipSMSNotifications

BOOLEAN

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

serviceTime

NUMBER

shortId

STRING

sourceTaskId

STRING

state

NUMBER

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

trackingURL

STRING

trackingViewed

BOOLEAN

worker

STRING

teams

Theteams table contains info about the teams in your Onfleet account.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

timeLastModified

Useful links

Onfleet documentation

teams schema on GitHub

Onfleet API method

Join teams withon
administrators
teams.managers = administrators.id
tasks
teams.managers = tasks.creator
teams.tasks = tasks.id
teams.workers = tasks.worker
hubs
teams.hub = hubs.id
teams.id = hubs.teams
workers
teams.tasks = workers.activeTask
teams.tasks = workers.tasks
teams.id = workers.teams
teams.workers = workers.id

hub

STRING

id

STRING

managers

ARRAY

name

STRING

tasks

ARRAY

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

workers

ARRAY

workers

Theworkers table contains info about the workers (or drivers) in your Onfleet account. Workers are organization members who complete tasks.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

timeLastModified

Useful links

Onfleet documentation

workers schema on GitHub

Onfleet API method

Join workers withon
administrators
workers.organization = administrators.organization
organizations
workers.organization = organizations.id
workers.organization = organizations.delegatees
tasks
workers.organization = tasks.organization
workers.activeTask = tasks.id
workers.tasks = tasks.id
workers.id = tasks.worker
teams
workers.activeTask = teams.tasks
workers.tasks = teams.tasks
workers.teams = teams.id
workers.id = teams.workers
hubs
workers.teams = hubs.teams

accountStatus

STRING

activeTask

STRING

capacity

NUMBER

delayTime

NUMBER

displayName

STRING

id

STRING

imageUrl

STRING

location

STRING

metadata

ARRAY

name

STRING

onDuty

BOOLEAN

organization

STRING

phone

STRING

tasks

ARRAY

teams

ARRAY

timeCreated

DATE-TIME

timeLastModified

DATE-TIME

timeLastSeen

DATE-TIME

userData

OBJECT

appVersion

STRING

batteryLevel

NUMBER

deviceDescription

STRING

platform

STRING

vehicle

OBJECT

color

STRING

description

STRING

id

STRING

licensePlate

STRING

timeLastModified

DATE-TIME

type

STRING

RelatedTroubleshooting

Questions? Feedback?

Did this article help? If you have questions or feedback, feel free tosubmit a pull request with your suggestions,open an issue on GitHub, orreach out to us.


[8]ページ先頭

©2009-2026 Movatter.jp