Here you have a list of errors returned by our api with our internal codes, the http codes and a brief definition.


AGW Error Code HTTP Code Meaning
Authentication    
AGW-authentication-000 401 Returned if you try to access a non authorized resource
Parsing    
AGW-parse-001 400 Returned when there is any syntactic error in the customer’s request (sometimes this error can be thrown without the AGW code)
AGW-parse-002 500 Returned when there is any syntactic error in our response
Headers    
AGW-headers-001 400 Returned when AG header value is not valid
AGW-headers-002 400 Returned when AG header value is not provided
AGW-headers-003 400 Returned when the provider on the header AG-Provider doesn’t match with the safe in offer/order
AGW-headers-004 400 Returned when AG-Per-Provider-Limit is set but there is an error on the format
Currency    
AGW-currency-001 400 Returned if the currency code is missing in the request
AGW-currency-002 400 Returned if the currency code is not valid
Dates    
AGW-date-001 400 Returned when any date is provided in incorrect format
AGW-date-002 400 Returned when a mandatory date is not provided in the request
AGW-date-004 400 Returned if a date is bigger than 360 days (which is the max date by the most of providers)
AGW-date-005 400 Returned in case than arrival date is before departure date
Travelers    
AGW-traveler-001 400 Returned if the quantity of ADT (or VFR is selected types of PTC are selected) is zero
AGW-traveler-002 400 Returned if there are more travelers in the requester (excluding INF and VNF) than the allowed ones
AGW-traveler-003 400 Returned if there are PTC of different types mixed in the request: Normal (ADT, YAD, CHD, INF) and special (VFR, V14, VNN, VNF)
AGW-traveler-004 400 Returned when incorrect INF quantity is provided (mainly because the ADT is less than INF)
AGW-traveler-005 400 Returned when something is wrong in the passengers on the OrderCreate request
IDs and other missing fields    
AGW-request-id-001 400 Returned when any mandatory id is missing in the request from the customer
AGW-request-id-002 404 Returned when some element in the offer or order is not found by the requested id
AGW-request-id-003 400 Returned when the id in the request contains unacceptable symbols
AGW-request-id-004 400 Returned when the id is sent but it is already expired
AGW-request-id-005 400 Returned when the rejection reason for the orderreview is missing
AGW-request-field-001 400 Returned when the quantity of cabin preferences is different than 0, 1 or the quantity of the origin-destinations
AGW-request-field-002 400 Returned when the provided number of ODs not equal to the quantity in saved order
OriginDestinations    
AGW-origin-destinations-001 400 Returned when a mandatory field is not sent by the agent
AGW-origin-destinations-002 400 Returned when provided number of ODs in the offer is zero
AGW-origin-destinations-003 400 Returned when the quantity of valid ODs in the order is zero, probably because all flights are already flown
AGW-origin-destinations-004 400 Returned when when there is no one segment in the origin-destinations of the OrderCreate request
Forbidden Access    
AGW-forbidden-001 403 Returned when someone is trying to access a resource without permissions
AGW-forbidden-002 403 Returned if a client without permissions tries to access to the AirDocIssue
AGW-forbidden-003 403 Returned if an agent without permissions tries to access to the OrderReshopReprice
AGW-forbidden-004 403 Returned if an agent without permissions tries to access to the OrderReshopRefund
AGW-forbidden-005 403 Returned if an agent without permissions tries to access to the OrderCancel
AGW-forbidden-006 403 Returned if an agent without permissions tries to access to the OrderReshop
AGW-forbidden-007 403 Returned if an agent without permissions tries to access to the OrderRetrieve
AGW-forbidden-008 403 Returned if an agent without permissions tries to access to the SeatAvailability
AGW-forbidden-009 403 Returned if an agent without permissions tries to access to the ServiceList
Not supported methods    
AGW-forbidden-001 403 Returned when is returned if the AirDocIssue is invoke on a non allowed provider
AGW-forbidden-002 403 Returned if the OrderReshopReprice is invoke on a non allowed provider
AGW-forbidden-003 403 Returned if the OrderReshopRefund is invoke on a non allowed provider
AGW-forbidden-004 403 Returned if the OrderCancel is invoke on a non allowed provider
AGW-forbidden-005 403 Returned if the OrderReshop is invoke on a non allowed provider
AGW-forbidden-006 403 Returned if the OrderRetrieve is invoke on a non allowed provider
AGW-forbidden-007 403 Returned if the SeatAvailability is invoke on a non allowed provider
AGW-forbidden-008 403 Returned if the ServiceList is invoke on a non allowed provider
AGW-forbidden-009 403 Returned when an on hold order is trying to be created on a provider which doesn’t allow that option
Conflict errors    
AGW-conflict-001 409 Returned if a provider has true in the allowedRequests.Pending.OrderReprice but the agent doens´t invoke this method (OrderReshopReprice) before call the AirDocIssue
AGW-conflict-002 409 Returned when an agent tries to retrieve or manipulate a complete order
AGW-conflict-003 409 Returned when when an agent tries to cancel or get the refund quote of an order wich is already cancel
Not found errors    
AGW-notfound-001 404 Returned when the requested offer id is not found in our database
AGW-notfound-002 404 Returned when the requested order is not found in the database
AGW-notfound-003 404 Returned when the requested consumer in the AG-Consumer header is not found in the database
AGW-notfound-004 404 Returned when, trying to cancel a service, an internal error is thrown because a missing service in the order (OrderItems)
AGW-notfound-005 404 Returned when the order has no pnr
Reservation    
AGW-reservation-001 400 Returned when the agent tries to make an on hold reservation for the next day on a provider which doesn’t allow that
AGW-reservation-002 400 Returned when the email of the first pasenger is missing at the order creation time
AGW-reservation-003 400 Returned when the phone of the first pasenger is missing or not valid at the order creation time
AGW-reservation-004 400 Returned when something is wrong in the payment node of the payload
AGW-reservation-005 400 Returned when the quantity of passengers in the OrderCreate request doesn’t match with the passengers in the previous steps
AGW-reservation-006 400 Returned when something is wrong in the payment node of the payload
AGW-reservation-007 400 Returned when agent tries to modify an order which has already an active operation
AGW-reservation-008 400 Returned when agent tries to modify an order with blocked status
AGW-reservation-009 400 Returned when an order is trying to be paid with voucher in a provider which doesn’t allow this form of payment
Ancilliaries    
AGW-service-001 400 Returned when a seat is trying to be added but the id related is already expired
AGW-service-002 400 Returned trying to add a seat for an infant
AGW-service-003 400 Returned when a passenger tries to add a not allowed seat
AGW-service-004 400 Returned when is trying to add seat for a passenger who already has a seat for the requested segment
From Providers    
error-from-provider-001 503 This is an error returned in NDC response by airline
error-from-provider-002 500 This is an unknown error returned by airline

Example

    {
        "id": "mjqZKxXo",
        "code": "AGW-date-003",
        "status": 400,
        "detail": "Departure date can't be in the past. Please, check flight (LHR-FRA)."
    }