Skip to content
scalar help center
  • Browse articles
    MULTI_LETTERS_1024px_CYAN
    User documentation

    Provides instructions, guidance and information

    TECHNCAL_INFORMATION_1024px_CYAN
    Hardware installation guides

    Guides the installer through the hardware installation

    Developer documentation

    Serves a crucial resource for software developers

Get support
  • Logout

Login
  • Select Region and Language

    Europe, Middle-East and Africa

ZF

Search

User Documentation

  • Cargo transport
    • Welcome to SCALAR
    • Getting started
    • Home
      • Fleet view
      • Map overview
      • Alarms
      • Messaging
      • Trips
      • Route planner
      • Tachograph
      • Infringements
      • Duty time
      • Brake performance
      • Reefer insights
      • Eco performance
      • Asset insights
      • View and manage driver documentation
      • Fuel drops
      • Data sharing – manage sessions
      • Manufacturer reports
      • Reports
      • Map
        • Monitor assets
        • Monitor drivers
        • Manage and monitor places
      • Reports
        • Custom reports
    • Administrator
      • Capability Configurator
      • User management
      • Unit management
      • Asset management
      • Resource combinations
      • Place management
      • Group management
      • Team management
      • Integrator management
      • Settings management
      • Configure alarm rules
      • Driver management
      • Configure tachograph settings
      • Activities
      • Define document types and configure profiles
      • Data sharing – agreement and contract creation
      • Subscription renewal of telematic services
      • Audit logs
      • Impersonation
    • Spot subcontracting
      • Spot subcontracting – Getting started
      • Integrator – Datahub API
      • Driver – Webform
    • Account
      • Notifications
      • Profile management
    • SCALAR Cargo App for Drivers
      • SCALAR Cargo App for Drivers
      • Driver login methods
      • Activities
      • Messaging
      • Schedule
      • Upload documents
      • Service time
      • Settings
    • Datahub
      • Rest API
      • Webhook developer metrics
      • Raw Message Streaming (RMS)
      • Datahub subscription
      • Datacoins
    • Workshop
      • Workshop
      • SCALAR EVO Guard
      • SCALAR EVO Pulse
      • SCALAR EVO Flow / Touch / Flow (v2)
    • Customer portal
      • Unit subscription
      • View subscription information
      • Invoices
      • Manage child organizations
    • Support
      • Reach out to Customer Support
      • My repairs
    • Service
      • OTA manager
    • Data privacy
      • Data Privacy
    • ASK AI
      • ASK AI: AI-Driven Migration Assistant
  • Passenger transport
    • Basic concepts
    • Setup organization
    • What is Passenger transport?
    • Configure transportation service
    • Plan your operations in SCALAR
    • Configure transportation service
      • Manage your transportation services in SCALAR
      • Customization of the Traveler App
      • Publication of new Traveler App versions to the stores
      • Traveler App and Driver App release process
    • Operating the transportation service
      • Monitor your operations in SCALAR Dispatching view
      • Your step-by-step guide for handling operational incidents
      • Place a booking on behalf of a traveler
      • Communicate with your travelers
      • Operations Support Flow
    • Release notes
      • Traveler App Android
      • Traveler App iOS
      • Driver App
      • Web App
  • Software Update Management System (SUMS)
    • Welcome
    • Getting started with SUMS
    • Welcome and get started with SUMS
    • SUMS dashboard
    • SUMS viewer
    • Update vehicle information
    • Software package distribution through Workshop
    • Software package download during EOL production
    • Software package management   
    • Vehicle type management
    • Vehicle management
    • Glossary: Software Update Management System
  • Public Key Infrastructure
    • SCALAR Public Key Infrastructure SaaS Solution

Hardware Installation Guides

  • SCALAR EVO Touch
  • SCALAR EVO Cast
  • SCALAR EVO Flow
  • SCALAR EVO Guard
  • TrailerCast with Battery
  • SCALAR EVO Pulse
  • Home
  • Docs
  • User Documentation
  • Cargo transport
  • Spot subcontracting
  • Integrator – Datahub API
