- DATE:
- AUTHOR:
- The Duffel team
We’ve added a new error code for when an order is not created!
Sometimes despite our best efforts, an airline will be unable to create an order based on your request. Previously, the Duffel API handled any unknown or unexpected errors from an airline by returning a HTTP 500
status code to you along with an error message
that asked you to get in touch with our support team. We recommended this course of action because there can be side effects of order creation that need to be checked by our team. For example, when one of the requests we make to the airline times out that ends up with an order created on the airlines systems that we don’t know about.
We have introduced a new error code
, order_not_created
, that will be returned we encounter an unknown error during order creation and the airline was unable to create your order. These errors will be returned with a HTTP status code of 502
. As part of the response, we can guarantee that no negative side effects have occurred during the process – for example an order being created or payment taken.
You can read more about this error and other details returned from the Duffel API in our error cases documentation. If you have any questions, please get in contact with us via help@duffel.com.