Decline offer
POST
/offers/{id}/declineAuth: X-API-Key headerhttps://warpdrive.staging.transferz.com/transfercompanies
Declines an available offer
Declines an offer with a reason, so Transferz can offer the journey to another company and improve future offers. Some reasons, such as OTHER, need a description.
Guides: Accept or decline offers, Constants
Path parameters
Headers
Request body
application/json
Why you decline.
FARE_TOO_LOW- The offered fare is too low.
NO_VEHICLE_AVAILABILITY- No vehicle is available at that time.
NO_DRIVER_AVAILABILITY- No driver is available at that time.
ADDONS_NOT_AVAILABLE- One or more requested add-ons cannot be provided.
INCORRECT_JOURNEY_DETAILS- The journey details look wrong.
HOLIDAY- Closed for a holiday.
Responses
No content
Errors this endpoint can return
- 400, failedOFFER_FINALIZED
When: The offer was already accepted, expired or missed.
What to do: Check the offer status with Get offer before responding.
- 400, failedDECLINE_DESCRIPTION_MISSED
When: The reason needs a description.
What to do: Add a short description.