# Direct assignment

> Transfer company track · Core · Certification test case

Proves your system receives a journey that Transferz assigns directly to your company, follows its changes and handles its unassignment, and that it reads the details correctly.

## How it is verified

- **Webhook acknowledged**: Transferz delivered the event and your endpoint answered with success.
- **Proof of receipt**: You enter a value that only your endpoint received. The portal hides it on screen.

## Instructions

1. Set your webhook URL in the workspace first. The case can't start without it.
2. Choose a hub, a direction (from the hub to the address, or from the address to the hub) and an address, and start the case. The portal creates a test journey on staging and assigns it directly to your transfer company. The later sections use the same hub and address.
3. In every step the portal does something to the journey, waits until your endpoint answers the webhook event with a 2xx response, and then asks you one question about what your system received.
4. Assignment: answer with the traveller detail the portal asks for.
5. Pickup time: the portal moves the pickup a few minutes later. Enter the new pickup time (hours and minutes, local time at the pickup location).
6. Driver comment: the portal adds a comment for the driver. Copy it from your system.
7. Unassignment: the portal takes the journey away from your company again. Answer the event with a 2xx response.
8. Each step waits up to 5 minutes for a 2xx answer. If Transferz delivers the event later and your endpoint answers it with a 2xx, the step still passes. Otherwise use Try again once your endpoint is fixed.

## Pass criteria

- Your endpoint answers journeyFleetAssignedEvent, journeyExecutionDetailsUpdatedEvent, journeyTravellerInfoUpdatedEvent and journeyFleetUnassignedEvent with 2xx, each within 5 minutes (a 2xx to an event Transferz delivers late still counts)
- The traveller detail you enter matches the one in the assignment event
- The pickup time you enter matches the new pickup time
- The driver comment you enter matches the one the portal added

## Links

- Guide: [Receive journeys](https://developers.transferz.com/guides/transfer-companies/receive-journeys)
- 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.
