DATE:
AUTHOR:
The Duffel team
API API Documentation Cars

Cars rates now include an expiry time

DATE:
AUTHOR: The Duffel team

When you create a Cars Search, each rate returned now includes an expires_at field.

We only store rates for a limited time after a search. If you try to create a quote from a rate which has expired, you will receive a 404 not_found error. Use expires_at to decide when to create a new search instead of creating a quote based on an existing rate.

A rate may no longer be available from the supplier, even if it has not expired. In these cases you will receive a 422 rate_unavailable error, and should create a new search.

Powered by LaunchNotes