Skip to content

Get journey voucher

GET/journeys/{journeyId}/voucher

Auth: X-API-Key headerhttps://warpdrive.staging.transferz.com/partners

Retrieves a PDF voucher for the given journey. If a voucher is not yet available the endpoint will return a status 204. If the voucher is available it will return a status 303 with the Location header pointing to the download location. If the journey is modified a new voucher will be issued - be sure to obtain the new voucher.

Gets the PDF voucher for the traveller. When it is available the response is 303 with a Location header pointing to the PDF; follow the redirect to download it. While the journey is not yet confirmed (NOT_PAID, AWAITING_APPROVAL, PENDING) the response is 204. A change issues a new voucher, so fetch it again after changes.

Guides: Follow a journey, Change a journey

Path parameters

  • journeyIdinteger · int64required

    The id of the journey for which to retrieve the voucher

Headers

  • X-Request-IDstring

    The optional (ideally unique) request identifier used for later analysis or diagnostics

Responses

No voucher yet.

Errors this endpoint can return

  • When: The journey belongs to another partner.

    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.

Certification case

Guide

Guide