API reference

RoutiGo Webhook REST API

The Webhook Service enables clients to subscribe to RoutiGo events and receive real-time notifications via HTTP callbacks. Configure webhooks for various event types such as tours, shipments, and assignments.

Version 2.0Base URL https://api.routigo.com/apiFormat JSONSpec OpenAPI 3.1.0 · download

Authentication: API key or Bearer token

Send your key in the X-API-KEY header with every call.

Send a token in the Authorization: Bearer header.

How to get a key →

6 calls

About this API

Authentication

All requests must be authenticated. This API supports the following methods:

  • X-API-KEY — API key for standard client access, passed as a request header.
  • X-API-KEY-SUPPLIER — API key for supplier access, passed as a request header.
  • Bearer token — JWT token passed via the Authorization: Bearer <token> header.

For more information, see the Authentication section.

Event Types & Triggers

Different event types support specific triggers. Valid combinations are:

Tour Events

  • TOUR_PLANNED, TOUR_STARTED, TOUR_FINISHED, TOUR_CALCULATED

Shipment Events

  • SHIPMENT_CREATED, SHIPMENT_UPDATED, SHIPMENT_DELETED
  • Plus all Tour events

Assignment Events

  • ASSIGNMENT_DONE, ASSIGNMENT_REDONE, ASSIGNMENT_CREATED, ASSIGNMENT_UPDATED, ASSIGNMENT_DELETED, ASSIGNMENT_ARRIVED
  • Plus all Tour events

Webhook Delivery & Reliability

Retry Policy

  • Max retries: 5 attempts (configurable via secondsDelayBeforeRetry in action)
  • Default delay: 600 seconds (10 minutes) between retries, applied by the quorum queue behind OUTGOING_MESSAGES_RETRY_EXCHANGE_NAME, which holds a requeued message until its x-opt-delivery-time header
  • Backoff: Exponential backoff with minimum 1 second

Message TTL

  • Default TTL: 1440 minutes (24 hours) - configurable via minutesToLive in action
  • Messages expire and move to Dead Letter Queue (DLQ) after TTL

Success Criteria

  • HTTP status codes 200-299 are considered successful
  • Other status codes trigger retry logic

Dead Letter Queue (DLQ)

  • Failed messages after 5 retries move to DLQ
  • Contact RoutiGo support to investigate or recover DLQ messages

Webhook Payload Structure

When an event is triggered, a POST request is sent to your configured URL with a JSON payload in the following structure:

{
  "context": {
    "companyCode": "YOUR_COMPANY",
    "serviceCentreCode": "AMS",
    "routeName": "Route-North-1",
    "plannedDate": "2024-02-11"
  },
  "creationDate": "2024-02-11T10:30:00Z",
  "eventType": "TOUR_PLANNED",
  "entityType": "TOUR",
  "entity": {
    ... entity-specific data ...
  }
}

Payload Fields

  • context: Contextual information (companyCode, serviceCentreCode, routeName, plannedDate)
  • creationDate: ISO-8601 timestamp when the event was created
  • eventType: The specific event that triggered this webhook (e.g., TOUR_PLANNED, SHIPMENT_CREATED)
  • entityType: The entity type (TOUR, SHIPMENT, ASSIGNMENT)
  • entity: Entity-specific data - structure varies by entityType

Entity-Specific Payloads

The entity field contains different data based on the entityType:

  • TOUR: Tour details, vehicle type, planned/current/actual timing values, start location, list of stops
  • SHIPMENT: Identifier, external ID, plan date, pickup/delivery locations, supplier, units, tags
  • ASSIGNMENT: Shipment ID, assignment ID, type, time constraints, completion data, instructions, contacts

Getting Example Payloads

Before you build your webhook receiver, you will want to know exactly what JSON to expect for each event type. The endpoints in the section Webhook Payload Examples let you fetch realistic example payloads so you can design and test your integration without waiting for live events to occur.

Service Centre Permissions

  • The serviceCentres field in webhook configurations defaults to all service centres you have access to
  • You can only create webhooks for service centres you have permissions for
  • When null or omitted, the webhook applies to all your accessible service centres
  • When explicitly set, it must be a subset of your permitted service centres

Webhook Payload Examples

Fetch realistic example payloads per event type to design and test your webhook integration before any live events occur.

RoutiGo Webhook REST API · Webhook Payload Examples↑ Index

Get webhook payload example for a specific event type

Returns a realistic example of the JSON payload RoutiGo will POST to your webhook URL when the specified event occurs.

Use this to inspect the data structure and build or test your webhook receiver before any live events take place. For example, if you want to react to a shipment being completed, call this with eventType=SHIPMENT to see the exact fields and format you need to handle in your integration.

Supported event types:

  • TOUR - Tour planning and execution events
  • SHIPMENT - Shipment lifecycle events
  • ASSIGNMENT - Assignment/task events
GET/v2/webhooks/payload-examples/{eventType}

Parameters

Path
eventTyperequired
string

The event type to get an example for (TOUR, SHIPMENT, ASSIGNMENT)

e.g. TOUR

Returns

Example webhook payload for the specified event type

one ofTourWebhookPayloadShipmentWebhookPayloadAssignmentWebhookPayload
TourWebhookPayloadoptional
TourWebhookPayload 5 fields
contextoptional
EventContext 4 fields

Contextual information about where this event occurred

companyCodeoptional
string

The company code this event belongs to

e.g. ACME_CORP

serviceCentreCodeoptional
string| null

The service centre code where this event occurred (may be null for some event types)

e.g. AMS

routeNameoptional
string| null

The route name associated with this event (may be null)

e.g. Route-123

plannedDateoptional
string· date| null

The planned date for this route/shipment (may be null)

e.g. 2024-02-11

creationDateoptional
string· date-time

ISO-8601 timestamp when this event was created

e.g. 2024-02-11T10:30:00Z

eventTypeoptional
string

The type of event that triggered this webhook

e.g. TOUR_PLANNED

entityTypeoptional
string

The entity type this event relates to

e.g. TOUR

entityoptional
TourEntity 11 fields

Tour-specific data

serviceCentreCodeoptional
string

Service centre code

e.g. AMS

routeNameoptional
string

Route/tour name

e.g. Route-North-1

plannedDateoptional
string· date

Planned date for this tour

e.g. 2024-02-11

vehicleTypeoptional
string

Vehicle type

e.g. CAR

releaseMomentoptional
string· date-time

When the route was released for planning

plannedValuesoptional
TimingValues 3 fields

Planned timing values

distanceoptional
integer· int32

Distance in meters

e.g. 15000

startTimeoptional
string· date-time

Start time

endTimeoptional
string· date-time

End time

currentValuesoptional
TimingValues| null 3 fields
distanceoptional
integer· int32

Distance in meters

e.g. 15000

startTimeoptional
string· date-time

Start time

endTimeoptional
string· date-time

End time

actualValuesoptional
TimingValues| null 3 fields
distanceoptional
integer· int32

