Complete journey
/journeys/{id}/completeAuth: X-API-Key headerhttps://warpdrive.staging.transferz.com/transfercompanies
Marks a journey as completed
Marks the journey as completed after the traveller has been dropped off. Send the drop-off position. Completed journeys count towards your payout.
Guide: Complete a journey
Path parameters
Headers
Request body
application/json
Responses
No content
Errors this endpoint can return
- 400, failedCOMPLETE_JOURNEY_NOT_ALLOWED_BEFORE_PICKUP
When: The pickup time is still in the future.
What to do: Complete the journey after it has taken place.
- 400, failedSTATUS_TRANSITION_NOT_ALLOWED
When: The journey was cancelled.
What to do: Do not send further status updates for completed or cancelled journeys.
- 403, failedINSUFFICIENT_PERMISSIONS
When: The journey is not assigned to your company (also returned for an unknown id).
What to do: Check that the id belongs to your company and that you use the key of the right user. Ask Transferz to check the account's permissions if the id is correct.