FlightAware Discussions

Different flight number in Push


#1

Hello,

Im using your push notifications API in order tu know arrival/departure of flights.
I use SetAlert operation to set an alert for a flight, ex: AMX272.
Then use the GetAlerts operation to check if the alert was saved, and I can see it was correctly saved for AMX272.
But when your API calls my endpoint flight.ident value is: SLI272
So my software has no way to match flight numbers in order to change flight status.
How can I solve this problem?

Thanks.


#2

The difference in the ident is likely due to codesharing between those two airlines.

When you create the alert with SetAlert be sure to save the alert id that is returned.

Then when the alert is later delivered, you can match the alert_id element of the push notification what you had previously saved.