Distance in meters

e.g. 15000

startTimeoptional
string· date-time

Start time

endTimeoptional
string· date-time

End time

startLocationoptional
Address 6 fields

Starting location for this tour

streetNameoptional
string| null

Street name

e.g. Main Street

houseNumberoptional
string| null

House number

e.g. 123

houseNumberAdditionoptional
string| null

House number addition/suffix

e.g. A

postalCodeoptional
string| null

Postal/ZIP code

e.g. 1234 AB

cityoptional
string| null

City name

e.g. Amsterdam

countryoptional
string| null

Country code

e.g. NL

stopsoptional
StopEntity [ ] 7 fields

List of stops on this tour

addressoptional
Address 6 fields

Stop address/location

streetNameoptional
string| null

Street name

e.g. Main Street

houseNumberoptional
string| null

House number

e.g. 123

houseNumberAdditionoptional
string| null

House number addition/suffix

e.g. A

postalCodeoptional
string| null

Postal/ZIP code

e.g. 1234 AB

cityoptional
string| null

City name

e.g. Amsterdam

countryoptional
string| null

Country code

e.g. NL

assignmentsoptional
AssignmentEntity [ ] 14 fields

Assignments to complete at this stop

shipmentIdoptional
string

Parent shipment ID

e.g. SHP-001-2024

assignmentIdoptional
string

Assignment ID

e.g. ASG-001

assignmentTypeoptional
string

Type of assignment

e.g. DELIVERY

supplieroptional
Supplier| null 2 fields
identifieroptional
string

Supplier identifier

e.g. SUPPLIER_ABC

nameoptional
string

Supplier name

e.g. ABC Logistics

timeConstraintsoptional
TimeConstraint [ ] 3 fields

Time constraints for this assignment

deliverAfteroptional
string· date-time

Deliver after this time

deliverBeforeoptional
string· date-time

Deliver before this time

typeoptional
string

Constraint type

e.g. COMMUNICATED

completionDataoptional
CompletionData| null 5 fields
timeoptional
string· date-time

Completion timestamp

locationoptional
Location| null…
surveyAnswersoptional
AssignmentAnswers| null…
courierUsernameoptional
string

Username of the courier who completed the assignment

e.g. john.driver

endStatusoptional
string

Final status of the assignment

e.g. DELIVERED

onRouteInstructionsoptional
string| null

Instructions for the driver en route

onSiteInstructionsoptional
string| null

Instructions for the driver on site

contactsoptional
Contact [ ] 4 fields

Contact persons for this assignment

nameoptional
string

Contact name

e.g. Jane Doe

mobilePhoneoptional
string| null

Mobile phone number

e.g. +31612345678

emailoptional
string| null

Email address

e.g. jane@example.com

languageoptional
string| null

Language code

e.g. nl

interactionsoptional
Interaction [ ] 2 fields

Customer interactions/questions

alcoholCheckRequiredoptional
boolean

Whether an alcohol check is required

default falsee.g. false

paymentRequiredoptional
PaymentRequired| null…
trackingIdoptional
string

Tracking ID for external tracking

e.g. TRK-123456

unitsoptional
ShipmentUnit [ ] 3 fields

Units/packages to deliver

nameoptional
string

Unit name/type

e.g. PALLET

amountoptional
number· double

Quantity/amount

e.g. 2

tagsoptional
Tag [ ]…

Tags associated with this unit

tagsoptional
Tag [ ] 2 fields

Tags associated with this assignment

identifieroptional
string

Tag identifier/value

e.g. BARCODE-001

typeoptional
string

Tag type

e.g. BARCODE

requiredSkillsoptional
string [ ]

Required skills for this assignment

initialETAoptional
string· date-time

Initial estimated time of arrival

currentETAoptional
string· date-time| null

Current ETA (updated during route execution)

actualArrivalTimeoptional
string· date-time| null

Actual arrival time (after arrival)

plannedDurationoptional
integer· int32

Planned duration in seconds

e.g. 600

actualDurationoptional
integer· int32| null

Actual duration in seconds (after completion)

assignedUseroptional
AssignedUser| null 3 fields
userNameoptional
string
firstNameoptional
string| null
lastNameoptional
string| null
ShipmentWebhookPayloadoptional
ShipmentWebhookPayload 5 fields
contextoptional
EventContext 4 fields

Contextual information about where this event occurred

companyCodeoptional
string

The company code this event belongs to

e.g. ACME_CORP

serviceCentreCodeoptional
string| null

The service centre code where this event occurred (may be null for some event types)

e.g. AMS

routeNameoptional
string| null

The route name associated with this event (may be null)

e.g. Route-123

plannedDateoptional
string· date| null

The planned date for this route/shipment (may be null)

e.g. 2024-02-11

creationDateoptional
string· date-time

ISO-8601 timestamp when this event was created

e.g. 2024-02-11T10:30:00Z

eventTypeoptional
string

The type of event that triggered this webhook

e.g. TOUR_PLANNED

entityTypeoptional
string

The entity type this event relates to

e.g. TOUR

entityoptional
ShipmentEntity 8 fields

Shipment-specific data

identifieroptional
string

Internal shipment identifier

e.g. SHP-001-2024

externalIdoptional
string

External/customer shipment ID

e.g. ORDER-12345

planDateoptional
string· date

Planned delivery date

e.g. 2024-02-11

pickUpLocationoptional
ShipmentLocation| null 12 fields
identifieroptional
string| null

Location identifier

e.g. LOC-001

durationoptional
string| null

ISO 8601 duration for time spent at this location

e.g. PT15M

addressInformationoptional
Address| null 6 fields
streetNameoptional
string| null

Street name

e.g. Main Street

houseNumberoptional
string| null

House number

e.g. 123

houseNumberAdditionoptional
string| null

House number addition/suffix

e.g. A

postalCodeoptional
string| null

Postal/ZIP code

e.g. 1234 AB

cityoptional
string| null

City name

e.g. Amsterdam

countryoptional
string| null

Country code

e.g. NL

etaoptional
string· date-time| null

Estimated time of arrival

customerTrackingIdoptional
string| null

Customer-facing tracking identifier

e.g. 757e7190-f6c2-4732-8f94-2eab426ed020

onRouteInstructionsoptional
string| null

Instructions for the driver en route

onSiteInstructionsoptional
string| null

Instructions for the driver on site

timeConstraintsoptional
TimeConstraint [ ] 3 fields

Time constraints for this location

deliverAfteroptional
string· date-time

Deliver after this time

deliverBeforeoptional
string· date-time

Deliver before this time

typeoptional
string

Constraint type

e.g. COMMUNICATED

contactInformationoptional
Contact [ ] 4 fields

Contact persons for this location

nameoptional
string

Contact name

e.g. Jane Doe

mobilePhoneoptional
string| null

Mobile phone number

e.g. +31612345678

emailoptional
string| null

Email address

e.g. jane@example.com

languageoptional
string| null