View Categories

Integrator – Datahub API

Updated on September 19, 2025
URL copied to clipboard!

Generate JWT token for authentication #

To be able to create, update or get feedback on a trip in the spot subcontracting module, a JWT token needs to be requested.

For this, you need the client ID and client secret from the integrators page.
More information: Integrator management

The scope should include “PGAPI”.

Use this token in the header of your API request when creating a spot subcontracted trip.

More information on how to create a token: Retrieve the access token.

Create a trip – POST #

A subcontracted trip must include at least 2 missions with an activity: 1 loading and 1 unloading mission

Each mission must include a place (name and address)

More information on how to create a trip: Create a trip.

Update a trip – PUT #

The spot subcontracted trip can only be updated if the trip is not started. The complete trip can be changed by using the corresponding Trip ID.

The body of the update call is the same as for the create trip call.

More information on how to update a trip: Update a trip.

Trip feedback – GET #

A driver adds updates to the trip by pressing the “Arrived” or “Finished” buttons at each mission

(all details on how the driver can add feedback can be found in Driver feedback).

No other updates are sent along the way, we do not track the driver.

If this is a requirement, 2 options are available:

  • Use the Trip ID that is specified in the response when creating the trip and poll repetitive
  • Create a subscription so the updates are pushed from Spot subcontracting towards the integrator

Trip feedback – Poll #

Use the Trip ID that is specified in the response when creating the trip to do a GET trip datahub API call. The call returns all the trip data including the signature section and feedback section of each mission.

More information on how to retrieve a trip: Retrieve a trip.

Retrieve file #

When a file has been uploaded into the driver form (Driver feedback), it is possible to download it using datahub API calls:

  1. First, request feedback on the trip to retrieve the fieId(s) of each mission. If no files have been uploaded, an empty array is returned.
  2. Secondly, use the ‘Get file’ datahub API call to create a temporary link and return it in the reply.


The created URL expires after 5 minutes. If you try to access it after that, an ‘Access Denied’ error message is returned.

More information on how to retrieve a file: Retrieve file(s).

Get signature #

When a signature has been added into the driver form (Driver feedback), it is possible to download it using datahub API calls.

  1. First, request feedback on the trip to retrieve the signature ID(s) for each mission. If no signatures have been added an empty array is returned.
  2. Next, use the ‘Get signature’ datahub API call which will return the content of the signature image as a base64 encoded string.

More details on how to get a signature: Retrieve signature(s).

Delete a trip #

It is not possible to manually delete the trip using the datahub API.

A trip is automatically deleted:

  • 60 days after the trip has been marked as finished
  • when the compliance module requests to delete all data of an organization

When the last update of the trip (by using the form) is longer than 7 days ago, it is automatically marked as finished. The URL will no longer show the trip actions, but the “Trip is finished” page.

Give us some feedback

Was this article useful?

What are we doing well? (0/1000)

Character limit reached

Feedback cannot be empty.

If you need help from Support, you can submit your query at zf-scalar-servicedesk@zf.com.

Thanks for your feedback!

Log in to leave a feedback

Or

Spot subcontracting – Getting startedDriver – Webform
Table of Contents
  • Generate JWT token for authentication
  • Create a trip – POST
  • Update a trip – PUT
  • Trip feedback – GET
    • Trip feedback – Poll
    • Retrieve file
    • Get signature
  • Delete a trip
ZF

SCALAR is ZF’s pioneering Fleet Orchestration Platform (FOP). ZF is a global technology company supplying systems for passenger cars, commercial vehicles and industrial technology, enabling the next generation of mobility.

More about ZF

Articles

User documentation
Hardware documentation
Developer documentation

Get in touch

Join our team
Get support
FAQ
SCALAR developers

Cookie Settings

Imprint

Data Protection

© ZF CV Systems Global GmbH

Search

    EMEA

    Americas

    APAC

    India

    Browse Articles

    User Documentation
    Hardware Documentation
    Developer Documentation

    Get Support
    Login
    • [region_toggles layout="vertical"] [custom_flag_menu_script]