# Cancelling journeys

> Transfer company track · Core · Certification test case

Proves your system handles a free cancellation and a cancellation that still pays you.

## How it is verified

- **Webhook acknowledged**: Transferz delivered the event and your endpoint answered with success.
- **Declaration**: You confirm something the portal cannot observe, optionally with a screenshot. The reviewer judges it.

## Instructions

1. This section starts once Driver, vehicle and tracking has passed. It uses the same hub, address and direction as Direct assignment.
2. The portal creates a test journey 48 hours ahead, assigns it directly to your transfer company and cancels it. More than 24 hours before pickup the cancellation is free. Answer both events with a 2xx response and confirm that your system shows the journey cancelled without costs.
3. The portal creates a test journey 8 hours ahead, assigns it to your company and cancels it. Within 24 hours of pickup the cancellation comes with costs: you are still paid for the journey. Answer both events with a 2xx response and confirm that your system shows the journey cancelled with costs.
4. If your system shows something else, choose Not what I see. The reviewer sees it.
5. Each step waits up to 5 minutes for a 2xx answer; a 2xx to an event Transferz delivers late still counts. If it doesn't come, use Try again once your endpoint is fixed.

## Pass criteria

- Your endpoint answers journeyFleetAssignedEvent and journeyStatusChangedEvent (CANCELLED_FREE, then CANCELLED_WITH_COSTS) with 2xx, each within 5 minutes (a 2xx to an event Transferz delivers late still counts)
- You confirm how each cancellation shows in your system

## Links

- Guide: [Changes and cancellations](https://developers.transferz.com/guides/transfer-companies/changes-and-cancellations)
- Endpoint: [GET Get journey](https://developers.transferz.com/reference/transfer-companies/get-journey) (`GET /journeys/{id}`)

Running this case needs sign-in to the developer portal. Calls from the portal's Try it console do not count.