Language code

e.g. nl

completionDataoptional
CompletionData| null 5 fields
timeoptional
string· date-time

Completion timestamp

locationoptional
Location| null 3 fields
latitudeoptional
number· double

Latitude coordinate

e.g. 52.0907

longitudeoptional
number· double

Longitude coordinate

e.g. 5.1214

courseoptional
number· double| null

Course/heading in degrees

surveyAnswersoptional
AssignmentAnswers| null 2 fields
surveyIdoptional
string

A reference to the ID of the survey that was used to give the answers

answersoptional
one ofAnswerBarcodeAnswerBooleanAnswerFileAnswersMultipleBarcodesAnswerMultipleChoiceAnswerMultipleUnknownBarcodesAnswerNumberAnswerPhotoAnswersSingleFileAnswerSinglePhotoAnswerTextAnswer [ ]…

The list of filled in answers for the assignment

courierUsernameoptional
string

Username of the courier who completed the assignment

e.g. john.driver

endStatusoptional
string

Final status of the assignment

e.g. DELIVERED

requiredSkillsoptional
string [ ]| null

Required skills for this location

interactionsoptional
Interaction| null 2 fields
alcoholCheckRequiredoptional
boolean

Whether an alcohol check is required

default falsee.g. false

paymentRequiredoptional
PaymentRequired| null 2 fields
currencyoptional
string

Currency code

e.g. EUR

amountoptional
number· double

Amount to collect

e.g. 25.5

deliveryLocationoptional
ShipmentLocation| null 12 fields
identifieroptional
string| null

Location identifier

e.g. LOC-001

durationoptional
string| null

ISO 8601 duration for time spent at this location

e.g. PT15M

addressInformationoptional
Address| null 6 fields
streetNameoptional
string| null

Street name

e.g. Main Street

houseNumberoptional
string| null

House number

e.g. 123

houseNumberAdditionoptional
string| null

House number addition/suffix

e.g. A

postalCodeoptional
string| null

Postal/ZIP code

e.g. 1234 AB

cityoptional
string| null

City name

e.g. Amsterdam

countryoptional
string| null

Country code

e.g. NL

etaoptional
string· date-time| null

Estimated time of arrival

customerTrackingIdoptional
string| null

Customer-facing tracking identifier

e.g. 757e7190-f6c2-4732-8f94-2eab426ed020

onRouteInstructionsoptional
string| null

Instructions for the driver en route

onSiteInstructionsoptional
string| null

Instructions for the driver on site

timeConstraintsoptional
TimeConstraint [ ] 3 fields

Time constraints for this location

deliverAfteroptional
string· date-time

Deliver after this time

deliverBeforeoptional
string· date-time

Deliver before this time

typeoptional
string

Constraint type

e.g. COMMUNICATED

contactInformationoptional
Contact [ ] 4 fields

Contact persons for this location

nameoptional
string

Contact name

e.g. Jane Doe

mobilePhoneoptional
string| null

Mobile phone number

e.g. +31612345678

emailoptional
string| null

Email address

e.g. jane@example.com

languageoptional
string| null

Language code

e.g. nl

completionDataoptional
CompletionData| null 5 fields
timeoptional
string· date-time

Completion timestamp

locationoptional
Location| null 3 fields
latitudeoptional
number· double

Latitude coordinate

e.g. 52.0907

longitudeoptional
number· double

Longitude coordinate

e.g. 5.1214

courseoptional
number· double| null

Course/heading in degrees

surveyAnswersoptional
AssignmentAnswers| null 2 fields
surveyIdoptional
string

A reference to the ID of the survey that was used to give the answers

answersoptional
one ofAnswerBarcodeAnswerBooleanAnswerFileAnswersMultipleBarcodesAnswerMultipleChoiceAnswerMultipleUnknownBarcodesAnswerNumberAnswerPhotoAnswersSingleFileAnswerSinglePhotoAnswerTextAnswer [ ]…

The list of filled in answers for the assignment

courierUsernameoptional
string

Username of the courier who completed the assignment

e.g. john.driver

endStatusoptional
string

Final status of the assignment

e.g. DELIVERED

requiredSkillsoptional
string [ ]| null

Required skills for this location

interactionsoptional
Interaction| null 2 fields
alcoholCheckRequiredoptional
boolean

Whether an alcohol check is required

default falsee.g. false

paymentRequiredoptional
PaymentRequired| null 2 fields
currencyoptional
string

Currency code

e.g. EUR

amountoptional
number· double

Amount to collect

e.g. 25.5

supplieroptional
Supplier| null 2 fields
identifieroptional
string

Supplier identifier

e.g. SUPPLIER_ABC

nameoptional
string

Supplier name

e.g. ABC Logistics

unitoptional
ShipmentUnit [ ]| null 3 fields

Shipment unit/package details

nameoptional
string

Unit name/type

e.g. PALLET

amountoptional
number· double

Quantity/amount

e.g. 2

tagsoptional
Tag [ ] 2 fields

Tags associated with this unit

identifieroptional
string

Tag identifier/value

e.g. BARCODE-001

typeoptional
string

Tag type

e.g. BARCODE

tagsoptional
Tag [ ]| null 2 fields

Tags associated with this shipment

identifieroptional
string

Tag identifier/value

e.g. BARCODE-001

typeoptional
string

Tag type

e.g. BARCODE

AssignmentWebhookPayloadoptional
AssignmentWebhookPayload 5 fields
contextoptional
EventContext 4 fields

Contextual information about where this event occurred

companyCodeoptional
string

The company code this event belongs to

e.g. ACME_CORP

serviceCentreCodeoptional
string| null

The service centre code where this event occurred (may be null for some event types)

e.g. AMS

routeNameoptional
string| null

The route name associated with this event (may be null)

e.g. Route-123

plannedDateoptional
string· date| null

The planned date for this route/shipment (may be null)

e.g. 2024-02-11

creationDateoptional
string· date-time

ISO-8601 timestamp when this event was created

e.g. 2024-02-11T10:30:00Z

eventTypeoptional
string

The type of event that triggered this webhook

e.g. TOUR_PLANNED

entityTypeoptional
string

The entity type this event relates to

e.g. TOUR

entityoptional
AssignmentEntity 14 fields

Assignment-specific data

shipmentIdoptional
string

Parent shipment ID

e.g. SHP-001-2024

assignmentIdoptional
string

Assignment ID

e.g. ASG-001

assignmentTypeoptional
string

Type of assignment

e.g. DELIVERY

supplieroptional
Supplier| null 2 fields
identifieroptional
string

Supplier identifier

e.g. SUPPLIER_ABC

nameoptional
string

Supplier name

e.g. ABC Logistics

timeConstraintsoptional
TimeConstraint [ ] 3 fields

Time constraints for this assignment

deliverAfteroptional
string· date-time

Deliver after this time

deliverBeforeoptional
string· date-time

Deliver before this time

typeoptional
string

Constraint type

e.g. COMMUNICATED

