Skip to content
Vectis

Partner API reference

Every Marketplace query and mutation, API scope and webhook topic in the Vectis Partner API.

Public queries

These need no authentication.

QueryDescriptionParameters
marketplaceApplicationsBrowse published appscategorySlug?, search?
featuredApplicationsFeatured apps for the Marketplace home—
marketplaceApplicationApplication detail by IDid
marketplaceCategoriesAll active categories—
apiScopesAll available API scopes—
webhookTopicsAll available webhook topics—

Authenticated queries

QueryDescriptionParameters
installedApplicationsYour organisation's installed apps—
installedApplicationInstallation detailinstallationId
installationScopesScope grants for an installationinstallationId
webhookDeliveriesDelivery log for a subscriptionsubscriptionId, limit?
partnerApiRequestLogsAPI request log for an installationinstallationId, limit?
myPartnerThe current user's partner account—
partnerApplicationsApps belonging to a partnerpartnerId

Partner mutations

MutationDescriptionPermission
registerPartnerRegister a partner accountPublic
createApplicationCreate an appAuthenticated
updateApplicationUpdate app detailsAuthenticated
submitApplicationForReviewSubmit an app for reviewAuthenticated
publishApplicationPublish an approved appAuthenticated
deprecateApplicationDeprecate a published appAuthenticated
submitVersionSubmit a new app versionAuthenticated
rotateClientSecretRotate the OAuth client secretAuthenticated

OAuth2 mutations

MutationDescriptionPermission
oAuthTokenIssue access and refresh tokensPublic
oAuthRefreshTokenRefresh an access tokenPublic
oAuthRevokeTokenRevoke a tokenPublic
oAuthIntrospectCheck a token's validity and detailsPublic

Organisation operations

MutationDescriptionPermission
installApplicationInstall an app for your organisation, with applicationId and grantedScopeIdsmarketplace.install
uninstallApplicationUninstall an app from your organisationmarketplace.manage
grantScopeGrant a scope to an installationmarketplace.manage
revokeScopeRevoke a scope from an installationmarketplace.manage
subscribeWebhookSubscribe an installation to a webhook topic, with an endpointUrlmarketplace.manage
unsubscribeWebhookUnsubscribe from a webhook topicmarketplace.manage
updateWebhookEndpointChange a subscription's endpoint URLmarketplace.manage
rotateWebhookSecretRotate an installation's webhook signing secretmarketplace.manage
sendTestWebhookSend a test event to a subscription's endpointmarketplace.manage

For example, to subscribe an installation to a topic:

graphql
mutation {
  subscribeWebhook(
    input: {
      installationId: "installation-id"
      topicId: "topic-id-for-booking-created"
      endpointUrl: "https://partner-app.com/webhooks/vectis"
    }
  ) {
    success
    subscription {
      id
      endpointUrl
      isActive
    }
    error
  }
}

API scopes

Scopes follow the {resource}:{action} pattern. Sensitive scopes are flagged and need explicit consent.

CodeDisplay nameResource groupSensitive
vehicles:readRead VehiclesVehiclesNo
vehicles:writeWrite VehiclesVehiclesNo
bookings:readRead BookingsBookingsNo
bookings:writeWrite BookingsBookingsNo
fuel:readRead Fuel DataFuelNo
fuel:writeWrite Fuel DataFuelNo
ruc:readRead RUC DataRUCNo
ruc:writeWrite RUC DataRUCNo
users:readRead UsersUsersYes
pools:readRead PoolsPoolsNo
trips:readRead TripsTripsNo
inspections:readRead InspectionsInspectionsNo
telematics:readRead TelematicsTelematicsNo
expenses:readRead ExpensesExpensesNo
expenses:writeWrite ExpensesExpensesNo
tolls:readRead TollsTollsNo
tolls:writeWrite TollsTollsNo
odometer:readRead OdometerOdometerNo
odometer:writeWrite OdometerOdometerNo
organisation:readRead OrganisationOrganisationYes

Webhook topics

Events that partner applications can subscribe to.

CodeDisplay nameResource group
booking.createdBooking CreatedBooking
booking.updatedBooking UpdatedBooking
booking.cancelledBooking CancelledBooking
booking.checked_outBooking Checked OutBooking
booking.checked_inBooking Checked InBooking
vehicle.createdVehicle CreatedVehicle
vehicle.updatedVehicle UpdatedVehicle
fuel.createdFuel Transaction CreatedFuel
odometer.recordedOdometer RecordedOdometer
inspection.completedInspection CompletedInspection
trip.completedTrip CompletedTrip

Webhook delivery statuses are Pending, Delivered, Failed and DeadLettered.

Authentication summary

  • Partner API access: OAuth2 client credentials grant. Partners authenticate with client_id and client_secret to receive bearer tokens.
  • Access tokens: valid for 1 hour, sent as Authorization: Bearer <token>.
  • Refresh tokens: valid for 30 days and single-use, rotated on each refresh. Reusing one revokes the whole token family.
  • Client secret rotation: the previous secret stays valid for 24 hours.