{"openapi":"3.1.0","info":{"title":"RoutiGo Webhook REST API ","description":"\nThe Webhook Service enables clients to subscribe to RoutiGo events and receive real-time notifications\nvia HTTP callbacks. Configure webhooks for various event types such as tours, shipments, and assignments.\n\n### Authentication\nAll requests must be authenticated. This API supports the following methods:\n- **X-API-KEY** — API key for standard client access, passed as a request header.\n- **X-API-KEY-SUPPLIER** — API key for supplier access, passed as a request header.\n- **Bearer token** — JWT token passed via the `Authorization: Bearer <token>` header.\n\nFor more information, see the [Authentication section](https://apidocs.routigo.com/concepts/authentication).\n\n### Event Types & Triggers\nDifferent event types support specific triggers. Valid combinations are:\n\n#### Tour Events\n- TOUR_PLANNED, TOUR_STARTED, TOUR_FINISHED, TOUR_CALCULATED\n\n#### Shipment Events\n- SHIPMENT_CREATED, SHIPMENT_UPDATED, SHIPMENT_DELETED\n- Plus all Tour events\n\n#### Assignment Events\n- ASSIGNMENT_DONE, ASSIGNMENT_REDONE, ASSIGNMENT_CREATED, ASSIGNMENT_UPDATED, ASSIGNMENT_DELETED, ASSIGNMENT_ARRIVED\n- Plus all Tour events\n\n### Webhook Delivery & Reliability\n\n#### Retry Policy\n- **Max retries**: 5 attempts (configurable via `secondsDelayBeforeRetry` in action)\n- **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\n- **Backoff**: Exponential backoff with minimum 1 second\n\n#### Message TTL\n- **Default TTL**: 1440 minutes (24 hours) - configurable via `minutesToLive` in action\n- Messages expire and move to Dead Letter Queue (DLQ) after TTL\n\n#### Success Criteria\n- HTTP status codes **200-299** are considered successful\n- Other status codes trigger retry logic\n\n#### Dead Letter Queue (DLQ)\n- Failed messages after 5 retries move to DLQ\n- Contact RoutiGo support to investigate or recover DLQ messages\n\n### Webhook Payload Structure\n\nWhen an event is triggered, a POST request is sent to your configured URL with a JSON payload in the following structure:\n\n```json\n{\n  \"context\": {\n    \"companyCode\": \"YOUR_COMPANY\",\n    \"serviceCentreCode\": \"AMS\",\n    \"routeName\": \"Route-North-1\",\n    \"plannedDate\": \"2024-02-11\"\n  },\n  \"creationDate\": \"2024-02-11T10:30:00Z\",\n  \"eventType\": \"TOUR_PLANNED\",\n  \"entityType\": \"TOUR\",\n  \"entity\": {\n    ... entity-specific data ...\n  }\n}\n```\n\n#### Payload Fields\n\n- **context**: Contextual information (companyCode, serviceCentreCode, routeName, plannedDate)\n- **creationDate**: ISO-8601 timestamp when the event was created\n- **eventType**: The specific event that triggered this webhook (e.g., TOUR_PLANNED, SHIPMENT_CREATED)\n- **entityType**: The entity type (TOUR, SHIPMENT, ASSIGNMENT)\n- **entity**: Entity-specific data - structure varies by entityType\n\n#### Entity-Specific Payloads\n\nThe `entity` field contains different data based on the `entityType`:\n\n- **TOUR**: Tour details, vehicle type, planned/current/actual timing values, start location, list of stops\n- **SHIPMENT**: Identifier, external ID, plan date, pickup/delivery locations, supplier, units, tags\n- **ASSIGNMENT**: Shipment ID, assignment ID, type, time constraints, completion data, instructions, contacts\n\n#### Getting Example Payloads\n\nBefore you build your webhook receiver, you will want to know exactly what JSON to expect for each event type.\nThe endpoints in the section Webhook Payload Examples let you fetch realistic example payloads so you can design and test\nyour integration without waiting for live events to occur.\n\n### Service Centre Permissions\n\n- The `serviceCentres` field in webhook configurations defaults to all service centres you have access to\n- You can only create webhooks for service centres you have permissions for\n- When null or omitted, the webhook applies to all your accessible service centres\n- When explicitly set, it must be a subset of your permitted service centres\n        ","contact":{"name":"RoutiGo Team","url":"https://www.routigo.com","email":"team@routigo.com"},"version":"2.0"},"servers":[{"url":"https://api.routigo.com/api"}],"tags":[{"name":"Webhook Payload Examples"},{"name":"Webhook","description":"Manage webhook subscriptions to receive real-time notifications when logistics events occur in RoutiGo."},{"name":"Webhook Payload Examples","description":"Fetch realistic example payloads per event type to design and test your webhook integration before any live events occur."},{"name":"Webhook"}],"paths":{"/v2/webhooks":{"get":{"tags":["Webhook"],"summary":"Retrieve a list of all registered webhook subscriptions","description":"\nLists all webhook subscriptions for your company or supplier account.\n\nYou can optionally filter by event name or event type using query parameters.\n\n**Valid event names**: TOUR_PLANNED, TOUR_STARTED, TOUR_FINISHED, TOUR_CALCULATED,\nSHIPMENT_CREATED,SHIPMENT_UPDATED, SHIPMENT_DELETED, \nASSIGNMENT_DONE, ASSIGNMENT_REDONE, ASSIGNMENT_CREATED, ASSIGNMENT_UPDATED, ASSIGNMENT_DELETED, ASSIGNMENT_ARRIVED\n\n**Valid event types**: TOUR, SHIPMENT, ASSIGNMENT\n        ","operationId":"getAllWebhooks","parameters":[{"name":"event","in":"query","description":"Filter by RoutiGo event name (e.g., TOUR_PLANNED, SHIPMENT_CREATED)","schema":{"type":"string","default":""},"example":"TOUR_PLANNED"},{"name":"type","in":"query","description":"Filter by RoutiGo event type (e.g., TOUR, SHIPMENT, ASSIGNMENT)","schema":{"type":"string","default":""},"example":"TOUR"}],"responses":{"200":{"description":"A list of all registered webhook subscriptions.","content":{"application/json":{"schema":{"type":"array","additionalProperties":{"default":""},"contains":{"default":""},"items":{"$ref":"#/components/schemas/WebhookConfig","default":""},"unevaluatedItems":{"default":""}},"example":[{"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}}]}}},"204":{"description":"There are no webhook subscriptions registered for the provided company.","content":{"*/*":{"schema":{"type":"string","additionalProperties":{"default":""},"default":""}}}},"401":{"description":"Authentication information is missing or invalid.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]},"post":{"tags":["Webhook"],"summary":"Create a new webhook subscription by specifying the event, its type and action","description":"\nRegisters a new webhook subscription that will trigger HTTP POST requests to your specified endpoint\nwhenever the configured event occurs.\n\n**Important**: The combination of `routigoEvent` and `routigoEventType` must be valid.\nSee the main API documentation for valid event/type combinations.\n\n**Example Use Cases**:\n- Get notified when a tour is planned: routigoEvent=TOUR_PLANNED, routigoEventType=TOUR\n- Track shipment creation: routigoEvent=SHIPMENT_CREATED, routigoEventType=SHIPMENT\n- Monitor assignment updates: routigoEvent=ASSIGNMENT_UPDATED, routigoEventType=ASSIGNMENT\n\n**Service Centres**: If omitted, the webhook applies to all service centres you have access to.\n        ","operationId":"createWebhook","requestBody":{"description":"Webhook subscription configuration including event type, trigger, and notification action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveWebhookConfig","additionalProperties":{"default":""},"default":""},"example":{"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}}}},"required":true},"responses":{"201":{"description":"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>`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfig","additionalProperties":{"default":""},"default":""},"example":{"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}}}}},"400":{"description":"There is a problem with a request payload.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"type":"string","additionalProperties":{"default":""},"default":"","example":"Failed to parse request body"}}}},"401":{"description":"Authentication information is missing or invalid.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]}},"/v2/webhooks/payload-examples/{eventType}":{"get":{"tags":["Webhook Payload Examples"],"summary":"Get webhook payload example for a specific event type","description":"\nReturns a realistic example of the JSON payload RoutiGo will POST to your webhook URL when the specified event occurs.\n\nUse this to inspect the data structure and build or test your webhook receiver before any live events take place.\nFor example, if you want to react to a shipment being completed, call this with eventType=SHIPMENT\nto see the exact fields and format you need to handle in your integration.\n\nSupported event types:\n- TOUR - Tour planning and execution events\n- SHIPMENT - Shipment lifecycle events\n- ASSIGNMENT - Assignment/task events\n        ","operationId":"getPayloadExampleByType","parameters":[{"name":"eventType","in":"path","description":"The event type to get an example for (TOUR, SHIPMENT, ASSIGNMENT)","required":true,"schema":{"type":"string","default":""},"example":"TOUR"}],"responses":{"200":{"description":"Example webhook payload for the specified event type","content":{"application/json":{"schema":{"additionalProperties":{"default":""},"default":"","oneOf":[{"$ref":"#/components/schemas/TourWebhookPayload"},{"$ref":"#/components/schemas/ShipmentWebhookPayload"},{"$ref":"#/components/schemas/AssignmentWebhookPayload"}]},"examples":{"TOUR":{"summary":"Tour Finished Event","description":"Example webhook payload for a TOUR_FINISHED event","value":{"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.0},"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.0,"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.0},"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.0}}],"trackingId":"TRK-789012","units":[{"name":"BOX","amount":3.0,"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"}}}},"ASSIGNMENT":{"summary":"Assignment Done Event","description":"Example webhook payload for an ASSIGNMENT_DONE event","value":{"creationDate":"2024-02-11T14:45:00Z","eventType":"ASSIGNMENT_DONE","context":{"companyCode":"ACME_CORP","serviceCentreCode":"AMS","routeName":"Route-North-1","plannedDate":"2024-02-11"},"entityType":"ASSIGNMENT","entity":{"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.0},"surveyAnswers":{"surveyId":"survey-001","answers":[{"type":"TextAnswer","id":"input-001","value":"Package was in good condition"},{"type":"BooleanAnswer","id":"input-002","value":true},{"type":"SinglePhotoAnswer","id":"input-003","value":{"uid":"f47ac10b-58cc-4372-a567-0e02b2c3d479","filename":"delivery-proof.jpg","url":"https://storage.example.com/files/delivery-proof.jpg"}}]},"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":{"amount":100.0,"currency":"EUR"}}],"trackingId":"TRK-123456","units":[{"name":"PALLET","amount":2.0,"tags":[{"identifier":"BARCODE-001","type":"BARCODE"}]}],"tags":[{"identifier":"TAG-001","type":"BARCODE"}],"requiredSkills":[]}}}}}}},"404":{"description":"Event type not found or not supported","content":{"text/plain;charset=UTF-8":{"schema":{"type":"string","additionalProperties":{"default":""},"default":""}}}},"401":{"description":"Authentication information is missing or invalid.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]}},"/v2/webhooks/{webhookId}":{"get":{"tags":["Webhook"],"summary":"Retrieve a single webhook subscription by its id","description":"\nRetrieves detailed information about a specific webhook subscription.\n\nReturns the complete webhook configuration including event triggers, actions, and service centre settings.\n        ","operationId":"getWebhook","parameters":[{"name":"webhookId","in":"path","description":"The unique identifier of the webhook subscription","required":true,"schema":{"type":"string","default":""},"example":"65cc90847249284b589d6504"}],"responses":{"200":{"description":"The requested webhook subscription.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfig","additionalProperties":{"default":""},"default":""},"example":{"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}}}}},"404":{"description":"The webhook subscription with this id was not found.","content":{"text/plain;charset=UTF-8":{"schema":{"type":"string","additionalProperties":{"default":""},"default":"","example":"Webhook with id: 65cc90847249284b589d650411 was not found"}}}},"401":{"description":"Authentication information is missing or invalid.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]},"put":{"tags":["Webhook"],"summary":"Update a single webhook subscription by its id","description":"\nUpdates an existing webhook subscription with new configuration.\n\nAll fields in the request body will replace the existing webhook configuration.\nYou must have access to the service centres specified in both the existing and updated configuration.\n\n**Note**: Only webhooks you have created or have access to can be updated.\n        ","operationId":"updateWebhook","parameters":[{"name":"webhookId","in":"path","description":"The unique identifier of the webhook subscription to update","required":true,"schema":{"type":"string","default":""},"example":"65cc90847249284b589d6504"}],"requestBody":{"description":"Updated webhook subscription configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveWebhookConfig","additionalProperties":{"default":""},"default":""},"example":{"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}}}},"required":true},"responses":{"200":{"description":"A webhook subscription was successfully updated and the result is returned back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfig","additionalProperties":{"default":""},"default":""},"example":{"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}}}}},"404":{"description":"The webhook subscription with this id was not found.","content":{"text/plain;charset=UTF-8":{"schema":{"type":"string","additionalProperties":{"default":""},"default":"","example":"Webhook with id: 65cc90847249284b589d650411 was not found"}}}},"401":{"description":"Authentication information is missing or invalid.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]},"delete":{"tags":["Webhook"],"summary":"Delete a single webhook subscription by its id","description":"\nPermanently deletes a webhook subscription.\n\nAfter deletion, you will no longer receive notifications for this webhook configuration.\nThis action cannot be undone.\n\n**Note**: You can only delete webhooks you have created or have access to.\n        ","operationId":"deleteWebhook","parameters":[{"name":"webhookId","in":"path","description":"The unique identifier of the webhook subscription to delete","required":true,"schema":{"type":"string","default":""},"example":"65cc90847249284b589d6504"}],"responses":{"200":{"description":"The webhook subscription was successfully deleted.","content":{"*/*":{"schema":{"type":"string","additionalProperties":{"default":""},"default":""}}}},"404":{"description":"The webhook subscription with this id was not found.","content":{"text/plain;charset=UTF-8":{"schema":{"type":"string","additionalProperties":{"default":""},"default":"","example":"Webhook with id: 65b79f5ee2f77f1cc7644123 was not found"}}}},"401":{"description":"Authentication information is missing or invalid.See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]}}},"components":{"schemas":{"EndpointNotificationAction":{"type":"object","default":null,"description":"\n        Represents an HTTP POST notification action that gets executed when the webhook is triggered.\n\n        When an event occurs, the webhook service will send a POST request to the configured URL with:\n        - JSON payload containing event data in the request body\n        - Optional custom headers for authentication or metadata\n        - Optional query parameters\n        - Configurable retry behavior and message TTL\n\n        Delivery Guarantees:\n        - At-least-once delivery (may receive duplicates in rare failure scenarios)\n        - Automatic retries with configurable delays\n        - Messages expire after TTL and move to dead letter queue\n    ","properties":{"name":{"type":"string","default":"","description":"A human-readable description of the action","example":"Sends RoutiGo webhook payload to my company listener url"},"url":{"type":"string","default":"","description":"The HTTP(S) URL that will receive POST requests when the webhook is triggered. Must be a valid, publicly accessible endpoint.","example":"https://my.company.com/routigo-hooks-listener"},"headers":{"type":["object","null"],"additionalProperties":{"type":"string"},"default":"","description":"\n            Optional HTTP headers to include in webhook POST requests.\n            Commonly used for authentication (e.g., API keys, tokens) or custom metadata.\n\n            Example: {\"X-API-KEY\": \"your-secret-key\", \"X-Environment\": \"production\"}\n        "},"queryParameters":{"type":["object","null"],"additionalProperties":{"type":"string"},"default":"","description":"\n            Optional query parameters to append to the URL in webhook POST requests.\n\n            Example: {\"client_id\": \"abc123\", \"source\": \"routigo\"}\n        "},"minutesToLive":{"type":["integer","null"],"format":"int64","default":"","description":"\n            Message time-to-live in minutes. Determines how long the webhook service will attempt to deliver\n            the message before it expires and moves to the dead letter queue.\n\n            Default: 1440 minutes (24 hours)\n            Range: 1 to 43200 minutes (30 days maximum recommended)\n        ","example":1440},"secondsDelayBeforeRetry":{"type":["integer","null"],"format":"int32","default":"","description":"\n            Delay in seconds before retrying a failed delivery attempt. The webhook service uses exponential backoff,\n            so actual delays may increase with each retry.\n\n            Default: 600 seconds (10 minutes)\n            Range: 1 to 3600 seconds recommended\n            Max retries: 5 attempts before moving to dead letter queue\n        ","example":600},"supplierToFilterOn":{"type":["string","null"],"default":"","description":"\n            Optional supplier code filter. When set, webhooks will only be sent if the event data contains\n            this supplier code. Useful for supplier-specific integrations.\n\n            Note: Leave null to receive all events regardless of supplier.\n        ","example":"SUPPLIER_ABC"}},"required":["name","url"]},"WebhookConfig":{"type":"object","default":null,"description":"\n        Represents a complete webhook subscription configuration.\n\n        A webhook subscription defines:\n        - What event triggers the webhook (routigoEvent)\n        - Which entity type the event applies to (routigoEventType)\n        - Where to send notifications (action.url)\n        - Which service centres the webhook monitors (serviceCentres)\n\n        Lifecycle: Webhooks remain active until explicitly deleted or disabled.\n    ","properties":{"id":{"type":"string","default":"","description":"Unique identifier for this webhook subscription. Generated automatically upon creation.","example":"65cc90847249284b589d6504"},"routigoEvent":{"type":"string","default":"","description":"\n            The specific event that triggers this webhook.\n\n            Must be compatible with the selected routigoEventType. See API documentation for valid combinations.\n        ","enum":["STOP_DONE","TOUR_PLANNED","TOUR_STARTED","TOUR_FINISHED","TOUR_CALCULATED","SHIPMENT_CREATED","SHIPMENT_UPDATED","SHIPMENT_DELETED","RECURRING_SHIPMENT_DELETED","RECURRING_SHIPMENT_CREATED","RECURRING_SHIPMENT_UPDATED","ASSIGNMENT_ARRIVED","ASSIGNMENT_DONE","ASSIGNMENT_REDONE","ASSIGNMENT_CREATED","ASSIGNMENT_UPDATED","ASSIGNMENT_DELETED","USER_CREATED","USER_UPDATED","USER_DELETED","API_KEY_CREATED","API_KEY_UPDATED","API_KEY_DELETED","STOP_ARRIVED","STOP_REDONE"],"example":"TOUR_PLANNED"},"routigoEventType":{"type":"string","default":"","description":"\n            The entity/event type this webhook monitors.\n\n            Valid values: TOUR, STOP, SHIPMENT, ASSIGNMENT, RECURRING_SHIPMENT\n\n            Different event types support different triggers - ensure your routigoEvent is compatible.\n        ","enum":["TOUR","STOP","SHIPMENT","RECURRING_SHIPMENT","ASSIGNMENT","USER","API_KEY"],"example":"TOUR"},"serviceCentres":{"type":["array","null"],"default":"","description":"\n            Service centres this webhook monitors. When null or empty, applies to all service centres\n            you have access to.\n\n            Permissions: You can only specify service centres you have access to.\n            Filtering: Only events from these service centres will trigger the webhook.\n        ","example":["AMS","RTD"],"items":{"type":"string"}},"action":{"$ref":"#/components/schemas/EndpointNotificationAction","default":"","description":"\n            The notification action executed when this webhook triggers.\n\n            Defines where to send the event data, optional headers/query params, and retry behavior.\n        "}},"required":["action","id","routigoEvent","routigoEventType"]},"SaveWebhookConfig":{"type":"object","default":null,"description":"An object representing a request to register a new webhook or update an existing subscription","properties":{"routigoEvent":{"type":"string","enum":["STOP_DONE","TOUR_PLANNED","TOUR_STARTED","TOUR_FINISHED","TOUR_CALCULATED","SHIPMENT_CREATED","SHIPMENT_UPDATED","SHIPMENT_DELETED","RECURRING_SHIPMENT_DELETED","RECURRING_SHIPMENT_CREATED","RECURRING_SHIPMENT_UPDATED","ASSIGNMENT_ARRIVED","ASSIGNMENT_DONE","ASSIGNMENT_REDONE","ASSIGNMENT_CREATED","ASSIGNMENT_UPDATED","ASSIGNMENT_DELETED","USER_CREATED","USER_UPDATED","USER_DELETED","API_KEY_CREATED","API_KEY_UPDATED","API_KEY_DELETED","STOP_ARRIVED","STOP_REDONE"]},"routigoEventType":{"type":"string","enum":["TOUR","STOP","SHIPMENT","RECURRING_SHIPMENT","ASSIGNMENT","USER","API_KEY"]},"serviceCentres":{"type":["array","null"],"items":{"type":"string"}},"action":{"$ref":"#/components/schemas/EndpointNotificationAction"}}},"Address":{"type":"object","default":null,"description":"Address information","properties":{"streetName":{"type":["string","null"],"default":"","description":"Street name","example":"Main Street"},"houseNumber":{"type":["string","null"],"default":"","description":"House number","example":"123"},"houseNumberAddition":{"type":["string","null"],"default":"","description":"House number addition/suffix","example":"A"},"postalCode":{"type":["string","null"],"default":"","description":"Postal/ZIP code","example":"1234 AB"},"city":{"type":["string","null"],"default":"","description":"City name","example":"Amsterdam"},"country":{"type":["string","null"],"default":"","description":"Country code","example":"NL"}}},"Answer":{"type":"object","default":null,"description":"A survey answer. The 'type' field determines which subtype and value structure is used.","discriminator":{"propertyName":"type"},"properties":{"id":{"type":"string","default":"","description":"The unique identifier of the input","example":"input-001"}}},"AssignedUser":{"type":"object","default":null,"properties":{"userName":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]}}},"AssignmentAnswers":{"type":"object","default":null,"description":"All data about the answers that were given at a single assignment","properties":{"surveyId":{"type":"string","default":"","description":"A reference to the ID of the survey that was used to give the answers"},"answers":{"type":"array","default":"","description":"The list of filled in answers for the assignment","items":{"oneOf":[{"$ref":"#/components/schemas/Answer"},{"$ref":"#/components/schemas/BarcodeAnswer"},{"$ref":"#/components/schemas/BooleanAnswer"},{"$ref":"#/components/schemas/FileAnswers"},{"$ref":"#/components/schemas/MultipleBarcodesAnswer"},{"$ref":"#/components/schemas/MultipleChoiceAnswer"},{"$ref":"#/components/schemas/MultipleUnknownBarcodesAnswer"},{"$ref":"#/components/schemas/NumberAnswer"},{"$ref":"#/components/schemas/PhotoAnswers"},{"$ref":"#/components/schemas/SingleFileAnswer"},{"$ref":"#/components/schemas/SinglePhotoAnswer"},{"$ref":"#/components/schemas/TextAnswer"}]}}}},"AssignmentEntity":{"type":"object","default":null,"description":"Assignment entity details","properties":{"shipmentId":{"type":"string","default":"","description":"Parent shipment ID","example":"SHP-001-2024"},"assignmentId":{"type":"string","default":"","description":"Assignment ID","example":"ASG-001"},"assignmentType":{"type":"string","default":"","description":"Type of assignment","example":"DELIVERY"},"supplier":{"oneOf":[{"$ref":"#/components/schemas/Supplier"},{"type":"null"}]},"timeConstraints":{"type":"array","default":"","description":"Time constraints for this assignment","items":{"$ref":"#/components/schemas/TimeConstraint"}},"completionData":{"oneOf":[{"$ref":"#/components/schemas/CompletionData"},{"type":"null"}]},"onRouteInstructions":{"type":["string","null"],"default":"","description":"Instructions for the driver en route"},"onSiteInstructions":{"type":["string","null"],"default":"","description":"Instructions for the driver on site"},"contacts":{"type":"array","default":"","description":"Contact persons for this assignment","items":{"$ref":"#/components/schemas/Contact"}},"interactions":{"type":"array","default":"","description":"Customer interactions/questions","items":{"$ref":"#/components/schemas/Interaction"}},"trackingId":{"type":"string","default":"","description":"Tracking ID for external tracking","example":"TRK-123456"},"units":{"type":"array","default":"","description":"Units/packages to deliver","items":{"$ref":"#/components/schemas/ShipmentUnit"}},"tags":{"type":"array","default":"","description":"Tags associated with this assignment","items":{"$ref":"#/components/schemas/Tag"}},"requiredSkills":{"type":"array","default":"","description":"Required skills for this assignment","items":{"type":"string"}}}},"BarcodeAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"value":{"$ref":"#/components/schemas/PhysicalTag","default":"","description":"The scanned barcode tag"}}}],"description":"A barcode answer"},"BarcodeResult":{"type":"object","default":null,"description":"Result of a barcode scan","properties":{"result":{"type":"string","default":"","description":"Scan result status","enum":["SCANNED","UNSCANNABLE","MANCO","DAMAGED"],"example":"SCANNED"},"barcode":{"type":"string","default":"","description":"The scanned barcode value","example":"1234567890"}}},"BooleanAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"value":{"type":"boolean","default":false,"description":"The boolean value","example":true}}}],"description":"A boolean answer"},"CompletionData":{"type":"object","default":null,"description":"Completion data","properties":{"time":{"type":"string","format":"date-time","default":"","description":"Completion timestamp"},"location":{"oneOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}]},"surveyAnswers":{"oneOf":[{"$ref":"#/components/schemas/AssignmentAnswers"},{"type":"null"}]},"courierUsername":{"type":"string","default":"","description":"Username of the courier who completed the assignment","example":"john.driver"},"endStatus":{"type":"string","default":"","description":"Final status of the assignment","example":"DELIVERED"}}},"Contact":{"type":"object","default":null,"description":"Contact person","properties":{"name":{"type":"string","default":"","description":"Contact name","example":"Jane Doe"},"mobilePhone":{"type":["string","null"],"default":"","description":"Mobile phone number","example":"+31612345678"},"email":{"type":["string","null"],"default":"","description":"Email address","example":"jane@example.com"},"language":{"type":["string","null"],"default":"","description":"Language code","example":"nl"}}},"EventContext":{"type":"object","default":null,"description":"\n        Context information present in all webhook payloads.\n\n        Provides metadata about where and when the event occurred.\n    ","properties":{"companyCode":{"type":"string","default":"","description":"The company code this event belongs to","example":"ACME_CORP"},"serviceCentreCode":{"type":["string","null"],"default":"","description":"The service centre code where this event occurred (may be null for some event types)","example":"AMS"},"routeName":{"type":["string","null"],"default":"","description":"The route name associated with this event (may be null)","example":"Route-123"},"plannedDate":{"type":["string","null"],"format":"date","default":"","description":"The planned date for this route/shipment (may be null)","example":"2024-02-11"}}},"FileAnswer":{"type":"object","default":null,"description":"An uploaded file reference","properties":{"uid":{"type":"string","default":"","description":"Unique file identifier","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479"},"filename":{"type":"string","default":"","description":"Original filename","example":"photo.jpg"},"url":{"type":"string","default":"","description":"URL to download the file","example":"https://storage.example.com/files/photo.jpg"}}},"FileAnswers":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"values":{"type":"array","default":"","description":"The list of uploaded files","items":{"$ref":"#/components/schemas/FileAnswer"}}}}],"description":"Multiple file answers"},"Interaction":{"type":"object","default":null,"description":"Customer interaction configuration","properties":{"alcoholCheckRequired":{"type":"boolean","default":false,"description":"Whether an alcohol check is required","example":false},"paymentRequired":{"oneOf":[{"$ref":"#/components/schemas/PaymentRequired"},{"type":"null"}]}}},"Location":{"type":"object","default":null,"description":"GPS location coordinates","properties":{"latitude":{"type":"number","format":"double","default":"","description":"Latitude coordinate","example":52.0907},"longitude":{"type":"number","format":"double","default":"","description":"Longitude coordinate","example":5.1214},"course":{"type":["number","null"],"format":"double","default":"","description":"Course/heading in degrees"}}},"MultipleBarcodesAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"values":{"type":"array","default":"","description":"The list of barcode scan results","items":{"$ref":"#/components/schemas/BarcodeResult"}}}}],"description":"Multiple barcodes answer with scan results"},"MultipleChoiceAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"values":{"type":"array","default":"","description":"The selected choice values","items":{"type":"string"}}}}],"description":"A multiple choice answer"},"MultipleUnknownBarcodesAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"values":{"type":"array","default":"","description":"The list of scanned barcode values","items":{"type":"string"}}}}],"description":"Multiple unknown barcodes answer"},"NumberAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"value":{"type":"number","format":"double","default":"","description":"The numeric value","example":42.0}}}],"description":"A number answer"},"PaymentRequired":{"type":"object","default":null,"description":"Payment required at delivery","properties":{"currency":{"type":"string","default":"","description":"Currency code","example":"EUR"},"amount":{"type":"number","format":"double","default":"","description":"Amount to collect","example":25.5}}},"PhotoAnswers":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"values":{"type":"array","default":"","description":"The list of uploaded photos","items":{"$ref":"#/components/schemas/FileAnswer"}}}}],"description":"Multiple photo answers"},"PhysicalTag":{"type":"object","default":null,"description":"A physical tag (barcode/QR code)","properties":{"identifier":{"type":"string","default":"","description":"Tag identifier/value","example":"BARCODE-12345"},"type":{"type":"string","default":"","description":"Tag type","example":"BARCODE"}}},"ShipmentUnit":{"type":"object","default":null,"description":"Shipment unit/package information","properties":{"name":{"type":"string","default":"","description":"Unit name/type","example":"PALLET"},"amount":{"type":"number","format":"double","default":"","description":"Quantity/amount","example":2.0},"tags":{"type":"array","default":"","description":"Tags associated with this unit","items":{"$ref":"#/components/schemas/Tag"}}}},"SingleFileAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"value":{"$ref":"#/components/schemas/FileAnswer","default":"","description":"The uploaded file"}}}],"description":"A single file answer"},"SinglePhotoAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"value":{"$ref":"#/components/schemas/FileAnswer","default":"","description":"The uploaded photo"}}}],"description":"A single photo answer"},"StopEntity":{"type":"object","default":null,"description":"Stop entity details","properties":{"address":{"$ref":"#/components/schemas/Address","default":"","description":"Stop address/location"},"assignments":{"type":"array","default":"","description":"Assignments to complete at this stop","items":{"$ref":"#/components/schemas/AssignmentEntity"}},"initialETA":{"type":"string","format":"date-time","default":"","description":"Initial estimated time of arrival"},"currentETA":{"type":["string","null"],"format":"date-time","default":"","description":"Current ETA (updated during route execution)"},"actualArrivalTime":{"type":["string","null"],"format":"date-time","default":"","description":"Actual arrival time (after arrival)"},"plannedDuration":{"type":"integer","format":"int32","default":"","description":"Planned duration in seconds","example":600},"actualDuration":{"type":["integer","null"],"format":"int32","default":"","description":"Actual duration in seconds (after completion)"}}},"Supplier":{"type":"object","default":null,"description":"Supplier information","properties":{"identifier":{"type":"string","default":"","description":"Supplier identifier","example":"SUPPLIER_ABC"},"name":{"type":"string","default":"","description":"Supplier name","example":"ABC Logistics"}}},"Tag":{"type":"object","default":null,"description":"Tag associated with a shipment or unit","properties":{"identifier":{"type":"string","default":"","description":"Tag identifier/value","example":"BARCODE-001"},"type":{"type":"string","default":"","description":"Tag type","example":"BARCODE"}}},"TextAnswer":{"allOf":[{"$ref":"#/components/schemas/Answer"},{"type":"object","properties":{"value":{"type":"string","default":"","description":"The text value","example":"Some text answer"}}}],"description":"A text answer"},"TimeConstraint":{"type":"object","default":null,"description":"Time constraint","properties":{"deliverAfter":{"type":"string","format":"date-time","default":"","description":"Deliver after this time"},"deliverBefore":{"type":"string","format":"date-time","default":"","description":"Deliver before this time"},"type":{"type":"string","default":"","description":"Constraint type","example":"COMMUNICATED"}}},"TimingValues":{"type":"object","default":null,"description":"Timing values for a tour","properties":{"distance":{"type":"integer","format":"int32","default":"","description":"Distance in meters","example":15000},"startTime":{"type":"string","format":"date-time","default":"","description":"Start time"},"endTime":{"type":"string","format":"date-time","default":"","description":"End time"}}},"TourEntity":{"type":"object","default":null,"description":"Tour entity details","properties":{"serviceCentreCode":{"type":"string","default":"","description":"Service centre code","example":"AMS"},"routeName":{"type":"string","default":"","description":"Route/tour name","example":"Route-North-1"},"plannedDate":{"type":"string","format":"date","default":"","description":"Planned date for this tour","example":"2024-02-11"},"vehicleType":{"type":"string","default":"","description":"Vehicle type","example":"CAR"},"releaseMoment":{"type":"string","format":"date-time","default":"","description":"When the route was released for planning"},"plannedValues":{"$ref":"#/components/schemas/TimingValues","default":"","description":"Planned timing values"},"currentValues":{"oneOf":[{"$ref":"#/components/schemas/TimingValues"},{"type":"null"}]},"actualValues":{"oneOf":[{"$ref":"#/components/schemas/TimingValues"},{"type":"null"}]},"startLocation":{"$ref":"#/components/schemas/Address","default":"","description":"Starting location for this tour"},"stops":{"type":"array","default":"","description":"List of stops on this tour","items":{"$ref":"#/components/schemas/StopEntity"}},"assignedUser":{"oneOf":[{"$ref":"#/components/schemas/AssignedUser"},{"type":"null"}]}}},"TourWebhookPayload":{"type":"object","default":null,"description":"Tour event payload - sent when tour events occur. Contains complete tour information including stops, timing, and location data.","properties":{"context":{"$ref":"#/components/schemas/EventContext","default":"","description":"Contextual information about where this event occurred"},"creationDate":{"type":"string","format":"date-time","default":"","description":"ISO-8601 timestamp when this event was created","example":"2024-02-11T10:30:00Z"},"eventType":{"type":"string","default":"","description":"The type of event that triggered this webhook","example":"TOUR_PLANNED"},"entityType":{"type":"string","default":"","description":"The entity type this event relates to","example":"TOUR"},"entity":{"$ref":"#/components/schemas/TourEntity","default":"","description":"Tour-specific data"}}},"ShipmentEntity":{"type":"object","default":null,"description":"Shipment entity details","properties":{"identifier":{"type":"string","default":"","description":"Internal shipment identifier","example":"SHP-001-2024"},"externalId":{"type":"string","default":"","description":"External/customer shipment ID","example":"ORDER-12345"},"planDate":{"type":"string","format":"date","default":"","description":"Planned delivery date","example":"2024-02-11"},"pickUpLocation":{"oneOf":[{"$ref":"#/components/schemas/ShipmentLocation"},{"type":"null"}]},"deliveryLocation":{"oneOf":[{"$ref":"#/components/schemas/ShipmentLocation"},{"type":"null"}]},"supplier":{"oneOf":[{"$ref":"#/components/schemas/Supplier"},{"type":"null"}]},"unit":{"type":["array","null"],"default":"","description":"Shipment unit/package details","items":{"$ref":"#/components/schemas/ShipmentUnit"}},"tags":{"type":["array","null"],"default":"","description":"Tags associated with this shipment","items":{"$ref":"#/components/schemas/Tag"}}}},"ShipmentLocation":{"type":"object","default":null,"description":"Shipment location details","properties":{"identifier":{"type":["string","null"],"default":"","description":"Location identifier","example":"LOC-001"},"duration":{"type":["string","null"],"default":"","description":"ISO 8601 duration for time spent at this location","example":"PT15M"},"addressInformation":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"eta":{"type":["string","null"],"format":"date-time","default":"","description":"Estimated time of arrival"},"customerTrackingId":{"type":["string","null"],"default":"","description":"Customer-facing tracking identifier","example":"757e7190-f6c2-4732-8f94-2eab426ed020"},"onRouteInstructions":{"type":["string","null"],"default":"","description":"Instructions for the driver en route"},"onSiteInstructions":{"type":["string","null"],"default":"","description":"Instructions for the driver on site"},"timeConstraints":{"type":"array","default":"","description":"Time constraints for this location","items":{"$ref":"#/components/schemas/TimeConstraint"}},"contactInformation":{"type":"array","default":"","description":"Contact persons for this location","items":{"$ref":"#/components/schemas/Contact"}},"completionData":{"oneOf":[{"$ref":"#/components/schemas/CompletionData"},{"type":"null"}]},"requiredSkills":{"type":["array","null"],"default":"","description":"Required skills for this location","items":{"type":"string"}},"interactions":{"oneOf":[{"$ref":"#/components/schemas/Interaction"},{"type":"null"}]}}},"ShipmentWebhookPayload":{"type":"object","default":null,"description":"\n        Shipment event payload - sent when shipment events occur.\n\n        Contains shipment details, locations, and delivery information.\n    ","properties":{"context":{"$ref":"#/components/schemas/EventContext","default":"","description":"Contextual information about where this event occurred"},"creationDate":{"type":"string","format":"date-time","default":"","description":"ISO-8601 timestamp when this event was created","example":"2024-02-11T10:30:00Z"},"eventType":{"type":"string","default":"","description":"The type of event that triggered this webhook","example":"TOUR_PLANNED"},"entityType":{"type":"string","default":"","description":"The entity type this event relates to","example":"TOUR"},"entity":{"$ref":"#/components/schemas/ShipmentEntity","default":"","description":"Shipment-specific data"}}},"AssignmentWebhookPayload":{"type":"object","default":null,"description":"\n        Assignment event payload - sent when assignment events occur.\n\n        Represents a delivery or pickup task within a shipment.\n    ","properties":{"context":{"$ref":"#/components/schemas/EventContext","default":"","description":"Contextual information about where this event occurred"},"creationDate":{"type":"string","format":"date-time","default":"","description":"ISO-8601 timestamp when this event was created","example":"2024-02-11T10:30:00Z"},"eventType":{"type":"string","default":"","description":"The type of event that triggered this webhook","example":"TOUR_PLANNED"},"entityType":{"type":"string","default":"","description":"The entity type this event relates to","example":"TOUR"},"entity":{"$ref":"#/components/schemas/AssignmentEntity","default":"","description":"Assignment-specific data"}}}},"securitySchemes":{"X-API-KEY-SUPPLIER":{"type":"apiKey","description":"For more information on authentication, check https://apidocs.routigo.com/concepts/authentication","name":"X-API-KEY-SUPPLIER","in":"header"},"X-API-KEY":{"type":"apiKey","description":"For more information on authentication, check https://apidocs.routigo.com/concepts/authentication","name":"X-API-KEY","in":"header"},"Token":{"type":"http","description":"For more information on authentication, check https://apidocs.routigo.com/concepts/authentication","scheme":"bearer","bearerFormat":"JWT"}}}}