completionDataoptional
CompletionData| null 5 fields
timeoptional
string· date-time

Completion timestamp

locationoptional
Location| null 3 fields
latitudeoptional
number· double

Latitude coordinate

e.g. 52.0907

longitudeoptional
number· double

Longitude coordinate

e.g. 5.1214

courseoptional
number· double| null

Course/heading in degrees

surveyAnswersoptional
AssignmentAnswers| null 2 fields
surveyIdoptional
string

A reference to the ID of the survey that was used to give the answers

answersoptional
one ofAnswerBarcodeAnswerBooleanAnswerFileAnswersMultipleBarcodesAnswerMultipleChoiceAnswerMultipleUnknownBarcodesAnswerNumberAnswerPhotoAnswersSingleFileAnswerSinglePhotoAnswerTextAnswer [ ] 12 fields

The list of filled in answers for the assignment

Answeroptional
Answer…
BarcodeAnsweroptional
BarcodeAnswer…
BooleanAnsweroptional
BooleanAnswer…
FileAnswersoptional
FileAnswers…
MultipleBarcodesAnsweroptional
MultipleBarcodesAnswer…
MultipleChoiceAnsweroptional
MultipleChoiceAnswer…
MultipleUnknownBarcodesAnsweroptional
MultipleUnknownBarcodesAnswer…
NumberAnsweroptional
NumberAnswer…
PhotoAnswersoptional
PhotoAnswers…
SingleFileAnsweroptional
SingleFileAnswer…
SinglePhotoAnsweroptional
SinglePhotoAnswer…
TextAnsweroptional
TextAnswer…
courierUsernameoptional
string

Username of the courier who completed the assignment

e.g. john.driver

endStatusoptional
string

Final status of the assignment

e.g. DELIVERED

onRouteInstructionsoptional
string| null

Instructions for the driver en route

onSiteInstructionsoptional
string| null

Instructions for the driver on site

contactsoptional
Contact [ ] 4 fields

Contact persons for this assignment

nameoptional
string

Contact name

e.g. Jane Doe

mobilePhoneoptional
string| null

Mobile phone number

e.g. +31612345678

emailoptional
string| null

Email address

e.g. jane@example.com

languageoptional
string| null

Language code

e.g. nl

interactionsoptional
Interaction [ ] 2 fields

Customer interactions/questions

alcoholCheckRequiredoptional
boolean

Whether an alcohol check is required

default falsee.g. false

paymentRequiredoptional
PaymentRequired| null 2 fields
currencyoptional
string

Currency code

e.g. EUR

amountoptional
number· double

Amount to collect

e.g. 25.5

trackingIdoptional
string

Tracking ID for external tracking

e.g. TRK-123456

unitsoptional
ShipmentUnit [ ] 3 fields

Units/packages to deliver

nameoptional
string

Unit name/type

e.g. PALLET

amountoptional
number· double

Quantity/amount

e.g. 2

tagsoptional
Tag [ ] 2 fields

Tags associated with this unit

identifieroptional
string

Tag identifier/value

e.g. BARCODE-001

typeoptional
string

Tag type

e.g. BARCODE

tagsoptional
Tag [ ] 2 fields

Tags associated with this assignment

identifieroptional
string

Tag identifier/value

e.g. BARCODE-001

typeoptional
string

Tag type

e.g. BARCODE

requiredSkillsoptional
string [ ]

Required skills for this assignment

Example response · 200
{
  "creationDate": "2024-02-11T08:30:00Z",
  "eventType": "TOUR_FINISHED",
  "context": {
    "companyCode": "ACME_CORP",
    "serviceCentreCode": "AMS",
    "routeName": "Route-North-1",
    "plannedDate": "2024-02-11"
  },
  "entityType": "TOUR",
  "entity": {
    "serviceCentreCode": "AMS",
    "routeName": "Route-North-1",
    "plannedDate": "2024-02-11",
    "vehicleType": "CAR",
    "releaseMoment": "2024-02-11T08:00:00Z",
    "plannedValues": {
      "distance": 15000,
      "startTime": "2024-02-11T09:00:00Z",
      "endTime": "2024-02-11T17:00:00Z"
    },
    "currentValues": {
      "distance": 12000,
      "startTime": "2024-02-11T09:15:00Z",
      "endTime": "2024-02-11T16:45:00Z"
    },
    "actualValues": {
      "distance": 14500,
      "startTime": "2024-02-11T09:10:00Z",
      "endTime": "2024-02-11T16:30:00Z"
    },
    "startLocation": {
      "streetName": "Warehouse Street",
      "houseNumber": "1",
      "houseNumberAddition": "B",
      "postalCode": "1234 AB",
      "city": "Amsterdam",
      "country": "NL"
    },
    "stops": [
      {
        "address": {
          "streetName": "Main Street",
          "houseNumber": "123",
          "houseNumberAddition": "A",
          "postalCode": "5678 CD",
          "city": "Utrecht",
          "country": "NL"
        },
        "assignments": [
          {
            "shipmentId": "SHP-001-2024",
            "assignmentType": "DELIVERY",
            "assignmentId": "ASG-001",
            "supplier": {
              "identifier": "SUPPLIER_ABC",
              "name": "ABC Logistics"
            },
            "timeConstraints": [
              {
                "deliverAfter": "2024-02-11T13:00:00Z",
                "deliverBefore": "2024-02-11T17:00:00Z",
                "type": "COMMUNICATED"
              }
            ],
            "completionData": {
              "time": "2024-02-11T14:45:00Z",
              "location": {
                "latitude": 52.0907,
                "longitude": 5.1214,
                "course": 180
              },
              "surveyAnswers": {
                "surveyId": "survey-001",
                "answers": [
                  {
                    "type": "BooleanAnswer",
                    "id": "input-001",
                    "value": true
                  }
                ]
              },
              "courierUsername": "john.driver",
              "endStatus": "DELIVERED"
            },
            "contacts": [
              {
                "name": "Jane Doe",
                "email": "jane@example.com",
                "mobilePhone": "+31612345678",
                "language": "nl"
              }
            ],
            "onRouteInstructions": "Call customer 10 minutes before arrival",
            "onSiteInstructions": "Ring doorbell twice, deliver to reception",
            "interactions": [
              {
                "alcoholCheckRequired": false,
                "paymentRequired": {
                  "currency": "EUR",
                  "amount": 25.5
                }
              }
            ],
            "trackingId": "TRK-123456",
            "units": [
              {
                "name": "PALLET",
                "amount": 2,
                "tags": [
                  {
                    "identifier": "BARCODE-001",
                    "type": "BARCODE"
                  }
                ]
              }
            ],
            "tags": [
              {
                "identifier": "TAG-001",
                "type": "BARCODE"
              }
            ],
            "requiredSkills": []
          }
        ],
        "initialETA": "2024-02-11T13:30:00Z",
        "currentETA": "2024-02-11T13:45:00Z",
        "actualArrivalTime": "2024-02-11T13:40:00Z",
        "plannedDuration": 600,
        "actualDuration": 600
      },
      {
        "address": {
          "streetName": "Oak Avenue",
          "houseNumber": "456",
          "houseNumberAddition": "C",
          "postalCode": "9012 EF",
          "city": "Rotterdam",
          "country": "NL"
        },
        "assignments": [
          {
            "shipmentId": "SHP-002-2024",
            "assignmentType": "DELIVERY",
            "assignmentId": "ASG-002",
            "supplier": {
              "identifier": "SUPPLIER_ABC",
              "name": "ABC Logistics"
            },
            "timeConstraints": [],
            "completionData": {
              "time": "2024-02-11T15:30:00Z",
              "location": {
                "latitude": 51.9225,
                "longitude": 4.4792,
                "course": 270
              },
              "surveyAnswers": {
                "surveyId": "survey-002",
                "answers": [
                  {
                    "type": "TextAnswer",
                    "id": "input-001",
                    "value": "Left at reception"
                  }
                ]
              },
              "courierUsername": "john.driver",
              "endStatus": "DELIVERED"
            },
            "contacts": [],
            "onRouteInstructions": "Use side entrance for deliveries",
            "onSiteInstructions": "Leave package at reception desk",
            "interactions": [
              {
                "alcoholCheckRequired": false,
                "paymentRequired": {
                  "currency": "EUR",
                  "amount": 15
                }
              }
            ],
            "trackingId": "TRK-789012",
            "units": [
              {
                "name": "BOX",
                "amount": 3,
                "tags": []
              }
            ],
            "tags": [],
            "requiredSkills": []
          }
        ],
        "initialETA": "2024-02-11T15:00:00Z",
        "currentETA": "2024-02-11T15:15:00Z",
        "actualArrivalTime": "2024-02-11T15:20:00Z",
        "plannedDuration": 600,
        "actualDuration": 720
      }
    ],
    "assignedUser": {
      "userName": "john@example.com",
      "firstName": "John",
      "lastName": "Doe"
    }
  }
}

Webhook

Manage webhook subscriptions to receive real-time notifications when logistics events occur in RoutiGo.

RoutiGo Webhook REST API · Webhook↑ Index

Retrieve a list of all registered webhook subscriptions

Lists all webhook subscriptions for your company or supplier account.

You can optionally filter by event name or event type using query parameters.

Valid event names: TOUR_PLANNED, TOUR_STARTED, TOUR_FINISHED, TOUR_CALCULATED, SHIPMENT_CREATED,SHIPMENT_UPDATED, SHIPMENT_DELETED, ASSIGNMENT_DONE, ASSIGNMENT_REDONE, ASSIGNMENT_CREATED, ASSIGNMENT_UPDATED, ASSIGNMENT_DELETED, ASSIGNMENT_ARRIVED

Valid event types: TOUR, SHIPMENT, ASSIGNMENT

GET/v2/webhooks

Parameters

Query
eventoptional
string

Filter by RoutiGo event name (e.g., TOUR_PLANNED, SHIPMENT_CREATED)

e.g. TOUR_PLANNED

typeoptional
string

Filter by RoutiGo event type (e.g., TOUR, SHIPMENT, ASSIGNMENT)

e.g. TOUR

Returns

A list of all registered webhook subscriptions.

list ofWebhookConfig [ ]
idrequired
string

Unique identifier for this webhook subscription. Generated automatically upon creation.

e.g. 65cc90847249284b589d6504

routigoEventrequired
stringSTOP_DONETOUR_PLANNEDTOUR_STARTEDTOUR_FINISHEDTOUR_CALCULATEDSHIPMENT_CREATEDSHIPMENT_UPDATEDSHIPMENT_DELETEDRECURRING_SHIPMENT_DELETEDRECURRING_SHIPMENT_CREATEDRECURRING_SHIPMENT_UPDATEDASSIGNMENT_ARRIVEDASSIGNMENT_DONEASSIGNMENT_REDONEASSIGNMENT_CREATEDASSIGNMENT_UPDATEDASSIGNMENT_DELETEDUSER_CREATEDUSER_UPDATEDUSER_DELETEDAPI_KEY_CREATEDAPI_KEY_UPDATEDAPI_KEY_DELETEDSTOP_ARRIVEDSTOP_REDONE

The specific event that triggers this webhook.

Must be compatible with the selected routigoEventType. See API documentation for valid combinations.

e.g. TOUR_PLANNED

routigoEventTyperequired
stringTOURSTOPSHIPMENTRECURRING_SHIPMENTASSIGNMENTUSERAPI_KEY

The entity/event type this webhook monitors.

Valid values: TOUR, STOP, SHIPMENT, ASSIGNMENT, RECURRING_SHIPMENT

Different event types support different triggers - ensure your routigoEvent is compatible.

e.g. TOUR

serviceCentresoptional
string [ ]| null

Service centres this webhook monitors. When null or empty, applies to all service centres you have access to.

Permissions: You can only specify service centres you have access to. Filtering: Only events from these service centres will trigger the webhook.

e.g. ["AMS","RTD"]

actionrequired
EndpointNotificationAction 7 fields

The notification action executed when this webhook triggers.

Defines where to send the event data, optional headers/query params, and retry behavior.

namerequired
string

A human-readable description of the action

e.g. Sends RoutiGo webhook payload to my company listener url

urlrequired
string

The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.

e.g. https://my.company.com/routigo-hooks-listener

headersoptional
map ofstring| null

Optional HTTP headers to include in webhook POST requests. Commonly used for authentication (e.g., API keys, tokens) or custom metadata.

Example: {"X-API-KEY": "your-secret-key", "X-Environment": "production"}

queryParametersoptional
map ofstring| null

Optional query parameters to append to the URL in webhook POST requests.

Example: {"client_id": "abc123", "source": "routigo"}

minutesToLiveoptional
integer· int64| null

Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver the message before it expires and moves to the dead letter queue.

Default: 1440 minutes (24 hours) Range: 1 to 43200 minutes (30 days maximum recommended)

e.g. 1440

secondsDelayBeforeRetryoptional
integer· int32| null

Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff, so actual delays may increase with each retry.

Default: 600 seconds (10 minutes) Range: 1 to 3600 seconds recommended Max retries: 5 attempts before moving to dead letter queue

e.g. 600

supplierToFilterOnoptional
string| null

Optional supplier code filter. When set, webhooks will only be sent if the event data contains this supplier code. Useful for supplier-specific integrations.

Note: Leave null to receive all events regardless of supplier.

e.g. SUPPLIER_ABC

Example response · 200
[
  {
    "id": "65cc90847249284b589d6504",
    "routigoEvent": "ASSIGNMENT_DONE",
    "routigoEventType": "ASSIGNMENT",
    "serviceCentres": [
      "AMS"
    ],
    "action": {
      "name": "Sends RoutiGo webhook payload to my company listener url",
      "url": "https://my.company.com/routigo-hooks-listener",
      "headers": {
        "X-SECRET": "42",
        "X-ENV": "my-env-name"
      },
      "queryParameters": {
        "someParam": "param42",
        "anotherParam": "anotherParam42"
      },
      "minutesToLive": null,
      "secondsDelayBeforeRetry": null,
      "supplierToFilterOn": null
    }
  }
]

RoutiGo Webhook REST API · Webhook↑ Index

Create a new webhook subscription by specifying the event, its type and action

Registers a new webhook subscription that will trigger HTTP POST requests to your specified endpoint whenever the configured event occurs.

Important: The combination of routigoEvent and routigoEventType must be valid. See the main API documentation for valid event/type combinations.

Example Use Cases:

  • Get notified when a tour is planned: routigoEvent=TOUR_PLANNED, routigoEventType=TOUR
  • Track shipment creation: routigoEvent=SHIPMENT_CREATED, routigoEventType=SHIPMENT
  • Monitor assignment updates: routigoEvent=ASSIGNMENT_UPDATED, routigoEventType=ASSIGNMENT

Service Centres: If omitted, the webhook applies to all service centres you have access to.

POST/v2/webhooks

Request body required

Webhook subscription configuration including event type, trigger, and notification action

SaveWebhookConfig
routigoEventoptional
stringSTOP_DONETOUR_PLANNEDTOUR_STARTEDTOUR_FINISHEDTOUR_CALCULATEDSHIPMENT_CREATEDSHIPMENT_UPDATEDSHIPMENT_DELETEDRECURRING_SHIPMENT_DELETEDRECURRING_SHIPMENT_CREATEDRECURRING_SHIPMENT_UPDATEDASSIGNMENT_ARRIVEDASSIGNMENT_DONEASSIGNMENT_REDONEASSIGNMENT_CREATEDASSIGNMENT_UPDATEDASSIGNMENT_DELETEDUSER_CREATEDUSER_UPDATEDUSER_DELETEDAPI_KEY_CREATEDAPI_KEY_UPDATEDAPI_KEY_DELETEDSTOP_ARRIVEDSTOP_REDONE
routigoEventTypeoptional
stringTOURSTOPSHIPMENTRECURRING_SHIPMENTASSIGNMENTUSERAPI_KEY
serviceCentresoptional
string [ ]| null
actionoptional
EndpointNotificationAction 7 fields

Represents an HTTP POST notification action that gets executed when the webhook is triggered.

When an event occurs, the webhook service will send a POST request to the configured URL with:

  • JSON payload containing event data in the request body
  • Optional custom headers for authentication or metadata
  • Optional query parameters
  • Configurable retry behavior and message TTL

Delivery Guarantees:

  • At-least-once delivery (may receive duplicates in rare failure scenarios)
  • Automatic retries with configurable delays
  • Messages expire after TTL and move to dead letter queue

default null

namerequired
string

A human-readable description of the action

e.g. Sends RoutiGo webhook payload to my company listener url

urlrequired
string

The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.

e.g. https://my.company.com/routigo-hooks-listener

headersoptional
map ofstring| null

Optional HTTP headers to include in webhook POST requests. Commonly used for authentication (e.g., API keys, tokens) or custom metadata.

Example: {"X-API-KEY": "your-secret-key", "X-Environment": "production"}

queryParametersoptional
map ofstring| null

Optional query parameters to append to the URL in webhook POST requests.

Example: {"client_id": "abc123", "source": "routigo"}

minutesToLiveoptional
integer· int64| null

Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver the message before it expires and moves to the dead letter queue.

Default: 1440 minutes (24 hours) Range: 1 to 43200 minutes (30 days maximum recommended)

e.g. 1440

secondsDelayBeforeRetryoptional
integer· int32| null

Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff, so actual delays may increase with each retry.

Default: 600 seconds (10 minutes) Range: 1 to 3600 seconds recommended Max retries: 5 attempts before moving to dead letter queue

e.g. 600

supplierToFilterOnoptional
string| null

Optional supplier code filter. When set, webhooks will only be sent if the event data contains this supplier code. Useful for supplier-specific integrations.

Note: Leave null to receive all events regardless of supplier.

e.g. SUPPLIER_ABC

Returns

A webhook subscription was successfully created and the result is returned back. The Location response header contains a path to the newly created entity e.g. webhook/<new-webhook-id>.

WebhookConfig
idrequired
string

Unique identifier for this webhook subscription. Generated automatically upon creation.

e.g. 65cc90847249284b589d6504

routigoEventrequired
stringSTOP_DONETOUR_PLANNEDTOUR_STARTEDTOUR_FINISHEDTOUR_CALCULATEDSHIPMENT_CREATEDSHIPMENT_UPDATEDSHIPMENT_DELETEDRECURRING_SHIPMENT_DELETEDRECURRING_SHIPMENT_CREATEDRECURRING_SHIPMENT_UPDATEDASSIGNMENT_ARRIVEDASSIGNMENT_DONEASSIGNMENT_REDONEASSIGNMENT_CREATEDASSIGNMENT_UPDATEDASSIGNMENT_DELETEDUSER_CREATEDUSER_UPDATEDUSER_DELETEDAPI_KEY_CREATEDAPI_KEY_UPDATEDAPI_KEY_DELETEDSTOP_ARRIVEDSTOP_REDONE

The specific event that triggers this webhook.

Must be compatible with the selected routigoEventType. See API documentation for valid combinations.

e.g. TOUR_PLANNED

routigoEventTyperequired
stringTOURSTOPSHIPMENTRECURRING_SHIPMENTASSIGNMENTUSERAPI_KEY

The entity/event type this webhook monitors.

Valid values: TOUR, STOP, SHIPMENT, ASSIGNMENT, RECURRING_SHIPMENT

Different event types support different triggers - ensure your routigoEvent is compatible.

e.g. TOUR

serviceCentresoptional
string [ ]| null

Service centres this webhook monitors. When null or empty, applies to all service centres you have access to.

Permissions: You can only specify service centres you have access to. Filtering: Only events from these service centres will trigger the webhook.

e.g. ["AMS","RTD"]

actionrequired
EndpointNotificationAction 7 fields

The notification action executed when this webhook triggers.

Defines where to send the event data, optional headers/query params, and retry behavior.

namerequired
string

A human-readable description of the action

e.g. Sends RoutiGo webhook payload to my company listener url

urlrequired
string

The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.

e.g. https://my.company.com/routigo-hooks-listener

headersoptional
map ofstring| null

Optional HTTP headers to include in webhook POST requests. Commonly used for authentication (e.g., API keys, tokens) or custom metadata.

Example: {"X-API-KEY": "your-secret-key", "X-Environment": "production"}

queryParametersoptional
map ofstring| null

Optional query parameters to append to the URL in webhook POST requests.

Example: {"client_id": "abc123", "source": "routigo"}

minutesToLiveoptional
integer· int64| null

Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver the message before it expires and moves to the dead letter queue.

Default: 1440 minutes (24 hours) Range: 1 to 43200 minutes (30 days maximum recommended)

e.g. 1440

secondsDelayBeforeRetryoptional
integer· int32| null

Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff, so actual delays may increase with each retry.

Default: 600 seconds (10 minutes) Range: 1 to 3600 seconds recommended Max retries: 5 attempts before moving to dead letter queue

e.g. 600

supplierToFilterOnoptional
string| null

Optional supplier code filter. When set, webhooks will only be sent if the event data contains this supplier code. Useful for supplier-specific integrations.

Note: Leave null to receive all events regardless of supplier.

e.g. SUPPLIER_ABC

Example response · 201
{
  "id": "65cc90847249284b589d6504",
  "routigoEvent": "ASSIGNMENT_DONE",
  "routigoEventType": "ASSIGNMENT",
  "serviceCentres": [
    "AMS"
  ],
  "action": {
    "name": "Sends RoutiGo webhook payload to my company listener url",
    "url": "https://my.company.com/routigo-hooks-listener",
    "headers": {
      "X-SECRET": "42",
      "X-ENV": "my-env-name"
    },
    "queryParameters": {
      "someParam": "param42",
      "anotherParam": "anotherParam42"
    },
    "minutesToLive": null,
    "secondsDelayBeforeRetry": null,
    "supplierToFilterOn": null
  }
}

RoutiGo Webhook REST API · Webhook↑ Index

Retrieve a single webhook subscription by its id

Retrieves detailed information about a specific webhook subscription.

Returns the complete webhook configuration including event triggers, actions, and service centre settings.

GET/v2/webhooks/{webhookId}

Parameters

Path
webhookIdrequired
string

The unique identifier of the webhook subscription

e.g. 65cc90847249284b589d6504

Returns

The requested webhook subscription.

WebhookConfig
idrequired
string

Unique identifier for this webhook subscription. Generated automatically upon creation.

e.g. 65cc90847249284b589d6504

routigoEventrequired
stringSTOP_DONETOUR_PLANNEDTOUR_STARTEDTOUR_FINISHEDTOUR_CALCULATEDSHIPMENT_CREATEDSHIPMENT_UPDATEDSHIPMENT_DELETEDRECURRING_SHIPMENT_DELETEDRECURRING_SHIPMENT_CREATEDRECURRING_SHIPMENT_UPDATEDASSIGNMENT_ARRIVEDASSIGNMENT_DONEASSIGNMENT_REDONEASSIGNMENT_CREATEDASSIGNMENT_UPDATEDASSIGNMENT_DELETEDUSER_CREATEDUSER_UPDATEDUSER_DELETEDAPI_KEY_CREATEDAPI_KEY_UPDATEDAPI_KEY_DELETEDSTOP_ARRIVEDSTOP_REDONE

The specific event that triggers this webhook.

Must be compatible with the selected routigoEventType. See API documentation for valid combinations.

e.g. TOUR_PLANNED

routigoEventTyperequired
stringTOURSTOPSHIPMENTRECURRING_SHIPMENTASSIGNMENTUSERAPI_KEY

The entity/event type this webhook monitors.

Valid values: TOUR, STOP, SHIPMENT, ASSIGNMENT, RECURRING_SHIPMENT

Different event types support different triggers - ensure your routigoEvent is compatible.

e.g. TOUR

serviceCentresoptional
string [ ]| null

Service centres this webhook monitors. When null or empty, applies to all service centres you have access to.

Permissions: You can only specify service centres you have access to. Filtering: Only events from these service centres will trigger the webhook.

e.g. ["AMS","RTD"]

actionrequired
EndpointNotificationAction 7 fields

The notification action executed when this webhook triggers.

Defines where to send the event data, optional headers/query params, and retry behavior.

namerequired
string

A human-readable description of the action

e.g. Sends RoutiGo webhook payload to my company listener url

urlrequired
string

The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.

e.g. https://my.company.com/routigo-hooks-listener

headersoptional
map ofstring| null

Optional HTTP headers to include in webhook POST requests. Commonly used for authentication (e.g., API keys, tokens) or custom metadata.

Example: {"X-API-KEY": "your-secret-key", "X-Environment": "production"}

queryParametersoptional
map ofstring| null

Optional query parameters to append to the URL in webhook POST requests.

Example: {"client_id": "abc123", "source": "routigo"}

minutesToLiveoptional
integer· int64| null

Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver the message before it expires and moves to the dead letter queue.

Default: 1440 minutes (24 hours) Range: 1 to 43200 minutes (30 days maximum recommended)

e.g. 1440

secondsDelayBeforeRetryoptional
integer· int32| null

Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff, so actual delays may increase with each retry.

Default: 600 seconds (10 minutes) Range: 1 to 3600 seconds recommended Max retries: 5 attempts before moving to dead letter queue

e.g. 600

supplierToFilterOnoptional
string| null

Optional supplier code filter. When set, webhooks will only be sent if the event data contains this supplier code. Useful for supplier-specific integrations.

Note: Leave null to receive all events regardless of supplier.

e.g. SUPPLIER_ABC

Example response · 200
{
  "id": "65cc90847249284b589d6504",
  "routigoEvent": "ASSIGNMENT_DONE",
  "routigoEventType": "ASSIGNMENT",
  "serviceCentres": [
    "AMS"
  ],
  "action": {
    "name": "Sends RoutiGo webhook payload to my company listener url",
    "url": "https://my.company.com/routigo-hooks-listener",
    "headers": {
      "X-SECRET": "42",
      "X-ENV": "my-env-name"
    },
    "queryParameters": {
      "someParam": "param42",
      "anotherParam": "anotherParam42"
    },
    "minutesToLive": null,
    "secondsDelayBeforeRetry": null,
    "supplierToFilterOn": null
  }
}

RoutiGo Webhook REST API · Webhook↑ Index

Update a single webhook subscription by its id

Updates an existing webhook subscription with new configuration.

All fields in the request body will replace the existing webhook configuration. You must have access to the service centres specified in both the existing and updated configuration.

Note: Only webhooks you have created or have access to can be updated.

PUT/v2/webhooks/{webhookId}

Parameters

Path
webhookIdrequired
string

The unique identifier of the webhook subscription to update

e.g. 65cc90847249284b589d6504

Request body required

Updated webhook subscription configuration

SaveWebhookConfig
routigoEventoptional
stringSTOP_DONETOUR_PLANNEDTOUR_STARTEDTOUR_FINISHEDTOUR_CALCULATEDSHIPMENT_CREATEDSHIPMENT_UPDATEDSHIPMENT_DELETEDRECURRING_SHIPMENT_DELETEDRECURRING_SHIPMENT_CREATEDRECURRING_SHIPMENT_UPDATEDASSIGNMENT_ARRIVEDASSIGNMENT_DONEASSIGNMENT_REDONEASSIGNMENT_CREATEDASSIGNMENT_UPDATEDASSIGNMENT_DELETEDUSER_CREATEDUSER_UPDATEDUSER_DELETEDAPI_KEY_CREATEDAPI_KEY_UPDATEDAPI_KEY_DELETEDSTOP_ARRIVEDSTOP_REDONE
routigoEventTypeoptional
stringTOURSTOPSHIPMENTRECURRING_SHIPMENTASSIGNMENTUSERAPI_KEY
serviceCentresoptional
string [ ]| null
actionoptional
EndpointNotificationAction 7 fields

Represents an HTTP POST notification action that gets executed when the webhook is triggered.

When an event occurs, the webhook service will send a POST request to the configured URL with:

  • JSON payload containing event data in the request body
  • Optional custom headers for authentication or metadata
  • Optional query parameters
  • Configurable retry behavior and message TTL

Delivery Guarantees:

  • At-least-once delivery (may receive duplicates in rare failure scenarios)
  • Automatic retries with configurable delays
  • Messages expire after TTL and move to dead letter queue

default null

namerequired
string

A human-readable description of the action

e.g. Sends RoutiGo webhook payload to my company listener url

urlrequired
string

The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.

e.g. https://my.company.com/routigo-hooks-listener

headersoptional
map ofstring| null

Optional HTTP headers to include in webhook POST requests. Commonly used for authentication (e.g., API keys, tokens) or custom metadata.

Example: {"X-API-KEY": "your-secret-key", "X-Environment": "production"}

queryParametersoptional
map ofstring| null

Optional query parameters to append to the URL in webhook POST requests.

Example: {"client_id": "abc123", "source": "routigo"}

minutesToLiveoptional
integer· int64| null

Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver the message before it expires and moves to the dead letter queue.

Default: 1440 minutes (24 hours) Range: 1 to 43200 minutes (30 days maximum recommended)

e.g. 1440

secondsDelayBeforeRetryoptional
integer· int32| null

Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff, so actual delays may increase with each retry.

Default: 600 seconds (10 minutes) Range: 1 to 3600 seconds recommended Max retries: 5 attempts before moving to dead letter queue

e.g. 600

supplierToFilterOnoptional
string| null

Optional supplier code filter. When set, webhooks will only be sent if the event data contains this supplier code. Useful for supplier-specific integrations.

Note: Leave null to receive all events regardless of supplier.

e.g. SUPPLIER_ABC

Returns

A webhook subscription was successfully updated and the result is returned back.

WebhookConfig
idrequired
string

Unique identifier for this webhook subscription. Generated automatically upon creation.

e.g. 65cc90847249284b589d6504

routigoEventrequired
stringSTOP_DONETOUR_PLANNEDTOUR_STARTEDTOUR_FINISHEDTOUR_CALCULATEDSHIPMENT_CREATEDSHIPMENT_UPDATEDSHIPMENT_DELETEDRECURRING_SHIPMENT_DELETEDRECURRING_SHIPMENT_CREATEDRECURRING_SHIPMENT_UPDATEDASSIGNMENT_ARRIVEDASSIGNMENT_DONEASSIGNMENT_REDONEASSIGNMENT_CREATEDASSIGNMENT_UPDATEDASSIGNMENT_DELETEDUSER_CREATEDUSER_UPDATEDUSER_DELETEDAPI_KEY_CREATEDAPI_KEY_UPDATEDAPI_KEY_DELETEDSTOP_ARRIVEDSTOP_REDONE

The specific event that triggers this webhook.

Must be compatible with the selected routigoEventType. See API documentation for valid combinations.

e.g. TOUR_PLANNED

routigoEventTyperequired
stringTOURSTOPSHIPMENTRECURRING_SHIPMENTASSIGNMENTUSERAPI_KEY

The entity/event type this webhook monitors.

Valid values: TOUR, STOP, SHIPMENT, ASSIGNMENT, RECURRING_SHIPMENT

Different event types support different triggers - ensure your routigoEvent is compatible.

e.g. TOUR

serviceCentresoptional
string [ ]| null

Service centres this webhook monitors. When null or empty, applies to all service centres you have access to.

Permissions: You can only specify service centres you have access to. Filtering: Only events from these service centres will trigger the webhook.

e.g. ["AMS","RTD"]

actionrequired
EndpointNotificationAction 7 fields

The notification action executed when this webhook triggers.

Defines where to send the event data, optional headers/query params, and retry behavior.

namerequired
string

A human-readable description of the action

e.g. Sends RoutiGo webhook payload to my company listener url

urlrequired
string

The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.

e.g. https://my.company.com/routigo-hooks-listener

headersoptional
map ofstring| null

Optional HTTP headers to include in webhook POST requests. Commonly used for authentication (e.g., API keys, tokens) or custom metadata.

Example: {"X-API-KEY": "your-secret-key", "X-Environment": "production"}

queryParametersoptional
map ofstring| null

Optional query parameters to append to the URL in webhook POST requests.

Example: {"client_id": "abc123", "source": "routigo"}

minutesToLiveoptional
integer· int64| null

Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver the message before it expires and moves to the dead letter queue.

Default: 1440 minutes (24 hours) Range: 1 to 43200 minutes (30 days maximum recommended)

e.g. 1440

secondsDelayBeforeRetryoptional
integer· int32| null

Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff, so actual delays may increase with each retry.

Default: 600 seconds (10 minutes) Range: 1 to 3600 seconds recommended Max retries: 5 attempts before moving to dead letter queue

e.g. 600

supplierToFilterOnoptional
string| null

Optional supplier code filter. When set, webhooks will only be sent if the event data contains this supplier code. Useful for supplier-specific integrations.

Note: Leave null to receive all events regardless of supplier.

e.g. SUPPLIER_ABC

Example response · 200
{
  "id": "65cc90847249284b589d6504",
  "routigoEvent": "ASSIGNMENT_DONE",
  "routigoEventType": "ASSIGNMENT",
  "serviceCentres": [
    "AMS"
  ],
  "action": {
    "name": "Sends RoutiGo webhook payload to my company listener url",
    "url": "https://my.company.com/routigo-hooks-listener",
    "headers": {
      "X-SECRET": "42",
      "X-ENV": "my-env-name"
    },
    "queryParameters": {
      "someParam": "param42",
      "anotherParam": "anotherParam42"
    },
    "minutesToLive": null,
    "secondsDelayBeforeRetry": null,
    "supplierToFilterOn": null
  }
}

RoutiGo Webhook REST API · Webhook↑ Index

Delete a single webhook subscription by its id

Permanently deletes a webhook subscription.

After deletion, you will no longer receive notifications for this webhook configuration. This action cannot be undone.

Note: You can only delete webhooks you have created or have access to.

DELETE/v2/webhooks/{webhookId}

Parameters

Path
webhookIdrequired
string

The unique identifier of the webhook subscription to delete

e.g. 65cc90847249284b589d6504

Returns

The webhook subscription was successfully deleted.

string